Finding Right Module (Return address)
In this we will find breakpoint, JMP ESP is breakpoint. Basically it will stop the program from further command and will wait for us to enter malicious commands
- Download mona.py from https://github.com/corelan/mona in folder location This PC>Local disk(C:)>Program Files(x86)>Immunity Inc>Immunity Debugger>PyCommands
- At the bottom of Immunity Debugger there is a console where we can type:
!mona modules
It give modules . Check for modules with all values FALSE
- !mona find -s β\xff\xe4β -m <module_name>
if it give 0 pointer then use another module with False value . \xff\xe4 is nasm value of JMP ESP
- check the first result (like 625011af)
- Edit the script.py and add result value in reverse format like this (\xaf\x11\x50\x62) . Donβt run it as malicious code will added in next step