Thursday 24 November 2011

Hey guys just made this small program yesterday so thought of sharing.
Its not actually a bruetforcer right now it only tests for the passwords from a text file in the format:
pass1
pass2
.
.
.
Now , run this file; mention the required paths and test it.
I have tested it on Windows 7 [32 bit].
Please test on others as well!
Download link: here
Virus Scan: here
Note: I dont know why but its showing 2 false positives, I have not even started with socket programming that I can make backdoors!
Here is the source , I am sorry for not including it earlier:

Quote:int main()
{
char tr[100];
char pass[300];
char archive_path[300],save_path[100],txt_path[300];
cout<<"Enter the path of the archive(max 300)\n";
cin>>archive_path;
cout<<"\nEnter the path where you want to save the files after extraction(with the trailing \\ for a folder) (max 300) \n";
cin>>save_path;
cout<<"\nEnter the path of the text file to check the passwords(max 300)\n";
cin>>txt_path;
char root_dir[300]="\0";
strcat(root_dir,getenv("SystemDrive"));
strcat(root_dir,"\\Program Files\\winRAR\\");
ifstream fin(txt_path);
int res=1;
while(fin)
{
fin.getline(tr,sizeof(tr),'\n');
_chdir(root_dir);
strcpy(pass,"winrar.exe -p");
strcat(pass,tr);
strcat(pass," -ibck -o+ -inul x ");
strcat(pass,archive_path);
strcat(pass," ");
strcat(pass,save_path);
res=system(pass);
if(res==0)
break;
}
if(res==0)
{
char found[200];
strcpy(found,"The password is: ");
strcat(found,tr);
MessageBoxA(NULL,found,"Found!!!",MB_OK);

}
if(res!=0)
MessageBoxA(NULL,"Sorry the password couldn't be found","Not Found Buddy!",MB_OK);
fin.close();

return 0;
}
.
Usage:
.

[Image: 1dbc954387ace82107d4cfa40e525c54.png]

Please have a look and your feedback will always be appreciated!

0 comments:

Post a Comment

CEX.io