![]() |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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
|
![]() |
|
|
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 |