pyc_obscure icon indicating copy to clipboard operation
pyc_obscure copied to clipboard

pyc文件过大导致报错

Open Military-axe opened this issue 2 years ago • 1 comments

当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函数不可用

Military-axe avatar Sep 08 '22 00:09 Military-axe

这问题在另外一个 issue 里面也提到了,可以参考一下 https://github.com/marryjianjian/pyc_obscure/issues/1#issuecomment-708880118

marryjianjian avatar Sep 17 '22 10:09 marryjianjian