This commit is contained in:
iceman1001 2016-07-28 20:41:54 +02:00
commit 4ccdc189bd
4 changed files with 24 additions and 21 deletions

View file

@ -178,7 +178,9 @@ Use only container tag [1.6.1]
##Buying a proxmark3 ##Buying a proxmark3
The Proxmark 3 device is available for purchase (assembled and tested) from the following locations: The Proxmark 3 device is available for purchase (assembled and tested) from the following locations:
* http://www.elechouse.com (new and revised hardware package 2015) * http://proxmark3.tictail.com/ (For buyers in EU, most likely in Sweden)
* http://www.elechouse.com/ (new and revised hardware package 2015, located in China)
I recommend you to buy this version. I recommend you to buy this version.

View file

@ -58,6 +58,7 @@ else
CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -O3 CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -O3
QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null) QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)
LUALIB += -ldl LUALIB += -ldl
LDLIBS += -ltermcap -lncurses
MOC = $(shell pkg-config --variable=moc_location QtCore) MOC = $(shell pkg-config --variable=moc_location QtCore)
# Below is a variant you can use if you have problems compiling with QT5 on ubuntu. see http://www.proxmark.org/forum/viewtopic.php?id=1661 for more info. # Below is a variant you can use if you have problems compiling with QT5 on ubuntu. see http://www.proxmark.org/forum/viewtopic.php?id=1661 for more info.
#MOC = /usr/lib/x86_64-linux-gnu/qt4/bin/moc #MOC = /usr/lib/x86_64-linux-gnu/qt4/bin/moc

View file

@ -22,26 +22,26 @@
static int CmdHelp(const char *Cmd); static int CmdHelp(const char *Cmd);
int usage_lf_hid_wiegand(void){ int usage_lf_hid_wiegand(void){
PrintAndLog("Usage: lf hid wiegand [h] [oem] [FacilityCode] [cardnumber]"); PrintAndLog("Usage: lf hid wiegand [h] [OEM] [FC] [CN]");
PrintAndLog("This command converts FC/Cardnum to wiegand code"); PrintAndLog("This command converts facility code/card number to Wiegand code");
PrintAndLog("Options:"); PrintAndLog("Options:");
PrintAndLog(" h - This help"); PrintAndLog(" h - This help");
PrintAndLog(" oem - Oem number"); PrintAndLog(" OEM - OEM number");
PrintAndLog(" facilitynum - Facility number"); PrintAndLog(" FC - facility code");
PrintAndLog(" cardnum - Card number"); PrintAndLog(" CN - card number");
PrintAndLog("Examples:"); PrintAndLog("Examples:");
PrintAndLog(" lf hid wiegand 0 101 2001"); PrintAndLog(" lf hid wiegand 0 101 2001");
return 0; return 0;
} }
int usage_lf_hid_brute(void){ int usage_lf_hid_brute(void){
PrintAndLog("Enables bruteforce of HID readers with specified facility-code."); PrintAndLog("Enables bruteforce of HID readers with specified facility code.");
PrintAndLog("Different formatlength is supported"); PrintAndLog("Different formatlength is supported");
PrintAndLog("This is a incremental attack against reader."); PrintAndLog("This is a incremental attack against reader.");
PrintAndLog(""); PrintAndLog("");
PrintAndLog("Usage: lf hid brute <formatlength> <Facility-Code>"); PrintAndLog("Usage: lf hid brute <format length> <facility code>");
PrintAndLog("Options :"); PrintAndLog("Options :");
PrintAndLog(" <format length> - 26|33|34|35|37|40|44|84"); PrintAndLog(" <format length> - 26|33|34|35|37|40|44|84");
PrintAndLog(" <Facility-Code> - 8-bit value HID facility code"); PrintAndLog(" <facility code> - 8-bit value HID facility code");
PrintAndLog(""); PrintAndLog("");
PrintAndLog("Sample : lf hid brute 26 224"); PrintAndLog("Sample : lf hid brute 26 224");
return 0; return 0;
@ -303,7 +303,7 @@ int CmdHIDWiegand(const char *Cmd) {
uint8_t ftmlen[] = {26,33,34,35,37,38,40}; uint8_t ftmlen[] = {26,33,34,35,37,38,40};
for (uint8_t i = 0; i < sizeof(ftmlen); i++){ for (uint8_t i = 0; i < sizeof(ftmlen); i++){
calcWiegand( ftmlen[i], fc, cardnum, &hi, &lo); calcWiegand( ftmlen[i], fc, cardnum, &hi, &lo);
PrintAndLog("HID %d bit | FC: %d CN: %llu | Wiegand Code: %08X%08X", ftmlen[i], fc, cardnum, hi, lo); PrintAndLog("HID %d bit | OEM: %d FC: %d CN: %llu | Wiegand code: %08X%08X", ftmlen[i], oem, fc, cardnum, hi, lo);
} }
return 0; return 0;
} }
@ -332,7 +332,7 @@ int CmdHIDBrute(const char *Cmd){
fc = param_get8(Cmd, 1); fc = param_get8(Cmd, 1);
if ( fc == 0) return usage_lf_hid_brute(); if ( fc == 0) return usage_lf_hid_brute();
PrintAndLog("Bruteforceing HID Reader"); PrintAndLog("Brute-forcing HID reader");
PrintAndLog("Press pm3-button to abort simulation or run another command"); PrintAndLog("Press pm3-button to abort simulation or run another command");
for ( uint16_t cn = 1; cn < 0xFFFF; ++cn){ for ( uint16_t cn = 1; cn < 0xFFFF; ++cn){
@ -367,8 +367,8 @@ static command_t CommandTable[] = {
{"fskdemod",CmdHIDDemodFSK, 0, "['1'] Realtime HID FSK demodulator (option '1' for one tag only)"}, {"fskdemod",CmdHIDDemodFSK, 0, "['1'] Realtime HID FSK demodulator (option '1' for one tag only)"},
{"sim", CmdHIDSim, 0, "<ID> -- HID tag simulator"}, {"sim", CmdHIDSim, 0, "<ID> -- HID tag simulator"},
{"clone", CmdHIDClone, 0, "<ID> ['l'] -- Clone HID to T55x7 (tag must be in antenna)(option 'l' for 84bit ID)"}, {"clone", CmdHIDClone, 0, "<ID> ['l'] -- Clone HID to T55x7 (tag must be in antenna)(option 'l' for 84bit ID)"},
{"wiegand", CmdHIDWiegand, 0, "<oem> <fc> <cardnum> -- convert facilitycode, cardnumber to Wiegand code"}, {"wiegand", CmdHIDWiegand, 0, "<OEM> <facility code> <card number> -- convert facility code/card number to Wiegand code"},
{"brute", CmdHIDBrute, 0, "<formatlength> <Facility-Code> -- bruteforce card number"}, {"brute", CmdHIDBrute, 0, "<format length> <facility code> -- brute force card number"},
{NULL, NULL, 0, NULL} {NULL, NULL, 0, NULL}
}; };

View file

@ -103,7 +103,7 @@ freebsd:
generic: $(ALL) generic: $(ALL)
linux: linux:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -ltermcap -lncurses"
macosx: macosx:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline"