![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/d3d059e3-fa3d-45af-ac93-ac894beba378.png)
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')
Oh no, not our precious neolib governments :((