Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Request PYTHON DECODE HELP: Obfuscated character text

verg0

Extended Member
Ext. Member
Joined
Sep 25, 2019
Messages
140
Reaction score
447
Points
74
Location
Earth
Hi guys, im trying to decode gears kodi addon but without success:

Im trying to print the encoded text from the information held in the default.py script.

Can anyone help me print the encoded text in my example script?

Python:
# coding: UTF-8
import sys
l1111ll1_opy_ = sys.version_info [0] == 2
l1l11ll1_opy_ = 2048
l111llll_opy_ = 7
def l1lll1_opy_ (l1ll111_opy_):
    global l1l1l111_opy_
    l11ll11l_opy_ = ord (l1ll111_opy_ [-1])
    l1l1ll_opy_ = l1ll111_opy_ [:-1]
    l1lll11l_opy_ = l11ll11l_opy_ % len (l1l1ll_opy_)
    l1l11l1_opy_ = l1l1ll_opy_ [:l1lll11l_opy_] + l1l1ll_opy_ [l1lll11l_opy_:]
    if l1111ll1_opy_:
        l1l11l_opy_ = unicode () .join ([unichr (ord (char) - l1l11ll1_opy_ - (l1111_opy_ + l11ll11l_opy_) % l111llll_opy_) for l1111_opy_, char in enumerate (l1l11l1_opy_)])
    else:
        l1l11l_opy_ = str () .join ([chr (ord (char) - l1l11ll1_opy_ - (l1111_opy_ + l11ll11l_opy_) % l111llll_opy_) for l1111_opy_, char in enumerate (l1l11l1_opy_)])
    return eval (l1l11l_opy_)
# import urllib,urllib2,sys,re,xbmcgui,xbmcaddon,datetime,os,json,base64,requests,pyxbmct,tools,thread,threading,time
# import xml.etree.ElementTree as ElementTree
reload(sys)
sys.setdefaultencoding(l1lll1_opy_ (u"ࠫࡺࡺࡦ࠹ࠩࠀ"))
print (u"ࠧ࠻࠱࠶ࠤࠁ")

my test.py script returnes an error in python when run, like this:

$ python test.py
Traceback (most recent call last):
File "test.py", line 20, in <module>
sys.setdefaultencoding(l1lll1_opy_ (u"???????"))
File "test.py", line 13, in l1lll1_opy_
l1l11l_opy_ = unicode () .join ([unichr (ord (char) - l1l11ll1_opy_ - (l1111_opy_ + l11ll11l_opy_) % l111llll_opy_) for l1111_opy_, char in enumerate (l1l11l1_opy_)])
ValueError: unichr() arg not in range(0x110000) (wide Python build)

can anyone help?
 
Last edited:
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
@urgodfather - Ok, here is the whole addon (provided by Dropy2008 in this thread - https://worldofiptv.com/threads/gears-gearsreloaded-vaders-addons.6643/)

The default.py file is in there

Thanks again
this has been encoded using a populr online encoder that was used by most addon developers around 1-2 years ago as far as i am aware the best you can do is kind of remember each veriable and function name and then follow th python comands that are not encoded to see what each function or file does pain in the as and takes ages todo
 
Last edited by a moderator:
This style is not fun to decode,........ I can do the strings but the random l1l11ll1_opy_ ect are not possible becase the ecode just randomly names the variables and you have to name those your self.
 
yeah its the strings that i was interested in :)
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
I wrote a small script that will help you Python 3+

Editing the PY:
ex line.
ADDON = xbmcaddon.Addon(id=l1lll1_opy_ (u"࠭ࡰ࡭ࡷࡪ࡭ࡳ࠴ࡶࡪࡦࡨࡳ࠳ࡸࡥࡣࡱࡲࡸࠬࠂ"))

then after

ADDON = xbmcaddon.Addon(id='plugin.video.reboot')


in the script below only use the string between the " " in the exampleline

 
Last edited:
Great! thanks mate (y)
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
I wrote a small script that will help you Python 3+

Editing the PY:
ex line.
ADDON = xbmcaddon.Addon(id=l1lll1_opy_ (u"࠭ࡰ࡭ࡷࡪ࡭ࡳ࠴ࡶࡪࡦࡨࡳ࠳ࡸࡥࡣࡱࡲࡸࠬࠂ"))

then after

ADDON = xbmcaddon.Addon(id='plugin.video.reboot')


in the script below only use the string between the " " in the exampleline

No quote

Greate work ! (y)
 
@FireTvGuru Your script works absolutely great! ..Can i be really cheeky and ask if it is possible to modify your script to find and replace all "l1lll1_opy_ (u"ENCODED-TEXT") and replace all strings with only decoded text, so we could strip the whole defauly.py script of encoded text in one command?

for example use your script like this:

python decode default.py > default.py_decoded

this would be great for bulk decoding whole scripts created with "Opy" ?

Again thank you for your time mate its really appreciated all the same (y)
 
tried to write something like this here:

main()
while True:
fin = open("default.py", "rt")
fout = open("default.py_DECODED", "wt")

for line in fin:
fout.write(string.replace('l1lll1_opy_ (u"$ENCODED"', ''))

fin.close()
fout.close()
main()

but dont know how to return the encoded text to your script etc,, im not good enough with pythons syntax unfortunately :(
 
Last edited:
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
tried to write something like this here:

main()
while True:
fin = open("default.py", "rt")
fout = open("default.py_DECODED", "wt")

for line in fin:
fout.write(string.replace('l1lll1_opy_ (u"$ENCODED"', ''))

fin.close()
fout.close()
main()

but dont know how to return the encoded text to your script etc,, im not good enough with pythons syntax unfortunately :(
Yes when I have some time that was a quickie lol .
I can and make a loop the place all in memory and replace then write <notes for me lol
 
Lol no worries mate,, appreciate your time bud ?
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top