解压pyc文件=>输出中的名称只有下划线、“0”s、“O”s、“O”s、“l”s和“1”

2024-09-28 22:24:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试对pyc文件进行反向工程。所以我运行uncompyle,得到了非常奇怪的输出

import os, sys, shutil, re, base64, inspect, socket, datetime, itertools, random, colorsys
from functools import partial
import collections, uuid
from string import ascii_uppercase
o___O_0___0___O_O____0_0__O_____o_o____1 = uuid.getnode
o___o__1___o_O_o_____O____O____0_l___O_0 = os.path.getmtime
o__l_____o_o____o____O_o____1___0 = os.path.getctime

class o____l____1_l__O__1____l__o__1(object):
    _o___O___o___1___1___1_0_O_____o____O_O__O_____1_____l___o = {}

    def __getattr__(o___l___1____1___l_____O_l_____1_0_____o__0___O_____0_o____O_O, propertyName):
        o___l___1____1___l_____O_l_____1_0_____o__0___O_____0_o____O_O.__dict__[propertyName] = None
        return

    def o_O__l_0_____0__0_____0_____O____1___O(o___l___1____1___l_____O_l_____1_0_____o__0___O_____0_o____O_O, propertyName):
        try:

有没有办法正确地解压缩文件


Tags: 文件pathfromimportreuuidosdef
1条回答
网友
1楼 · 发布于 2024-09-28 22:24:22

Typically this means whoever built the file used obfuscation tools. If those tools are well-built, the original names aren't there at all anymore, and you need to infer them from context. (Whoever ran the tool will typically have a map from the generated name back to the original name, but that doesn't do you any good).

–查尔斯·达菲回答

相关问题 更多 >