MYWNcWR9Rgc31zkhTOsA [they/them, she/her]@hexbear.nettoUnited Kingdom@feddit.uk•British fighter in Ukraine found dead in ditch, hands tied behind backEnglish
1911·
1 year agoThe poor lad just wanted to kill people in peace. Who could have known that he’d eventually be the one getting killed.
Something like this should work on linux or mac. On windows you’ll probably need to use wsl or convert it to powershell if you can’t install the dependencies natively. The script requires bash, unrar, and find.
#!/usr/bin/env bash while read -r rarfile; do while read -r password; do if unrar t -p"$password" "$rarfile" >/dev/null 2>&1; then echo "$rarfile $password" break fi echo "$rarfile password not found" done < /path/to/passwords.list done < <(find /path/to/rars -type f -iname '*.rar')