Flag: Tornado! Hurricane!

 Forums >>  Debuggers  >>  !findtrampoline Immunity Debugger Extension

Topic created on: August 11, 2007 08:57 CDT by Faithless .

Findtrampoline.py is a simple Immunity Debugger 'PyCommand' script. It finds a suitable trampoline to the chosen register. These could be suitable addresses to use in overwriting the saved return address, when exploiting a classic stack overflow.

This is similar functionality to eEye's findjmp and Metasploit's msfpescan tools.

Install by copying this file into the PyCommands\ folder, and from within the running debugger issue the !findtrampoline <register> command. It will search for the basic jmp, call and push/ret combinations to direct execution into a register which points to our shellcode.

-Rhys

  MohammadHosein     August 11, 2007 09:10.10 CDT
well done ! thanks

  kernex   August 11, 2007 10:53.54 CDT
:) i wrote a script like this before you :
http://www.openrce.org/forums/posts/558

  n00b   August 11, 2007 12:37.03 CDT
Oh great nice work im guna test it out so we can find the correct jmp <esp> or call <reg>.

  nicowow     August 11, 2007 15:17.29 CDT
That's so cool! You can also use the generic script that cames with ImmunityDebugger (but is not as automatic at yours):
!searchcode <asm code>
ex: !searchcode jmp ebx

  Faithless     August 12, 2007 00:21.17 CDT
Nico,
Oh yes I was aware of !searchcode <asm> as a quick and easy way to scan for particular opcodes, but I believe the benefit of my PyCommand is that it searches for both jmp, call and other relevant combinations that are applicable to directing execution into the chosen buffer.

They are both (!searchcode and !findtrampoline) useful in different circumstances.

  n00b   August 12, 2007 04:53.04 CDT
Yeh it's good but i didn't find any for the safeseh script i couldn't get it to work is there any documentation for this script.!

  jms     August 12, 2007 22:48.32 CDT
I had contacted MMiller at the Metasploit project about porting their msfopcode to Python so we could use it inside ImmuDBG. Is anyone interested in this? It would basically enable you to search the Metasploit OpcodeDB on the fly.....if there is interest I will start the port.

  hochi   August 27, 2007 14:44.06 CDT
YES! it would be extremely useful

> jms: I had contacted MMiller at the Metasploit project about porting their msfopcode to Python so we could use it inside ImmuDBG. Is anyone interested in this? It would basically enable you to search the Metasploit OpcodeDB on the fly.....if there is interest I will start the port.

Note: Registration is required to post to the forums.

There are 20,335 total registered users.


Recently Created Topics
Career: Threat Inte...
Jul/30
Career: Security Res...
Jul/30
Library Debugging Pr...
Jul/29
Pydbg attach Vs load?
Jul/29
IDA and MIPS (emulat...
Jul/27
UK Cyber Security ch...
Jul/26
System Service Descr...
Jul/26
LD_PRELOAD Question
Jul/23
Patching Application...
Jul/22
Contract: Research E...
Jul/19


Recent Forum Posts
Pydbg attach Vs load?
aMIr
LD_PRELOAD Question
monarch
LD_PRELOAD Question
justano...
LD_PRELOAD Question
monarch
Patching Application...
hughhan
Patching Application...
jduck
immunity debugger pl...
Malware...
paimei installation ...
wishi
IDA Pro customization
wishi
how to chnage an ins...
ConsoleFx


Recent Blog Entries
ResearchAviator
Jul/28
Installation procedure for ...

artemblagodarenko
Jul/27
Common function prototype

dennis
Jul/24
Dr. Gadget IDAPython plugin

trufae
Jul/23
radare2 0.5 released

AmrThabet
Jul/21
Pokas x86 Emulator for Gene...

More ...


Recent Blog Comments
omeg on:
Jul/29
Windows 7 syscall list

renzosilv on:
Jul/26
Windows 7 syscall list

renzosilv on:
Jul/26
Windows 7 syscall list

Dreg on:
Jul/21
HiperDrop 0.0.1

djnemo on:
Jul/20
HiperDrop 0.0.1

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit