question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jmp esp error Windows XP

See original GitHub issue

Expected behavior

  • Mona should provide the output of the instruction jmp esp upon executing !mona jmp -r esp

Actual behavior

  • Mona errors out, like below image

Steps to reproduce the problem

  • Open Immunity debugger and load mona.py
  • Search for jmp esp instruction with !mona jmp -r esp command and observe the output

Other useful information (mona version, debugger & debugger version, OS version, etc)

  • Windows Version: XP
  • Immunity Debugger Version: 1.85
  • Mona Version: Latest Patch
  • Python Version: 2.7.18
  • Other mona commands work, !mona find -s '\xff\xe4' this works fine

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
corelanc0d3rcommented, Oct 28, 2022

understood - unfortunately I am not able to rely on module updates or the use of non-standard modules… but you’re right, that would be a workaround indeed

0reactions
dhaneshsivasamy07commented, Oct 28, 2022

Hi @corelanc0d3r, Indeed, its the problem with python in xp

perhaps windows XP does not support modern crypto/HTTPS connections, causing the update process to fail. I don’t think this is a mona problem, I’m closing the issue 😃

  • Found a work around for this,

python -m pip install urllib3 certifi

  • Add the following in the mona.py file
import ssl

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

# add the following in line 13499
u = urllib.urlretrieve(updateurl, context=ctx)
  • Line to be updated here
Read more comments on GitHub >

github_iconTop Results From Across the Web

Buffer overflow exploitation: JMP ESP and CALL ESI
I am used to execute a buffer overflow as the first example above: Junk + EIP (JMP ESP) + NOP sled + Shellcode....
Read more >
assembly: windows dll not shown for "JMP ESP" instruction
The echo server is running on a Windows XP machine. The program works fine for me and the instructor. Just after opening the...
Read more >
Do the Exploit Tutorials Work Under XP SP3? - The Grey Corner
In a SP3 system, the instruction located at 0x7CA58265 does not contain a JMP ESP at all, it has a completely different instruction....
Read more >
SEH - ctfnote.com
The "JMP ESP" method that we have discussed in the "Classic" section only works for systems older than Windows XP SP1. Starting from...
Read more >
Dealing with bad characters & JMP instruction
Let's implement this technique and find the JMP ESP instruction in the program. So restart the program in the debugger and Press ALT+E....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found