|
|||||||||||
|
Re: Automatic discovery of shellcode address
From: <steve(at)uk.intasys.com>
Date: Mon Mar 24 2003 - 14:32:59 EST On Mon, Mar 24, 2003 at 11:44:08PM +1000, Adam Gilmore wrote: > Erm, correct me if I'm wrong, but the idea of placing your shellcode
That wasn't the part that I was considering as being novel. When I've coded things before I've spent most of my time determinig where the return address lies within the area I've overflowed. (By doing a binary search of my 'XXXXXX's). I was thinking that by knowing the address of the buffer in the processes memory space this would reduce the number of trials down to four. (To deal with alignment issues). If this isn't terribly different from how other people do things then I'm sorry for wasting folks time; I have personally found it useful for narrowing things down though. > Also, I find an easier method to find the shellcode address is trial and
Yes that would work also. (I have a love hate relationship with gdb, if only it had a memory search function!) > Another interesting method is to use ptrace. Have a look at nslconf.c on
I tend to work in environments where ptrace is disabled, so I've never used that - thanks for the pointer though :) Steve --- www.steve.org.ukReceived on Mon Mar 24 15:33:15 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:38 EDT |
||||||||||
|
|||||||||||