mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
FIX: delay was parsed incorrect into a uint8_t...
CHG: help text fixed
This commit is contained in:
parent
934dfd728d
commit
9bfd93ec15
1 changed files with 3 additions and 6 deletions
|
@ -78,7 +78,7 @@ int usage_lf_awid_brute(void){
|
||||||
PrintAndLog("Enables bruteforce of AWID reader with specified facility-code.");
|
PrintAndLog("Enables bruteforce of AWID reader with specified facility-code.");
|
||||||
PrintAndLog("This is a incremental attack against reader.");
|
PrintAndLog("This is a incremental attack against reader.");
|
||||||
PrintAndLog("");
|
PrintAndLog("");
|
||||||
PrintAndLog("Usage: lf awid brute [h] <format> <facility-code>");
|
PrintAndLog("Usage: lf awid brute [h] <format> <facility-code> <delay>");
|
||||||
PrintAndLog("Options :");
|
PrintAndLog("Options :");
|
||||||
PrintAndLog(" h : This help");
|
PrintAndLog(" h : This help");
|
||||||
PrintAndLog(" <format> : format length 26|50");
|
PrintAndLog(" <format> : format length 26|50");
|
||||||
|
@ -269,9 +269,8 @@ int CmdAWIDClone(const char *Cmd) {
|
||||||
|
|
||||||
int CmdAWIDBrute(const char *Cmd){
|
int CmdAWIDBrute(const char *Cmd){
|
||||||
|
|
||||||
uint32_t fc = 0;
|
uint32_t fc = 0, delay = 1000;
|
||||||
uint8_t fmtlen = 0;
|
uint8_t fmtlen = 0;
|
||||||
uint16_t delay = 1000;
|
|
||||||
uint8_t bits[96];
|
uint8_t bits[96];
|
||||||
uint8_t *bs = bits;
|
uint8_t *bs = bits;
|
||||||
size_t size = sizeof(bits);
|
size_t size = sizeof(bits);
|
||||||
|
@ -285,9 +284,7 @@ int CmdAWIDBrute(const char *Cmd){
|
||||||
if ( !fc ) return usage_lf_awid_brute();
|
if ( !fc ) return usage_lf_awid_brute();
|
||||||
|
|
||||||
// delay between attemps, defaults to 1000ms.
|
// delay between attemps, defaults to 1000ms.
|
||||||
delay = param_get8(Cmd, 2);
|
delay = param_get32ex(Cmd, 2, 1000, 10);
|
||||||
if (delay < 400)
|
|
||||||
delay = 1000;
|
|
||||||
|
|
||||||
switch(fmtlen) {
|
switch(fmtlen) {
|
||||||
case 50:
|
case 50:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue