Just4Today Decrypter

Got a program that plays well with SABnzbd? Share it here!
Post Reply
NSV
Newbie
Newbie
Posts: 2
Joined: May 19th, 2012, 1:38 pm

Just4Today Decrypter

Post by NSV »

Hello everybody,

I use SABnzbd and I want use Just4Today.
So annoying of updating all day Just4Today configuration (For those who don't know : http://www.just4today.net/)

So i made a little website and a little application (Open source baby : https://github.com/NSV/Just4Today)

The website site (an example is here : http://www.geneanum.com/just4today/) is here to decrypt the username/password of Just4Today.
It's collaborative so when one user change, everybody enjoy

The application, wrote in python (my first python application), parse two file on http://www.geneanum.com/just4today/ to obtain the username and password and it update the config file of sabnzbd with it.

For now, we need to restart SAB to reload configuration file (use the api can avoid this problem)

More detailed on installation on Github : https://github.com/NSV/Just4Today

It's much more a test than a true program.
So don't hesitate, fork it.

Possible roadmap :
- Save old captcha for automatic decryption
- Update username/password on the site after x visitors change the value
- Use the API to change the configuration file

NSV
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Just4Today Decrypter

Post by sander »

I get this error:

Code: Select all

sander@R540:~/.sabnzbd$ python SABnzbdUpdater.py 
username = jmmed
password = tmtn4
Traceback (most recent call last):
  File "SABnzbdUpdater.py", line 24, in <module>
    blockJust4Today = m.group(0)
AttributeError: 'NoneType' object has no attribute 'group'
sander@R540:~/.sabnzbd$
And what is config.ini? A copy of sabnzbd.ini? Or some file for the updater itself?
NSV
Newbie
Newbie
Posts: 2
Joined: May 19th, 2012, 1:38 pm

Re: Just4Today Decrypter

Post by NSV »

Yeap, it was a mistake.

It's the SABnzbd.ini file.

Pull again, i fix the error.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: Just4Today Decrypter

Post by sander »

NSV wrote:Yeap, it was a mistake.

It's the SABnzbd.ini file.

Pull again, i fix the error.
I had to change references to "SABnzbnd.ini" to "sabnzbd.ini", and had to put the script into a subdirectory of ~/.sabnzbd. Now it works.

However:
- I think a restart of SABnzbd (via the API) is needed to read the new variables
- when I click on Test Server, I sometimes get a time out
- the scripts writes a the complete config info also to stdout / screen, but not all: it stops somewhere:

Code: Select all

cat = ""
priority = -100
filter1 = "", "", "", R, *, -100, 1
filter0 = "", "", "", A, royanand, -100, 1
[
The config file is updated
sander@R540:~/.sabnzbd/SABnzbdUpdater$ 
I would say: do not write the config file to stdout / screen.
jocke
Newbie
Newbie
Posts: 38
Joined: April 22nd, 2009, 4:47 pm

Re: Just4Today Decrypter

Post by jocke »

So, dragging up this old thread a bit, but thought this could be of use for other people as well.

I've made a really simple bash-script that fetches the username & password for Just4Today, and updates the server in SABnzbd via the API (and hence, no restart of SABnzbd is needed).

Simply run it once or twice a day (around the time when the new password is generated) via a cron-job, or similar.

Code: Select all

#!/bin/bash

sabnzbd_url="https://10.10.10.10/sabnzbd"
sabnzbd_apikey="blahblah"
sabnzbd_servername="news.just4today.net"

# fetch todays user/pw
j4t_content=$(wget -q -O- http://www.geneanum.com/just4today/index.php)

# put them into variables
j4t_user=$(echo "$j4t_content" | grep "id\=\"username\"" | perl -wple 's/.+value\=\"([a-zA-Z0-9]+)\".+/$1/')
j4t_pw=$(echo "$j4t_content" | grep "id\=\"password\"" | perl -wple 's/.+value\=\"([a-zA-Z0-9]+)\".+/$1/')

# update sabnzbd
wget --no-check-certificate -q -O/dev/null "${sabnzbd_url}/api?apikey=${sabnzbd_apikey}&mode=set_config&section=servers&keyword=${sabnzbd_servername}&username=${j4t_user}&password=${j4t_pw}"
Post Reply