phip1611 / libbruteforce

A multithreaded bruteforce library written in Rust. PLEASE DO NOT use this software to harm someones privacy in any kind! This project was made for fun and for teaching myself new things about Rust.
MIT License
5 stars 3 forks source link

[Feature request] Keep going after match is found #11

Open Kriskras99 opened 1 week ago

Kriskras99 commented 1 week ago

First of all, just wanted to say that this library works really well.

My usecase is as follows: I'm reverse engineering a game which in some versions hashes all class names with a 32-bit hash. I want to recover the original class names, for almost all of them that's possible based on the list of class names from versions with unhashed class names. However this does not work for all classes, because they don't occur in the unhashed versions. Your library helped me find a 'class name' that matches the hash, but it's complete gibberish. Which is to be expected because of the hash type and size.

Therefore I would like support for the following: Have an option to keep going after an initial match, maybe by providing an iterator? That way I could do the following:

for result in libbruteforce::crack(..) {
    println!("{}", result.solution())
}
phip1611 commented 1 week ago

Hi, and thanks for the interest in my library!

The project is rather old, I didn't expect to put much effort into it anymore. I may be able to look into it soon.

Also, If you want, feel free to set up a PR and contribute!