Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2004, 20:36
Nukacola's Avatar
Nukacola Nukacola is offline
Friend
 
Join Date: Sep 2004
Location: Germany
Posts: 49
Rept. Given: 0
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Nukacola Reputation: 2
Red face DOS stack under Win2k

Hello,
i hope this post is right located in this Thread.
I would like to access the stack of a DOS of program from a
Win32 application.
I've tried the DebugAPI's SetThreadContext/GetThreadContext.
Changing the EIP work's great but accessing the stack with the returned ESP Pointer fails.
Then i tried to give ESP value to ReadProcessMemory but the returned value by RPM isn't the value i pushed onto the stack.

You can view my testing apps with source h**p://phalcon.net/masm32/

any suggestions??

Sincerly

Nukacola

Last edited by Nukacola; 11-25-2004 at 22:47.
Reply With Quote
  #2  
Old 11-28-2004, 00:24
pluscontrol
 
Posts: n/a
try this:

invoke OpenProcess,PROCESS_ALL_ACCESS, 1, idproces........

then with de handle

invoke VirtualProtectEx,handle, x1 , x2 ,PAGE_EXECUTE_READWRITE,....

Then use ReadProcessMemory
Reply With Quote
  #3  
Old 12-07-2004, 23:20
Nukacola's Avatar
Nukacola Nukacola is offline
Friend
 
Join Date: Sep 2004
Location: Germany
Posts: 49
Rept. Given: 0
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Nukacola Reputation: 2
ok,
thanks
i tried that but it won't help. Same Probleme i can't get the stack-value of a running Process if it is in a loop. It's an old 16-bit DOS Process which is executed by NTVDM.EXE. I get 252 back every Time (if checking ESP), or 153632 (if checking [ESP]). I've tried to debug the application with OllyDbg but i can't find the way the stack is handled by NTVDM. Any other suggestions or reference material ???

Sincerly

Nukacola
Reply With Quote
Reply

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving Stack Pointer problem java3ever General Discussion 1 06-20-2017 13:57
Exectution on the stack arnix General Discussion 2 05-09-2005 19:03
How to Relocate thread Stack? visu General Discussion 0 03-29-2005 12:36


All times are GMT +8. The time now is 00:54.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX
( 1998 - 2020 )