hydrabus / hydrafw

HydraBus HydraFW official firmware for open source multi-tool for anyone interested in learning/developping/debugging/hacking/Penetration Testing for basic or advanced embedded hardware
https://hydrabus.com/hydrabus-1-0-specifications
Apache License 2.0
365 stars 92 forks source link

new feature: Adding command aliases #166

Open 0xDRRB opened 8 months ago

0xDRRB commented 8 months ago

It would be great to be able to define aliases for certain recurring commands, like "alias atr = ]%%[read:33" for smartcards or something like that.

Aliases could be loaded from the MMC in the form of a text file associating a command name to be substituted with a character string. This would be loaded when entering a mode, for example smartcard.aliases loaded when entering smartcard mode.

I'm thinking of something like what I use with my pcscapdu or nfcapdu tools but without being able to use Glib and readline for that (and with much less RAM).

bvernoux commented 8 months ago

To be checked/discussed how to add it either in https://github.com/hydrabus/tokenline (maybe the best) or directly in hydrafw ...