Remote Exploit Forums

Go Back   Remote Exploit Forums > Specialist Topics > Pentesting


Pentesting Specific topics related to legal penetration testing

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2009, 09:52 AM
Senior Member
 
Join Date: Jun 2008
Posts: 358
Default exploit write, small jump

Hi, I'm trying to workout how to do a small jump. I'm useing the opcode eb, and would like jump 10 instruction.
do I have to add a offset or linear number in frount or behind it?
Reply With Quote
  #2 (permalink)  
Old 11-07-2009, 08:53 PM
Junior Member
 
Join Date: Jul 2009
Location: 1337 h4x0r str337
Posts: 20
Send a message via AIM to b3r00tb4ck
Default

geek32 edition | X86 Opcode and Instruction Reference 1.10

really good site i found, VERY useful for shellcoding/exploit dev, sorry i dont have time to search it for you
Reply With Quote
  #3 (permalink)  
Old 11-07-2009, 10:18 PM
Senior Member
 
Join Date: Jun 2008
Posts: 358
Default

Thanks b3r00tb4ck
Reply With Quote
  #4 (permalink)  
Old 11-08-2009, 12:05 AM
lupin's Avatar
Moderator
 
Join Date: Mar 2009
Location: Australia
Posts: 938
Default

Its '\eb\0a' for future reference. Be careful though because '\0a' is often a restricted character for buffer overflows.
__________________
Nancy Astor: If I were your wife I would put poison in your coffee!
Winston Churchill: Madam, if I were your husband I would drink it.
Reply With Quote
  #5 (permalink)  
Old 11-08-2009, 02:31 AM
Senior Member
 
Join Date: Jun 2008
Posts: 358
Default

This is along the same lines, olly is showing up 75e00000 refenced memory at 41414141 .
I have tryed point the memory location to some locations.
When I ran the exploit to the crash, i then run again, and then olly dies.

Any help would be appracted
thanks
Reply With Quote
  #6 (permalink)  
Old 11-08-2009, 05:06 AM
lupin's Avatar
Moderator
 
Join Date: Mar 2009
Location: Australia
Posts: 938
Default

Need some more details about what you are doing and what exactly changed between the overwrite with \x41 and the time where you tried to point the crash location elsewhere. Also, what do you mean when you say Olly dies?

Do you know what type of overwrite this is? Stack based? Direct EIP or SEH? How you are feeding the buffer to the program (STDIN, network socket?)

Perhaps give a step by step of what your buffer contains during the \41 overwrite and when you try to point the buffer to a particular location, exactly what Olly does in response to each buffer.
__________________
Nancy Astor: If I were your wife I would put poison in your coffee!
Winston Churchill: Madam, if I were your husband I would drink it.
Reply With Quote
  #7 (permalink)  
Old 11-08-2009, 07:31 AM
Senior Member
 
Join Date: Jun 2008
Posts: 358
Default

Quote:
Need some more details about what you are doing and what exactly changed between the overwrite with \x41 and the time where you tried to point the crash location elsewhere. Also, what do you mean when you say Olly dies?

Do you know what type of overwrite this is? Stack based? Direct EIP or SEH? How you are feeding the buffer to the program (STDIN, network socket?)

Perhaps give a step by step of what your buffer contains during the \41 overwrite and when you try to point the buffer to a particular location, exactly what Olly does in response to each buffer.
It calls seh, I send it to the progam with a network socket. Eip is the address of a cmp [ecx],eax were ecx conatins 41414141.
after it shows up saying tryed to refence memory, i click run it comes up again, i then hit run and olly closes(not in task bar)
There are a coulpe of place in the program were safeseh is off.
Reply With Quote
  #8 (permalink)  
Old 11-08-2009, 08:42 AM
lupin's Avatar
Moderator
 
Join Date: Mar 2009
Location: Australia
Posts: 938
Default

Quote:
Originally Posted by compaq View Post
It calls seh, I send it to the progam with a network socket. Eip is the address of a cmp [ecx],eax were ecx conatins 41414141.
after it shows up saying tryed to refence memory, i click run it comes up again, i then hit run and olly closes(not in task bar)
There are a coulpe of place in the program were safeseh is off.
Ive never had Olly do that to me before. Are you using the default config?

If you are doing an SEH overwrite, why don't you try and use a POP, POP, RET, thats the usual way to get code execution.
__________________
Nancy Astor: If I were your wife I would put poison in your coffee!
Winston Churchill: Madam, if I were your husband I would drink it.
Reply With Quote
  #9 (permalink)  
Old 11-08-2009, 08:49 AM
Senior Member
 
Join Date: Jun 2008
Posts: 358
Default

Quote:
Ive never had Olly do that to me before. Are you using the default config?

If you are doing an SEH overwrite, why don't you try and use a POP, POP, RET, thats the usual way to get code execution.
My sound a bit.. Do i add the address of the start of a pop pop ret into ecx, as. like 77c40000? , I have try things like that push ecx,call , as well has a short jump, all just display the string of the commands at address 77c40000 in ecx.
It goes into the exception handler, but ecx just gets zeroed out
Reply With Quote
  #10 (permalink)  
Old 11-08-2009, 09:12 AM
Gitsnik's Avatar
Senior Member
 
Join Date: Jun 2009
Location: The Crystal Wind
Posts: 494
Default

Quote:
Originally Posted by lupin View Post
Ive never had Olly do that to me before. Are you using the default config?
Anti-debugging code will do that - Immunity Debugger has a !hidedbg command (misspellings may apply).
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2