Skip to content

Commit

Permalink
fix python version in unicorn-emulate
Browse files Browse the repository at this point in the history
  • Loading branch information
theguy committed Jul 22, 2021
1 parent 1e52006 commit e9614ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -5960,7 +5960,7 @@ def set_fs(uc, addr): return set_msr(uc, FSMSR, addr)
set_gs(emu, SEGMENT_GS_ADDR)
"""

pythonbin = which("python")
pythonbin = which("python3")

content = """#!{pythonbin} -i
#
Expand Down Expand Up @@ -6105,7 +6105,7 @@ def emulate(emu, start_addr, end_addr):

ok("Starting emulation: {:#x} {} {:#x}".format(start_insn_addr, RIGHT_ARROW, end_insn_addr))

pythonbin = which("python")
pythonbin = which("python3")
res = gef_execute_external([pythonbin, tmp_filename], as_list=True)
gef_print("\n".join(res))

Expand Down

0 comments on commit e9614ab

Please sign in to comment.