Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Entry node missing problem happening in PjOrion v2 sample #5

wants to merge 1 commit into
base: master


Copy link

FXTi commented Aug 27, 2019

Error info:

INFO:simplifier:43 basic blocks eliminated
Traceback (most recent call last):
  File "./", line 72, in <module>
    process(args.ifile, args.ofile)
  File "./", line 58, in process
    deob = parse_code_object(rootCodeObject)
  File "./", line 20, in parse_code_object
    co_codestring = deobfuscate(codeObject.co_code)
  File "/tmp/sim/", line 75, in deobfuscate
    render_graph(simplifier.bb_graph, 'after_forwarder.svg')
  File "/tmp/sim/utils/", line 34, in render_graph
    entryblock = nx.get_node_attributes(bb_graph, 'isEntry').keys()[0]
IndexError: list index out of range

It happened when the node labeled isEntry is merged with other node, without passing its isEntry attribute. So there's no available isEntry node left after first forward elimination.

This is sample pyc file for you to test. : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.