iceman1001 / proxmark3

[Deprecated] Iceman Fork, the most totally wicked fork around if you are into proxmark3
http://www.icedev.se/pm3.aspx
GNU General Public License v2.0
463 stars 116 forks source link

Added option -s -stay #252

Closed DidierStevens closed 5 years ago

DidierStevens commented 5 years ago

I added option -s -stay to stay in the command loop after script/command/lua execution.

This allows for the automatic execution of commands when proxmarx3 is launched, and to remain in the command loop so that manual commands can be executed.

For example: proxmark3.exe com3 -s -c "rem Starting" This will execute command "rem Starting", logging a timestamp in proxmark3.log. With this, users who want some timestamp in the log can have this automatically by using this new option, while users who don't want a change to the log format will not be forced to adopt this.

image

iceman1001 commented 5 years ago

Why not adding a remark to the luascript instead? No need to make commandline more complicated

DidierStevens commented 5 years ago

This is not only for Lua scripts. This is for scripts, commands (-c) and Lua scripts (-l).

If I add the rem command to a script or a Lua script, proxmark3 will execute the command, and then exit, so that I can no longer type manual commands. I'm back to the OS prompt. When option -s is used, the commands/scripts are executed, and then proxmark3 stays active: I can start typing proxmark3 commands.

This is how I use this option, I have a proxmark3.bat file to launch proxmark3.exe:

image

The command is executed, and then I can start typing my commands, like "hw tune".

Hope this makes this option clearer.

DidierStevens commented 5 years ago

It's similar to options /c and /k in cmd.exe:

/C Carries out the command specified by string and then terminates /K Carries out the command specified by string but remains

iceman1001 commented 5 years ago

Ok, now I get it better.
Why not use -K to be similar to cmd.exe ?

iceman1001 commented 5 years ago

ping

DidierStevens commented 5 years ago

As suggested, I replaced -s with -k.

iceman1001 commented 5 years ago

cool!