pyc_obscure
pyc_obscure copied to clipboard
pyc文件过大导致报错
当pyc过大的时候会出现这样的一个情况
~/Documents/CTF/llh_9.08_re/re3/源码/pyc_obscure.py in _gen_obs37_opcode_from_offset(self, offset)
64
65 def _gen_obs37_opcode_from_offset(self, offset):
...
---> 66 return bytes((opcode.opmap['JUMP_ABSOLUTE'], offset + 4)) + os.urandom(2)
67
68 def _get_obs_instr(self, offset):
offset过大,导致bytes函数不可用
这问题在另外一个 issue 里面也提到了,可以参考一下 https://github.com/marryjianjian/pyc_obscure/issues/1#issuecomment-708880118