[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.
prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 14 Oct 2014, 11:19

I found a problem:

If the uploader uses a rar comment in the File. This comment is displayed and can be mistaken as a password set, if it includes for example the * char.

Example for such a comment:

Code: Select all

UNRAR 5.20 beta 1 freeware      Copyright (c) 1993-2014 Alexander Roshal

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::,+@@@@@@@@@@@@@#*@*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::.###############*@@:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::#@@@#@@@*#@WWWWWWW::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::+WWWWWWWWWWWWWWWWWW:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::*WW:::::WWW::::::::::::::.,,,,,.::::::::::+:::::::::::,:::::::::.:,,,.:::::::::::::
::::W::::::+WW::::::::::::::,,#@#@##*#::::::,#::::::::::.,.#+:::::.,...:::*#:::::::::::
:::*::::::.+W::::::::::::::.@W@:+WW@@@@::::.@@:::::::::::@@@@::::..@@WWWW@@@@::::::::::
::::::::::.WW:::::::::::::.WW::::::WWWW@::+.W:::::::::@WWWWWW@:+:+WWW*::+WWWW::::::::::
:::::::::.@W:::::::::::::+*W*::::::#WWWW::+WW:::::::+*:::#WWWW::WWWWW::::@WWWW:::::::::
:::::::::*@@::::::##:::::*WW::::::::WWWW::+W*::::::.W#::::*WWW:::WWWW:::::WWWW:::::::::
::::::::.#@::::::###::::*#@W::::::::+@@W+*@W*::::::@W#:::::@@W+::@WWW:::::@WWW:::::::::
:::::::.+*@::::::***::::*@@@:::::::::@@W+@@@W:::::#@@@:::::@@W:::@@@W:::::@@W@:::::::::
:::::::.##@:::::****:::::#@@@::::::::##@:@##@:::::#@@@:::::##@:::#@@@:::::##@::::::::::
:::::::.*#@:::::++++:::::####*::::::::@@:*###+::::*##@::::::#@:::*@@@:::::+@@::::::::::
:::::::.+*@:::::++++:::::@#*#**:::::,*@:::##*#::::+#*#::::::@#:::*#@@::::::@#::::::::::
:::::::.+:#:::::::::::::::@#+*+::.,,+@*:::##**+:,,*::*+::.,#@::::++@@:::::*@:::::::::::
:::::::.::#::::::::::::::::@@##*+++@@+:::::@@*+:+#@@@#+::+@@:::::#@@:::::.##:::::::::::
:::::::.::++:::::::::::::::::#######::::::::######:::######::::::#::::::.,#::::::::::::
:::::::.::.*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::,+#::::::::::::
::::::::::::+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::,#:::::::::::::
::::::::+::::::::::::::,*::::::::::::::::::::::::::::::::::::::::::::::,,#:::::::::::::
:::::::*:::+::::::::::,+:::::::::::::::::::::::::::::::::::::::::::::::, #:::::::::::::
::::::::*++++*:....,,,*@:::::::::::::::::::::::::::::::::::::::::::::::,:+*::::::::::::
::::::::@#****##:...+@@::::::::::::::::::::::::::::::::::::::::::::::::+::*::::::::::::
:::::::::@#########+@@:::::::::::+++++++++++++++++++++++++++++++++:::::*++++:::::::+:::
::::::::::@@#####+@@@::::::::::::*********************************::::::#*****:::.:@:::
:::::::::::WWWWWWWW+:::::::::::::##################################:::::@@##@#+:.@@::::
:::::::::::::WWWW::::::::::::::::@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@::::::WWWWWWWWW:::::
:::::::::::::::::::::::::::::::::WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW::::::::@WWW#:::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


                     F?r noch mehr Stuff besucht das Usenet-Board
                                   http://www.town.ag

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


                         For more stuff visit the Usenet-Board
                                   http://www.town.ag

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

                        _____                                  
                       |_   _|_____      ___ __     __ _  __ _ 
                         | | / _ \ \ /\ / / '_ \   / _` |/ _` |
                         | || (_) \ V  V /| | | |_| (_| | (_| |
                         |_| \___/ \_/\_/ |_| |_(_)\__,_|\__, |
                                                         |___/ 
 
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Archive:

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

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

Post by JVM » 14 Oct 2014, 20:25

OK, we can fix that checking for the first character of each file name for * , instead of the lazy way of looking everywhere. Maybe for now you can set up a separate category for those files, as I think hugbug made it so the per category scripts setting also applies for queue scripts.

hugbug
Developer & Admin
Posts: 7070
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 14 Oct 2014, 21:28

Doesn't unrar have an option to suppress printing of comments? May be one of listing options (bare, technical, etc.) will work.

prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 14 Oct 2014, 21:36

Yes it has. Just checked.

Additional Option:
-c-

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

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

Post by JVM » 15 Oct 2014, 10:31

Thanks, I've added it to 1.6.

prinz2311
Posts: 460
Joined: 08 Dec 2012, 00:03

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

Post by prinz2311 » 16 Oct 2014, 13:24

Doesn't work since you don't use subprocess.Popen correctly. Every argument has to get its own list element.

This would be the correct way, that works.

Code: Select all

command = [os.environ['NZBOP_UNRARCMD'], 'l', '-p-', '-c-',  dir + '/' + file]
If all parameters are one element in the list, the program (unrar) will see it as 1 parameter and ignore everything after l

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

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

Post by JVM » 18 Oct 2014, 09:10

I've replaced that 'command' line with the one you provided (1.6.1). Thanks again.

get39678
Posts: 212
Joined: 09 Jun 2014, 10:49

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

Post by get39678 » 31 Oct 2014, 10:55

Just so we are keeping track of possible future enhancements one is being discussed in this thread http://nzbget.net/forum/viewtopic.php?f=3&t=1578

get39678
Posts: 212
Joined: 09 Jun 2014, 10:49

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

Post by get39678 » 15 Jan 2015, 16:18

If anyone is running the unreleased version r1180+ and would like an updated script that includes changes for the new custom rar/7zip switches please post and I will upload. No idea if it will work for the stable release.

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

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

Post by JVM » 16 Jan 2015, 09:40

Might just as well post it here. Is there much difference?

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests