SadaraX
January 25th, 2009, 03:21 PM
I want to make a password cracking program using brute force against RAR files. I need help getting a library to extract (or at least test passwords) on RAR files. I also need help using the library.
I downloaded unrarsrc from RarLabs but I am completely baffled how to write my own program to include their code and use their functionality.
If anyone knows how to use that, please help.
But any RAR library in C++ or Java or Perl or Python will fine. Though C++ is preferred for speed purposes.
A code example like this would be wonderful:
#include<rarlib>
...
int main()
{
...
Rar my_rar("input.rar");
my_rar.setPassword("password1");
my_rar.extractTo("output_directory/");
...
}
I downloaded unrarsrc from RarLabs but I am completely baffled how to write my own program to include their code and use their functionality.
If anyone knows how to use that, please help.
But any RAR library in C++ or Java or Perl or Python will fine. Though C++ is preferred for speed purposes.
A code example like this would be wonderful:
#include<rarlib>
...
int main()
{
...
Rar my_rar("input.rar");
my_rar.setPassword("password1");
my_rar.extractTo("output_directory/");
...
}