Page 1 of 2

[New Feature] Password list file

Posted: 22 Jan 2015, 21:03
by hugbug
As requested - added support for password list file:
  • new option "UnpackPassFile" to set the location of the file;
  • during unpack the passwords are tried from the file until unpack succeeds or all passwords were tried;
  • implemented different strategies for rar4 and rar5-archives taking into account the features of formats;
  • for rar5-archives a wrong password is reported by unrar unambiguously and the program can immediately try other passwords from the password list;
  • for rar4-archives and for 7z-archives it is not possible to differentiate between damaged archive and wrong password; for those archives if the first unpack attempt (without password) fails the program executes par-check (preferably quick par-check if enabled via option "ParQuick") before trying the passwords from the list;
  • another optimization is that the password list is tried only when the first unpack attempt (without password) reports a password error or decryption error; this saves unnecessary unpack attempts for damaged unencrypted archives.
Implemented in r1189 (15.0-testing).

Re: [New Feature] Password list file

Posted: 23 Jan 2015, 06:00
by clintonhall
Nice... I'll gladly give up on the password-list script ;)
It is much cleaner to do that internally :)

Re: [New Feature] Password list file

Posted: 20 Mar 2015, 21:07
by picardtux
very good thank you hugbug :P

Re: [New Feature] Password list file

Posted: 29 Apr 2015, 20:54
by PTRCK
Is it possible to read out the correct used password and use this in another script?

Re: [New Feature] Password list file

Posted: 29 Apr 2015, 21:01
by hugbug
Before each password is tried a message like "Trying password xxx for <nzb-name>" is printed.
In the pp-script you can obtain all messages printed for this nzb (see Logger.py) and then extract the password from the last message of this type.

Re: [New Feature] Password list file

Posted: 14 Jun 2015, 12:07
by r4dd3
first of all, please excuse my bad english.
i have some problems with the password file.
all passwords are in a txt file named password.txt.
in which form I need to specify the path?
${MainDir}/password/password.txt
or
/volume1/downloads/nzbget/password/password.txt ?

Re: [New Feature] Password list file

Posted: 14 Jun 2015, 14:06
by hugbug
Both forms are OK. Something doesn't work?

Re: [New Feature] Password list file

Posted: 14 Jun 2015, 14:21
by r4dd3
yes, the passwords in the list are correct.
but it files are not extractet. in the history i get the message: "Unpack: PASSWORD"

Re: [New Feature] Password list file

Posted: 14 Jun 2015, 14:25
by hugbug
In the history item click on button "Log" and then check the messages. For each tried password it prints a message. If not sure post the log (via pastern.com) or send the log-file to me at nzbget@gmail.com.

Re: [New Feature] Password list file

Posted: 26 Dec 2015, 20:24
by phloo
The feature worked with the version before I upgraded to the current one.
Since using 16.4 it wont unrar on Mac with Yosemite. It just fails.

Example log:
Unpack for __foldername___ failed.
Second unpack attempt skipped for __foldername___ due to par-check not repaired anything
Repair not needed for __foldername___/5gLzibv1MvTEgAM3vd72EvZ11Y

Replaced the original foldername with __foldername___

UnpackPassFile is unchanged and contains the path to the password list.

Any ideas?