forked from MaxCamillo/android-keystore-password-recover
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBruteBenchmark.java
More file actions
35 lines (29 loc) · 788 Bytes
/
BruteBenchmark.java
File metadata and controls
35 lines (29 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package AndroidKeystoreBrute;
/**
*
* Beschreibung
*
* @version 1.0 vom 26.11.2011
* @author
*/
public class BruteBenchmark extends Thread {
long lastCall = 0;
int lastCount = 0;
public void run() {
while (!BrutePasswd.found) {
if ((System.nanoTime() - lastCall) > 1000000000) {
System.out.println("Current Pass: " + String.copyValueOf(BrutePasswd.currPass) + " || est. "
+ ((BrutePasswd.testedPwds - lastCount)) + " Pass/Sec");
System.out.println();
lastCall = System.nanoTime();
lastCount = BrutePasswd.testedPwds;
try {
Thread.sleep(1000);
} catch (Exception e) {
}
} else {
// System.out.println("Too much");
}
}
}
}