@@ -4991,9 +4991,9 @@ def recover_plt(text,arch):
4991
4991
if idx <= pc_idx :
4992
4992
text += line + "\n "
4993
4993
else :
4994
- text += " | %s\n " % line .strip ()
4994
+ text += " │ %s\n " % line .strip ()
4995
4995
text = format_disasm_code (text , pc ) + "\n "
4996
- text += " |- >"
4996
+ text += " └─ >"
4997
4997
code = peda .get_disasm (jumpto , count // 2 )
4998
4998
if not code :
4999
4999
code = " Cannot evaluate jump destination\n "
@@ -5002,7 +5002,8 @@ def recover_plt(text,arch):
5002
5002
text += red (code [0 ]) + "\n "
5003
5003
for line in code [1 :]:
5004
5004
text += " %s\n " % line .strip ()
5005
- text += red ("JUMP is taken" .rjust (79 ))
5005
+ if "ret" not in opcode :
5006
+ text += red ("JUMP is taken" .rjust (79 ))
5006
5007
else :
5007
5008
text += format_disasm_code (peda .disassemble_around (pc , count ), pc )
5008
5009
text += "\n " + green ("jump is not taken" .rjust (79 ))
@@ -5028,9 +5029,9 @@ def recover_plt(text,arch):
5028
5029
if idx <= pc_idx :
5029
5030
text += line + "\n "
5030
5031
else :
5031
- text += " | %s\n " % line .strip ()
5032
+ text += " │ %s\n " % line .strip ()
5032
5033
text = format_disasm_code (text , pc ) + "\n "
5033
- text += " |- >"
5034
+ text += " └─ >"
5034
5035
code = peda .get_disasm (jumpto , count // 2 )
5035
5036
if not code :
5036
5037
code = " Cannot evaluate jump destination\n "
@@ -5039,7 +5040,8 @@ def recover_plt(text,arch):
5039
5040
text += red (code [0 ]) + "\n "
5040
5041
for line in code [1 :]:
5041
5042
text += " %s\n " % line .strip ()
5042
- text += red ("JUMP is taken" .rjust (79 ))
5043
+ if "ret" not in opcode :
5044
+ text += red ("JUMP is taken" .rjust (79 ))
5043
5045
else : # JUMP is NOT taken
5044
5046
text += format_disasm_code (peda .disassemble_around (pc , count ), pc )
5045
5047
text += "\n " + green ("JUMP is NOT taken" .rjust (79 ))
0 commit comments