Pick exploit sector starting from last sector
This commit is contained in:
parent
786fe821fe
commit
0313b7bcc5
@ -933,9 +933,10 @@ int find_exploit_sector(mftag t)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
for (i = 0; i < t.num_sectors; i++) {
|
for (i = 0; i < t.num_sectors; i++) {
|
||||||
if ((t.sectors[i].foundKeyA) || (t.sectors[i].foundKeyB)) {
|
int s=(t.num_sectors-i)-1;
|
||||||
fprintf(stdout, "\n\nUsing sector %02d as an exploit sector\n", i);
|
if ((t.sectors[s].foundKeyA) || (t.sectors[s].foundKeyB)) {
|
||||||
return i;
|
fprintf(stdout, "\n\nUsing sector %02d as an exploit sector\n", s);
|
||||||
|
return s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ERR("\n\nNo sector encrypted with the default key has been found, exiting..");
|
ERR("\n\nNo sector encrypted with the default key has been found, exiting..");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user