Government Security
Network Security Resources

Jump to content

Photo

I need help with a simple shellcode

- - - - - exploit c++ php shell
  • Please log in to reply
1 reply to this topic

#1 oxace

oxace

    Private

  • Members
  • 1 posts

Posted 24 March 2009 - 02:05 AM

I've made a simple stack overflow and I'm trying to exploit it to display a message using the MessageBoxA function located in user32
but when the shellcode execute .. it brings empty window like this one

Posted Image

I'm using Dev C++

Posted Image

the code is here.

any help please :( ...

#2 Robin

Robin

    Private First Class

  • Members
  • 29 posts

Posted 24 March 2009 - 02:36 AM

Hey,

Well I am not a Master in Shellcoding.
But I know some Unix things.

I cant try since I dont have windows here but try the following change:
MOV ECX,23FED1
xor eax, eax #PUSH 0
push eax
PUSH ECX
PUSH ECX
xor eax, eax #PUSH 0
push eax
CALL DWORD PTR DS:[405140]
BOF

Also run olly when you try to exploit. It will help a lot.
Next from that I'd advice to start coding Shellcodes etc in Linux. And DONT use Vista since of its StackProtection ( Though I havn't checked that out yet )

But as I said, Shellcodes isnt really my piece of pie (I am more of the Spoofing, Sniffing and RCEing) but it might help :)

Gr.
Robin





Also tagged with one or more of these keywords: exploit, c++, php, shell