Ever lost the password to an archive file? You can recover it from the CLI with rarcrack. Just be sure you have the unrar-free and NOT the unrar-nonfree package installed. It tries a bruteforce method on the archive file and also works with other archive filetypes:
INFO: detected file type: rar
INFO: cracking test_archive.rar, status file: test_archive.rar.xml
INFO: Resuming cracking from password: ‘1’Probing: ‘9Ca’ [305 pwds/sec]
Probing: ‘9Pf’ [270 pwds/sec]
Probing: ‘a3E’ [297 pwds/sec]
Probing: ‘afS’ [252 pwds/sec]
Probing: ‘auG’ [306 pwds/sec]
Probing: ‘aI4’ [276 pwds/sec]
Probing: ‘aT5’ [227 pwds/sec]
Probing: ‘b7x’ [298 pwds/sec]
Probing: ‘bjF’ [250 pwds/sec]
Probing: ‘buO’ [230 pwds/sec]
Probing: ‘bIb’ [276 pwds/sec]
Probing: ‘bX5’ [308 pwds/sec]
Probing: ‘cbg’ [293 pwds/sec]
Didn’t work for me, it didn’t stop bruteforcing if correct pass found… It erases the tag in the xml file instead…