I use winrar.

  • MYWNcWR9Rgc31zkhTOsA [they/them, she/her]
    ·
    1 year ago

    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')