Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2005, 18:46
nikola nikola is offline
Friend
 
Join Date: Jan 2004
Location: Your head
Posts: 115
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
nikola Reputation: 0
Write Access on Win9x

Hi,
i was trying to do API hooking on win9x so i need write access in kernel32.dll memory pages. As you know VirtualProtect wont do that job but there is an undocumented way to perform this thru a VxDCall4. I tested this and it worked, but i need this code relocatable, and not using an import table so i need to do GetProcAddress for this call. VxDCall has no real procedure name so it should be imported by ordinal. Its ordinal is 5 but when i do
push 5
push KernelBase
call GetProcAddress
i get 0 in eax :/
Any help?
Reply With Quote
  #2  
Old 04-27-2005, 19:59
bgrimm bgrimm is offline
Friend
 
Join Date: Jan 2004
Location: South of The North Pole
Posts: 66
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 3 Times in 3 Posts
bgrimm Reputation: 0
Don't quote me on this, as I'm not to familiar with the 9x VX scene.

But it is my understanding the HPS virus used an undocumented int21 routine to access Kernel32.dll, then from there you can find VxDCall.

An overview of how it is done is located here:
h**p://vx.netlux.org/lib/vgy06.html

An analysis of the HPS virus is here:
h**p://www.peterszor.com/hps.pdf


-bg
Reply With Quote
  #3  
Old 04-27-2005, 20:23
nikola nikola is offline
Friend
 
Join Date: Jan 2004
Location: Your head
Posts: 115
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
nikola Reputation: 0
This didnt help me out directly becouse of my weak knowledge of this matter but it pointed me in right direction so i knew what to search for in google. Seems that i cant get to VXDCall with GetProcAddress. It also seems that All VxDCalls are acctually 1 call but you send in parameters what function you want it to perform.
If anyone else needs this here is the file that helped me:
http://madchat.org/vxdevl/papers/vxers/r3_res.txt

And i forgot to say this. Thanks grimm
Reply With Quote
Reply


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
For those who write tutorials. Nilrem General Discussion 4 02-03-2004 00:21
Making unpacked progs work on both WinXP/Win9x? Barry General Discussion 5 02-02-2004 04:04
SoftICE (DS 2.6 || SS 2.6) + ICEDump 6.025 + win9X --> Not Work fine? sky General Discussion 1 09-19-2002 09:51


All times are GMT +8. The time now is 06:45.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )