Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Request PYTHON DECODE HELP: Obfuscated character text

verg0

Extended Member
Ext. Member
Joined
Sep 25, 2019
Messages
140
Reaction score
441
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

rob2k9

Banned
Banned
Ext. Member
Joined
Sep 19, 2019
Messages
214
Reaction score
947
Points
104
Age
32
Location
bomba
@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:

FireTvGuru

Extended Member
Ext. Member
Joined
Sep 11, 2019
Messages
217
Reaction score
2,829
Points
104
Location
USA
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.
 

verg0

Extended Member
Ext. Member
Joined
Sep 25, 2019
Messages
140
Reaction score
441
Points
74
Location
Earth
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

urgodfather

Banned
Banned
Ext. Member
Joined
Sep 22, 2019
Messages
2,098
Reaction score
5,930
Points
124
Location
neither here, nor there
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 @changglobize
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

FireTvGuru

Extended Member
Ext. Member
Joined
Sep 11, 2019
Messages
217
Reaction score
2,829
Points
104
Location
USA
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:
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

redhat

Administrator
Staff member
Administrator
Chief Moderator
Moderator
Joined
Jun 19, 2019
Messages
3,074
Reaction score
14,825
Points
134
Location
root[@]woi
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)
 

verg0

Extended Member
Ext. Member
Joined
Sep 25, 2019
Messages
140
Reaction score
441
Points
74
Location
Earth
@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)
 

verg0

Extended Member
Ext. Member
Joined
Sep 25, 2019
Messages
140
Reaction score
441
Points
74
Location
Earth
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 @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

FireTvGuru

Extended Member
Ext. Member
Joined
Sep 11, 2019
Messages
217
Reaction score
2,829
Points
104
Location
USA
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
 

verg0

Extended Member
Ext. Member
Joined
Sep 25, 2019
Messages
140
Reaction score
441
Points
74
Location
Earth
Lol no worries mate,, appreciate your time bud ?
 
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock