mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
add smart bruteforce mode to MF Classic and EM4x50
This commit is contained in:
parent
8e0e8e2240
commit
dd859a2061
9 changed files with 323 additions and 37 deletions
|
@ -643,9 +643,9 @@ static bool brute(const em4x50_data_t *etd, uint32_t *pwd) {
|
|||
|
||||
bf_generator_init(&ctx, etd->bruteforce_mode, BF_KEY_SIZE_32);
|
||||
|
||||
if (etd->bruteforce_mode == BF_MODE_CHARSET){
|
||||
if (etd->bruteforce_mode == BF_MODE_CHARSET) {
|
||||
bf_generator_set_charset(&ctx, etd->bruteforce_charset);
|
||||
} else if (etd->bruteforce_mode == BF_MODE_RANGE){
|
||||
} else if (etd->bruteforce_mode == BF_MODE_RANGE) {
|
||||
ctx.range_low = etd->password1;
|
||||
ctx.range_high = etd->password2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue