2019-07-17 01:18:45 +08:00
|
|
|
# Default standalone if no standalone specified
|
|
|
|
DEFAULT_STANDALONE=LF_SAMYRUN
|
2019-08-30 03:25:06 +08:00
|
|
|
HELP_EXAMPLE_STANDALONE=HF_YOUNG
|
2019-07-17 01:18:45 +08:00
|
|
|
# (you can set explicitly STANDALONE= to disable standalone modes)
|
|
|
|
STANDALONE?=$(DEFAULT_STANDALONE)
|
2019-07-24 19:37:09 +08:00
|
|
|
STANDALONE_REQ_DEFS=
|
2019-07-17 01:18:45 +08:00
|
|
|
|
|
|
|
define KNOWN_STANDALONE_DEFINITIONS
|
|
|
|
+==========================================================+
|
|
|
|
| STANDALONE | DESCRIPTION |
|
|
|
|
+==========================================================+
|
2019-07-25 01:32:06 +08:00
|
|
|
| (empty) | No standalone mode |
|
2019-07-17 01:18:45 +08:00
|
|
|
+----------------------------------------------------------+
|
2019-07-25 01:32:06 +08:00
|
|
|
| LF_SAMYRUN | HID26 read/clone/sim |
|
|
|
|
| (default) | - Samy Kamkar |
|
2019-07-17 01:18:45 +08:00
|
|
|
+----------------------------------------------------------+
|
|
|
|
| LF_ICERUN | standalone mode skeleton |
|
|
|
|
| | - iceman |
|
|
|
|
+----------------------------------------------------------+
|
|
|
|
| LF_PROXBRUTE | HID ProxII bruteforce |
|
|
|
|
| | - Brad Antoniewicz |
|
|
|
|
+----------------------------------------------------------+
|
|
|
|
| LF_HIDBRUTE | HID corporate 1000 bruteforce |
|
|
|
|
| | - Federico dotta & Maurizio Agazzini |
|
|
|
|
+----------------------------------------------------------+
|
|
|
|
| HF_YOUNG | Mifare sniff/simulation |
|
|
|
|
| | - Craig Young |
|
|
|
|
+----------------------------------------------------------+
|
|
|
|
| HF_MATTYRUN | Mifare sniff/clone |
|
|
|
|
| | - Matías A. Ré Medina |
|
|
|
|
+----------------------------------------------------------+
|
|
|
|
| HF_COLIN | Mifare ultra fast sniff/sim/clone |
|
2019-07-25 01:32:06 +08:00
|
|
|
| (RDV4 only) | - Colin Brigato |
|
2019-07-17 01:18:45 +08:00
|
|
|
+----------------------------------------------------------+
|
|
|
|
| HF_BOG | 14a sniff with ULC/ULEV1/NTAG auth |
|
2019-07-25 01:32:06 +08:00
|
|
|
| (RDV4 only) | storing in flashmem - Bogito |
|
2019-07-17 01:18:45 +08:00
|
|
|
+----------------------------------------------------------+
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
STANDALONE_MODES := LF_SAMYRUN LF_ICERUN LF_PROXBRUTE LF_HIDBRUTE
|
|
|
|
STANDALONE_MODES += HF_YOUNG HF_MATTYRUN HF_COLIN HF_BOG
|
2019-07-24 19:37:09 +08:00
|
|
|
STANDALONE_MODES_REQ_SMARTCARD :=
|
|
|
|
STANDALONE_MODES_REQ_FLASH := HF_COLIN HF_BOG
|
2019-07-17 01:18:45 +08:00
|
|
|
ifneq ($(filter $(STANDALONE),$(STANDALONE_MODES)),)
|
|
|
|
STANDALONE_PLATFORM_DEFS += -DWITH_STANDALONE_$(STANDALONE)
|
2019-07-24 19:37:09 +08:00
|
|
|
ifneq ($(filter $(STANDALONE),$(STANDALONE_MODES_REQ_SMARTCARD)),)
|
|
|
|
STANDALONE_REQ_DEFS += -DWITH_SMARTCARD
|
|
|
|
endif
|
|
|
|
ifneq ($(filter $(STANDALONE),$(STANDALONE_MODES_REQ_FLASH)),)
|
|
|
|
STANDALONE_REQ_DEFS += -DWITH_FLASH
|
|
|
|
endif
|
2019-07-17 01:18:45 +08:00
|
|
|
else ifneq ($(STANDALONE),)
|
|
|
|
$(error Invalid STANDALONE: $(STANDALONE). $(KNOWN_DEFINITIONS))
|
|
|
|
endif
|