Getting address of shellcode into ESP? [Sitemap] - HeapOverflow Computer Security Community & Forums : Heap Overflow.com

PDA

View Full Version : Getting address of shellcode into ESP?


danny3
02-02-09, 19:50
There is a remote vulnerability in a multiplayer game. I am new to this but have been able overflow the buffer and change the return address to one that points to `call esp` inside kernel32.dll.

I've read several articles but I'm still not sure how I would overwrite ESP register or somehow get the address of my shellcode into it?

I'm sending the data like this...

[Normal data]
[OVERFLOW AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]
[Return Address - call esp]
[Shellcode?]

Doing the above works on a simple vulnerable program I wrote (testing locally), but the shellcode doesn't get executed on the game. It goes to 'call esp' but how do I get ESP to point to location of my shellcode? :confused:

danny3
06-02-09, 04:41
I figured it out.

Ya'll suck... :/

fl0 fl0w
14-02-09, 07:15
Can you maybe tell us what game it is ?