NZB with multiple encrypted rars

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
tenz
Newbie
Newbie
Posts: 3
Joined: November 10th, 2021, 12:39 pm

NZB with multiple encrypted rars

Post by tenz »

SAB version 3.4.2
Ubuntu 18.04.6

I have been experiencing the following recently:

NZB with multiple encrypted rars (main file, extras, trailers, etc...)

inside NZB, can find multiple passwords for the archives:

Code: Select all

cat ./NZB_NAME.nzb| grep password
   <meta type="password">l8O8X6s6xeu3v1e</meta>
   <meta type="password">pI34rb489MCI2j6</meta>
   <meta type="password">P1dzYqp2E8QOq3Z</meta>
   <meta type="password">Pk33TyGUog0c176</meta>
   <meta type="password">v66fV96L36uov8c</meta>
   <meta type="password">oN1ouGt3uACK6NS</meta>
   <meta type="password">LxG6a33lV8BurJp</meta>
   <meta type="password">Q1cQ3R896qd86Zu</meta>
   <meta type="password">wv461riT87g8f1e</meta>
   <meta type="password">TE6HdO8Fg8p8611</meta>
   <meta type="password">Y6FTp8Cj6GGJVxv</meta>
   <meta type="password">Q816fe85K3R333D</meta>
   <meta type="password">Rpv1SDA8suGPUxK</meta>
   <meta type="password">H66izDDkuF37kcH</meta>
   <meta type="password">ECgt1htVP2nYr9z</meta>
   <meta type="password">NH8oH8v3e5qNya8</meta>
   <meta type="password">Qe67q6Fevlu43i3</meta>
   <meta type="password">86ZDpy7FZrEuKfU</meta>
   <meta type="password">lirk3rr831X5286</meta>
   <meta type="password">J8667Rk0ZNx63n1</meta>
   <meta type="password">48F7T116Lupxmy8</meta>
   <meta type="password">62sdXw0jXgbkBB7</meta>
   <meta type="password">G5qQQ0676H6lufz</meta>
SAB downloads (I un-set the encyrpted rar check) and begins to unpack (tried with and without direct unpack enabled, same outcome)

it will try one of the passwords against every archive, unrar the one it matches to, then fail the rest :

Code: Select all

