proxmark3/armsrc/Standalone/readme.md

29 lines
1.4 KiB
Markdown
Raw Normal View History

2017-10-22 23:00:53 +08:00
# StandAlone Modes
2017-08-26 19:01:35 +08:00
2017-10-22 23:00:53 +08:00
This contains functionality for different StandAlone modes. The fullimage will be built given the correct compiler flags used. Build targets for these files are contained in `armsrc/Makefile`.
2017-08-26 19:01:35 +08:00
2017-10-22 23:00:53 +08:00
If you want to implement a new standalone mode, you need to implement the methods provided in `standalone.h`.
2017-08-26 19:01:35 +08:00
2017-10-22 23:00:53 +08:00
## Implementing a standalone mode
2017-08-26 19:01:35 +08:00
2017-10-22 23:00:53 +08:00
Each standalone mod needs to have its own compiler flag to be added in `armsrc\makefile` and inside the function `AppMain` inside AppMain.c. Inside Appmain a call to RunMod is needed. It looks strange because of what kinds of dependencies your mode will have.
The RunMod function is your "main" function when running. You need to check for Usb commands, in order to let the pm3 client break the standalone mode.
2017-08-26 19:01:35 +08:00
2017-10-22 23:00:53 +08:00
As it is now, you can only have one standalone mode installed at the time.
## Name
2017-08-26 19:01:35 +08:00
Use HF/LF to denote which frequence your mod is targeting.
Use you own github name/similar for perpetual honour to denote your mod
2017-10-22 23:00:53 +08:00
Samples:
### -DWITH_LF_ICERUN
### -DWITH_LF_SAMYRUN
### -DWITH_LF_PROXBRUTE
### -DWITH_LF_HIDCORP
### -DWITH_HF_YOUNG
### -DWITH_HF_MATTYRUN
2017-08-26 19:01:35 +08:00
2017-10-22 23:00:53 +08:00
## Adding identification of your mode
2017-08-26 19:01:35 +08:00
Do please add a identification string in the function `printStandAloneModes` inside `armsrc\appmain.c`
2017-10-22 23:00:53 +08:00
This will enable an easy way to detect on client side which standalone mods has been installed on the device.