我收到了一些对我来说不可读的.py
个文件,源代码被混淆了。我该怎么做才能对它们进行去混淆?
以下是一个例子:
user.py
exec("import re;import base64")
text = 'MzYgMjYsIDhkLCBlNiwgMTYsIGY0LCA1YgozNiBkLGY2LCA3NywgZjMKMzYgZWQsIDEwMywgNTQsIGY0LmQ3CmQ2IDI2IDM2IDYzIGIzIGNkCjM2IDI4LCBmYQpkNiBjZiAzNiBlMQozNiAxOAoKCmFlPSAnZjAuMjcnCjE1ID0gOGQuMTAwKGFlKQo5MSA9IDI2LjYzKDE1LmI1KCdlNCcpKQoxZSA9IGY0LmQ3LjEwOSg5MSwgJ2RmJykKCgo2IDFkCjFkID0gJzEzLjExNicKMmIgPSAiZjkiCgo2IDExZgoxMWYgPSAxNi4xYSg0MSg1Yi40NlsxXSksICcxMWYnKQoKNiAxOQoxOSA9IDE2LjFhKDQxKDViLjQ2WzFdKSwgJzE5JykKNiBkYgpkYiA9IDE2LjFhKDQxKDViLjQ2WzFdKSwgJ2RiJykKNiBjOQpjOSA9IDE2LjFhKDQxKDViLjQ2WzFdKSwgJ2M5JykKNiA2MAo2MCA9IDE2LjFhKDQxKDViLjQ2WzFdKSwgJzYwJykKCgoKCgoKCgoKNWMgZWYoMjgpOgoJCgk3NiA9IGU2LmIoKQoJNzYuM2EoIjI4IiwgMjgsICIiLCIiKQoJCgo1YyA4KDllLCA0MywgNWYsIDhjPWRjKToKCTI1IDhjOgoJICAgYTQ6IGExID0gNzcuYjkoIig/MTIxKSIgKyA0MyArICIoW1xlOFwxMjZdKz8pIiArIDVmLCA5ZSkuYzYoMSkKCSAgIDUwOiBhMSA9ICcnCgk2YjoKCSAgIGE0OiBhMSA9IDc3LmI5KCIoPzEyMSkoIiArIDQzICsgIltcZThcMTI2XSs/IiArIDVmICsgIikiLCA5ZSkuYzYoMSkKCSAgIDUwOiBhMSA9ICcnCgkxMCBhMQoKCjVjIGE4KDI4KToKCgk5MiA9ICJmZCIKCTI1IDkyIDEyNCAyODoKCQlhNSA9I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I2LjEyKCczYy40NCcpCgkJCgkKCTYgNGYJCgk0ZiA9IDI2LjEyKCczYy42MicpCgkJCQoJODEgNGYgPT0gImI0IjoKCQk0ZiA9IDI2LjEyKCczYy42MicpCgkJCgkKCTYgMjQKCTI0ID0gMjYuMTIoJ2FjLjdlJykKCQkJCgk4MSAyNC41OSgnOicpID09IC0xOgoJCTI0ID0gMjYuMTIoJ2FjLjdlJyk='
exec((lambda p,y: (lambda o,b,f: re.sub(o,b,f))(r"([0-9a-f]+)",lambda m:p(m,y),base64.b64decode(text)))(lambda a,b:b[int("0x"+a.group(1),16)],"0|1|2|3|4|5|global|setSetting|regex_from_to|9|a|Dialog|rateresult|urllib2|e|f|return|staff_override|getInfoLabel|ares|userChoice|addon|xbmcplugin|rating|datetime|email|getSetting|password|config|basephpfile|settingsfile|add_header|20|country|privateinternetaccess|req|mac|if|xbmc|areswizard|string|true|points|aresagent|nameinput|passwordinput|whatismyipaddress|emailinput|Request|urlopen|span|country1|name|city|import|strftime|link|occurred|ok|str|System|cpufreq|problem|style|Agent|int|isp|from_string|VideoEncoderInfo|nospaces|argv|activate|Keyboard|ip|rated|Please|action|activationinput|city1|kernel|except|http|User|doModal|json|replace|Windows|getText|read|find|font|sys|def|was|Duplicate|to_string|showadult|firstpart|KernelVersion|translatePath|ares_rate_url|error|there|Sorry|close|autopassword|with|else|CpuFrequency|weight|isinresponse|Thanks|sub|result|isp1|registration|Inserted|accepted|dialog|re|Already|collect|already|enter|user|time|MacAddress|jsonstring|Your|while|open|getsysinfo|2008092417|activation|awaiting_activation|rateaddon|com|Incorrect|select|ratebuild|excluding|xbmcaddon|now|incorrectpassword|register|datapath|colortag|this|ares_rate_result|your|bold|userinfo|zA|closetag|9a|pass|URLError|raterepo|text|deviceid|using|r|gpu|stars|try|opentag|Country|Firefox|stripcolortags|Timeout|activationcode|setHiddenInput|Network|Mozilla|addonid|keyboard|An|device|many|as|Busy|getAddonInfo|td|ip1|size|search|dump|14px|Activation|https|be|decoration|uk|registered|pages|Gecko|co|Registered|group|to|whats|debuglog|emailsent|You|How|translate|print|resources|activated|Provider|n|info|Z|mismatch|from|path|City|load|CAPITALS|accountstatus|True|bypassed|Internet|settings|code|strings|command|minutes|profile|Address|xbmcgui|address|S|through|Service|couple|URL|shutil|my|nojson|script|www|backup|base64|os|th|urllib|unique|folder|wizard|random|forget|build|COLOR|dumps|enjoy|Addon|data|GB|glob|take|en|site|is|NT|join|sent|spam|wish|rv|come|Hope|like|repo|none|26px|must|don|php|may|w|you|too|ALL|registerresult|ISP|for|username|It|i|U|response|in|an|s|of|check|IP|url|t".split("|")))
答案 0 :(得分:2)
此代码混淆的本质是最后一行构造python代码,然后使用exec
语句\ function执行。
因此,以下代码将对其进行解密:
import re,base64
text = BASE64_TEXT
decoded_text = (lambda p,y:...) #The exec( at the beginning and its matching ) at then end have been deleted.