[KAE6alf2xe1681hyOhy7Bvf9V1CB] Trying unrar with password "Pk33TyGUog0c176"
[KAE6alf2xe1681hyOhy7Bvf9V1CB] Unpacking failed, archive requires a password
[KAE6alf2xe1681hyOhy7Bvf9V1CB] Unpacking failed, archive requires a password
[FwF1r03c8s7MRrBP57UAH8xqc] Trying unrar with password "Pk33TyGUog0c176"
[FwF1r03c8s7MRrBP57UAH8xqc] Unpacking failed, archive requires a password
[FwF1r03c8s7MRrBP57UAH8xqc] Unpacking failed, archive requires a password
[ns688sb6w66a666C1s8F8DoG1F3yL6Jw] Trying unrar with password "Pk33TyGUog0c176"
[ns688sb6w66a666C1s8F8DoG1F3yL6Jw] Unpacking failed, archive requires a password
[ns688sb6w66a666C1s8F8DoG1F3yL6Jw] Unpacking failed, archive requires a password
[uzc36CplY9u6Okymt3DVZ9d8x017injp03ZM] Trying unrar with password "Pk33TyGUog0c176"
[uzc36CplY9u6Okymt3DVZ9d8x017injp03ZM] Unpacking failed, archive requires a password
[uzc36CplY9u6Okymt3DVZ9d8x017injp03ZM] Unpacking failed, archive requires a password
[A6G66u9LZpa80373Y5Bi98ly] Trying unrar with password "Pk33TyGUog0c176"
[A6G66u9LZpa80373Y5Bi98ly] Unpacking failed, archive requires a password
[A6G66u9LZpa80373Y5Bi98ly] Unpacking failed, archive requires a password
[OHTur0Ar62Ws3f3G6UBYaVV1hLY53] Trying unrar with password "Pk33TyGUog0c176"
[OHTur0Ar62Ws3f3G6UBYaVV1hLY53] Unpacking failed, archive requires a password
[OHTur0Ar62Ws3f3G6UBYaVV1hLY53] Unpacking failed, archive requires a password
[U6W9o63y7OhEW9vdPjJIC6JuaGCKa3dwg7AK] Trying unrar with password "Pk33TyGUog0c176"
[U6W9o63y7OhEW9vdPjJIC6JuaGCKa3dwg7AK] Unpacking failed, archive requires a password
[U6W9o63y7OhEW9vdPjJIC6JuaGCKa3dwg7AK] Unpacking failed, archive requires a password
[i613g16obLMs5lzc01046S3DFnkokh71] Trying unrar with password "Pk33TyGUog0c176"
[i613g16obLMs5lzc01046S3DFnkokh71] Unpacking failed, archive requires a password
[i613g16obLMs5lzc01046S3DFnkokh71] Unpacking failed, archive requires a password
[P1aqRb213y6WiuXvEVn6rr5d84mmy] Trying unrar with password "Pk33TyGUog0c176"
[P1aqRb213y6WiuXvEVn6rr5d84mmy] Unpacking failed, archive requires a password
[P1aqRb213y6WiuXvEVn6rr5d84mmy] Unpacking failed, archive requires a password
[Tux7a6n66j56n2bRYp06hSKYa9I7LZlB9D64] Trying unrar with password "Pk33TyGUog0c176"
[Tux7a6n66j56n2bRYp06hSKYa9I7LZlB9D64] Unpacking failed, archive requires a password
[Tux7a6n66j56n2bRYp06hSKYa9I7LZlB9D64] Unpacking failed, archive requires a password
[Njzw11pr61hD33QwsVYOUt3fnu] Trying unrar with password "Pk33TyGUog0c176"
[Njzw11pr61hD33QwsVYOUt3fnu] Unpacking failed, archive requires a password
[Njzw11pr61hD33QwsVYOUt3fnu] Unpacking failed, archive requires a password
[I1Y8Z6Sg6Rke31Lw6Yj5y0Aj] Trying unrar with password "Pk33TyGUog0c176"
[I1Y8Z6Sg6Rke31Lw6Yj5y0Aj] Unpacking failed, archive requires a password
[I1Y8Z6Sg6Rke31Lw6Yj5y0Aj] Unpacking failed, archive requires a password
[67MDr00pnB7lE338bDNyj3xattce] Trying unrar with password "Pk33TyGUog0c176"
[67MDr00pnB7lE338bDNyj3xattce] Unpacking failed, archive requires a password
[67MDr00pnB7lE338bDNyj3xattce] Unpacking failed, archive requires a password
[g3gWN76aY3zn63yv69Ita3pz9s8] Trying unrar with password "Pk33TyGUog0c176"
[g3gWN76aY3zn63yv69Ita3pz9s8] Unpacked 1 files/folders in 1 sec
[CrbTnLxIZa316L8R53YR7F3DiXQ0l6IX] Trying unrar with password "Pk33TyGUog0c176"
[CrbTnLxIZa316L8R53YR7F3DiXQ0l6IX] Unpacking failed, archive requires a password
[CrbTnLxIZa316L8R53YR7F3DiXQ0l6IX] Unpacking failed, archive requires a password
[9hCzWp3bzE8Y1oJa26Z336G30bqsfH3itMcQ6] Trying unrar with password "Pk33TyGUog0c176"
[9hCzWp3bzE8Y1oJa26Z336G30bqsfH3itMcQ6] Unpacking failed, archive requires a password
[9hCzWp3bzE8Y1oJa26Z336G30bqsfH3itMcQ6] Unpacking failed, archive requires a password
[K6s3y1fIE89ad1uM3Yg02a4wTH] Trying unrar with password "Pk33TyGUog0c176"
[K6s3y1fIE89ad1uM3Yg02a4wTH] Unpacking failed, archive requires a password
[K6s3y1fIE89ad1uM3Yg02a4wTH] Unpacking failed, archive requires a password
[C0HO7uhfq1dX70KHeppk3ty7SAqZ0U] Trying unrar with password

Is there a way to tell SAB to check and retry with more given passwords?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: NZB with multiple encrypted rars

Post by safihre »

You can add them all to your passwords file, see Config Folders.
Then it will try them all.

I've never seen these NZB files with multiple passwords, seems exotic.. The code is only suitable for single password jobs.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
tenz
Newbie
Newbie
Posts: 3
Joined: November 10th, 2021, 12:39 pm

Re: NZB with multiple encrypted rars

Post by tenz »

Yea. But then. I would have to manually do that for every nzb packaged the same way? Less than ideal, though I understand the reasoning.

I don’t particularly care about the extras, is there a way to have SAB pick the password for the largest archive of the bunch?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: NZB with multiple encrypted rars

Post by safihre »

Not really a quick way..

Is there a specific source that makes NZB's like this? Some indexer?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
tenz
Newbie
Newbie
Posts: 3
Joined: November 10th, 2021, 12:39 pm

Re: NZB with multiple encrypted rars

Post by tenz »

its strange acually, first ive seen them too. Its releases from "tigole" but most likely re-packaged. if you send me a PM i can link you to one of the NZBs if youre interested
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: NZB with multiple encrypted rars

Post by safihre »

Seems we just ignore all but the first password if there are multiple.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: NZB with multiple encrypted rars

Post by jcfp »

Would be interesting to know what genius thought it was a good idea to model an nzb after frankenstein's monster. Assuming there's a matching archive for every password listed, just figuring out which password belongs to each archive would take approximately n2/2 attempts. For the example in the topic start that means doing ~264 extraction attempts in a single job just to process 23 archives.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: NZB with multiple encrypted rars

Post by safihre »

Yep.. But most likely they are in order. So the first job we try the first password, and it works. Second job we already have to try the first password, then the second one, which matches and so on.
Still requires a lot of attempts, but since it's all automated the user isn't bothered with it.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: NZB with multiple encrypted rars

Post by jcfp »

If we go by that assumption (or even if we assume every password is typically only used for one archive if an nzb supplies more than one), reordering the nzb-supplied passwords by moving "used" ones to the end of the list could save quite a few futile attempts.
Post Reply