我找到了此代码,并且认为已对其进行了编码。我认为这不是经过编译的字节码,并且看起来不像常规的 .py 脚本。
<ETX>ó
p<NUL>4c[<NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><ETX><NUL>
我无法粘贴所有代码,因为其中包含非ASCII字符,因此我将链接附加到GitHub。
我想将文件 dark.py 解码为常规代码,其可读性与以下代码相似:
import sys
try:
file = open(file_name, "w")
except IOError:
print "There was an error writing to", file_name
sys.exit()
print "Enter '", file_finish,
print "' When finished"
while file_text != file_finish:
file_text = raw_input("Enter text: ")
if file_text == file_finish:
file.close
break
file.write(file_text)
file.write("\n")
file.close()
file_name = raw_input("Enter filename: ")
if len(file_name) == 0:
print "Next time please enter something"
sys.exit()
try:
file = open(file_name, "r")
except IOError:
print "There was an error reading file"
sys.exit()
file_text = file.read()
file.close()
print file_text