Batch Script – Extract Archives with Password List

7-zipbatchcommand linepasswordswinrar

I have 30 commonly used passwords. But I can't find any program to automatically try all passwords, so I want to create a batch script to read a txt file containing passwords and try those 30 passwords continuously with UnRAR.exe or 7z.exe. It would also be great if I could add it somewhere easily accessible (like the context menu or send to menu).

I think I need something that makes cmd send the passwords line by line to the batch process.

Also note that some archives may be split into two or more parts, so the script must support multiple extractions.

Best Answer

I found a tiny free portable app with many features.

Download the portable version here: ExtractNow

You can choose your password list in Settings -> Passwords tab.

For those who don't want to install the shell extension for the context menu feature, make sure these options are enabled in extractnow.ini:

After Extraction Program Close If Successful=1
Startup Extract Automatically=1

Then create a shortcut for extractnow.exe in the Send to menu folder. To open Send-to menu folder, open Run (Win+R) and type shell:sendto

done! Now you can select archive files and right click -> Send to -> extractnow

the extractnow will open and automatically extract your archives with the password list and then close automatically.

extractnow also supports Command Line Parameters.

Related Question