mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
update
This commit is contained in:
parent
71c12c1828
commit
4003ad72fe
4 changed files with 56 additions and 20 deletions
|
@ -643,8 +643,12 @@ static bool brute(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){
|
||||
ctx.range_low = etd->password1;
|
||||
ctx.range_high = etd->password2;
|
||||
}
|
||||
|
||||
while ((generator_ret = bf_generate(&ctx)) == BF_GENERATOR_NEXT) {
|
||||
*pwd = bf_get_key32(&ctx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue