[Queue-Script] PasswordDetector - stop dl of protected .rar

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
hugbug
Developer & Admin
Posts: 7070
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by hugbug » 16 Jan 2015, 09:47

get39678 wrote:No idea if it will work for the stable release.
Yes it will.

JVM
Posts: 83
Joined: 21 Oct 2013, 05:11

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by JVM » 08 Apr 2015, 02:38

Updated to follow similar developments as FakeDetector. I haven't got any password protected files anymore to test completely:
hugbug wrote:Update - version 1.6:
hugbug wrote:Update: version 1.7:
  • added support for rar-archives with old naming scheme (.rar, .r00, .r01, etc.);
  • extra exception info is printed if an error occurs.

chester0
Posts: 6
Joined: 02 Apr 2015, 08:10

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by chester0 » 14 Jun 2015, 23:25

I'v e had quite a few nzbs that bypass this script
the format they seems to have:

Movie.name.avi folder
-archive.rar this is password protected
-readme.txt

or

movie.name.part.xx
movie.name.part..
-movie.name.rar password protected
-readme.txt

most of the time they have WEB-DL in the release name

is there a way to detect these?

JVM
Posts: 83
Joined: 21 Oct 2013, 05:11

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by JVM » 26 Jun 2015, 04:08

chester0 wrote:I'v e had quite a few nzbs that bypass this script
the format they seems to have:

Movie.name.avi folder
-archive.rar this is password protected
-readme.txt

or

movie.name.part.xx
movie.name.part..
-movie.name.rar password protected
-readme.txt

most of the time they have WEB-DL in the release name

is there a way to detect these?
All this script does is use unrar to get the properties of the .rar and pause/delete if unrar said it is password protected. Sounds like what you've downloaded is double rar-ed, so once NZBGet unpacks the downloaded .rar, there is another password protected rar? If this is the case, I haven't tried to determine whether the rar 2 or more levels deep is passworded, but I doubt it's possible.

Sounds like you want to detect password nzbs just looking at the nzb file names? Do you have the script FakeDetector.py? That was made to stop downloading nzbs that look initially like fakes, like videos with bad extenstions inside, like .exe, .bat or .sh. You could add .txt files as well by editing line 115 to exExtensions = [ '.exe', '.bat', '.sh', '.txt'] and it should pick up those readme.txt files.

cezare
Posts: 10
Joined: 15 Nov 2014, 01:05

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by cezare » 08 Jul 2015, 05:29

Hi there,

I just upgraded to nzbget 15.0 on Synology NAS via Synocommunity package.
I cannot seem to get PasswordDetector.py to load up.

I downloaded and placed the current 1.7 version under the scripts folder (in my case /volume/@appstore/nzbget/share/nzbget/scripts)
Tried changing user for the file to match the one used for nzbget. Tried making it executable. No go.
I am a bit stumped as to why it refuses to load.
I have FakeDetector and FailureLink in the same scripts folder and they load up fine.

Any suggestions?

Many thanks!

JVM
Posts: 83
Joined: 21 Oct 2013, 05:11

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by JVM » 11 Jul 2015, 04:15

cezare wrote:Hi there,

I just upgraded to nzbget 15.0 on Synology NAS via Synocommunity package.
I cannot seem to get PasswordDetector.py to load up.
...
Tried changing user for the file to match the one used for nzbget. Tried making it executable. No go.
I am a bit stumped as to why it refuses to load.
I have FakeDetector and FailureLink in the same scripts folder and they load up fine.
Hey,

That's weird, a lot of the code is the same as FakeDetector, like the way it uses unrar. So there are no python errors? Usually they are listed in the nzbget messages log.

I'm not a unix expert but sounds like you've tried chown and chmod, I'm not sure what else to try, have you tried downloading it again?

cezare
Posts: 10
Joined: 15 Nov 2014, 01:05

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by cezare » 20 Sep 2015, 02:58

I know its been a few months. I decided, out of the blue, to tinker with this issue today again as it randomly stumbled into my head.
It ended up being the source.
Initially, during my previous post, I "wget" PasswordDetector.py directly from GitHub while being SSHed into my NAS.
Today, i downloaded it using my workstation from the first post of this thread and then moved the file into the nzbget scripts folder on the NAS.
Restarted nzbget and BAM, all is well, its there.
The file size was completely different. I am fairly new to Linux commands so let me ask you this ... does wget somehow skew the file in any way?

Thanks,

JVM
Posts: 83
Joined: 21 Oct 2013, 05:11

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by JVM » 26 Sep 2015, 10:53

Yeah I've experienced the same in the past, maybe the download link was wrong?

JVM
Posts: 83
Joined: 21 Oct 2013, 05:11

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by JVM » 26 Sep 2015, 10:58

Did you happen to follow a guide, as I fould a comment that mentions the wget link pulled down the webpage instead: http://www.htpcguides.com/abort-passwor ... 2050597049

cezare
Posts: 10
Joined: 15 Nov 2014, 01:05

Re: [Queue-Script] PasswordDetector - stop dl of protected .

Post by cezare » 01 Oct 2015, 23:26

Yah, as a matter of fact, I did indeed follow that guide.
Hmm, that would explain it. Strange that it is still doing it then since in the comments, it was corrected.
I remember doing the same thing for version 14 and it was fine half a year or so.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest