Closed DidierStevens closed 5 years ago
Why not adding a remark to the luascript instead? No need to make commandline more complicated
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:
The command is executed, and then I can start typing my commands, like "hw tune".
Hope this makes this option clearer.
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
Ok, now I get it better.
Why not use -K to be similar to cmd.exe ?
ping
As suggested, I replaced -s with -k.
cool!
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.