RE: how to Brute Force MD5 07-26-2016, 04:18 PM
#7
In the GUI you must have a button in order to select the wordlist, now when the user selects the wordlist just read that file.
For Reading/Writing: https://docs.oracle.com/javase/tutorial/.../file.html
Now for the compare part:
Java Docs are your friend dude, use em. Plus Stack Overflow too
For Reading/Writing: https://docs.oracle.com/javase/tutorial/.../file.html
Now for the compare part:
Code:
try (BufferedReader reader = Files.newBufferedReader(file, charset)) {
String line = null;
while ((line = reader.readLine()) != null) {
String hash = md5(line); //Use some library for MD5 conversion
if(hash == hashToCrack) {
System.out.println("Found a possible match! Word is: " + line);
break;
}
}
} catch (IOException x) {
System.err.format("IOException: %s%n", x);
}
Java Docs are your friend dude, use em. Plus Stack Overflow too