Add functionality of CharTranslator.py to Deobfuscate.py ?

Want something added? Ask for it here.
Post Reply
pven
Release Testers
Release Testers
Posts: 124
Joined: August 21st, 2009, 5:00 am

Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by pven » September 30th, 2018, 7:01 am

I am using several postprocess-scripts. One of them is CharTranslator.py ( https://github.com/SynoCommunity/spksrc ... nslator.py ). This is getting rid of some terrible characters that are allways hard to handle at the prompt.

Is it possible to integrate the 'get rid of the strange characters'-functionality into Deobfuscate.py ?

User avatar
safihre
Administrator
Administrator
Posts: 2887
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by safihre » October 1st, 2018, 1:56 pm

Hmmm it's an interesting thought.
You could create a pull request for it? :)

User avatar
OneCD
Full Member
Full Member
Posts: 214
Joined: March 4th, 2017, 3:47 pm

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by OneCD » October 1st, 2018, 2:05 pm

A semi-related question: is it possible to run multiple post-processing scripts?
Stuff I like: Apache BASH CouchPotato CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox WordPress XFCE

pven
Release Testers
Release Testers
Posts: 124
Joined: August 21st, 2009, 5:00 am

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by pven » October 1st, 2018, 2:22 pm

@safihr: I will

@OneCD: yes, it is

Maybe there is an easier way, but I created a script called all.psy (.sh is probably a better extension) that I start as postprocess-script, it contains :

Code: Select all

#!/bin/sh
python /usr/local/sabnzbd/var/scripts/CharTranslator.py "[email protected]"
python /usr/local/sabnzbd/var/scripts/Deobfuscate.py "[email protected]"

User avatar
OneCD
Full Member
Full Member
Posts: 214
Joined: March 4th, 2017, 3:47 pm

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by OneCD » October 1st, 2018, 2:42 pm

pven wrote:
October 1st, 2018, 2:22 pm
Maybe there is an easier way, but I created a script called all.psy (.sh is probably a better extension) that I start as postprocess-script, it contains :

Code: Select all

#!/bin/sh
python /usr/local/sabnzbd/var/scripts/CharTranslator.py "[email protected]"
python /usr/local/sabnzbd/var/scripts/Deobfuscate.py "[email protected]"
That's cheating! ;D

Sorry, I meant via the SAB UI. ;)
Stuff I like: Apache BASH CouchPotato CRON DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickChill Transmission Usenet VirtualBox WordPress XFCE

User avatar
safihre
Administrator
Administrator
Posts: 2887
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by safihre » October 2nd, 2018, 1:30 am

As SAB is "the easy client", we left such options out ;)

Maybe we should add this char translation to the sabnzbd core? Since we have an option to Make windows compatible. Or is it too tricky? Seems like you need to set the specific encoding? We could use chardet package to do that.

pven
Release Testers
Release Testers
Posts: 124
Joined: August 21st, 2009, 5:00 am

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by pven » October 2nd, 2018, 1:55 am

I have no idea what happens ie with Chinese characters. No idea what the chardet package is.

You still want m to create a pull request? (Did not look into it yet.)

User avatar
safihre
Administrator
Administrator
Posts: 2887
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by safihre » October 2nd, 2018, 2:39 am

Yes, a pull request and if you could include examples of NZB's that need it, that would be great for testing.
I can always modify the pull request and put it in Sab directly.

Post Reply