flat assembler
Message board for the users of flat assembler.
Index
> Windows > So much effort, only to realize something :P |
Author |
|
StakFallT 28 May 2006, 22:43
Ok I'm apparently blind, because I did a search on yahoo and found there is an example that comes with fASM that tells how to make a DLL..
So ok now that I have that answered I still need some kind of way for the routine that I patch into memory to tell an outside program the api and parameters that was just called before returning back control to the program that did the calling.. One thought I had was maybe like sendkeys or sendmessage or something to the process id of this "outside program".. How does calling the api that was patched from the routine that was in patched in, not cause a recursive loop?? It doesn't seem to as I've ran the hook and triggered the messagebox hook, so it's working ok, just I'd like to know how come it doesn't loop overr and over for the sake of knowledge.. -- StakFallT On a side note, maybe this has been done before but I kinda a theory on something, curious if it plausible.. Were writting on r3 inside whatever asm compiler for windows it is that were writting in (weither it be masm or fasm, etc), there exists a -large- amount of native api calls.. Almost all of these start with Rtl<rest of name here> (Not sure what rtl stands for..).The theory I had is: would it be possible to path a -native- api call to get to r0 allowing you to work on r0 without having to write a vxd? Like some sort of developer interpreter that allows you to pass asm calls to the routine you patched in as parameters and the routine issues them? |
|||
28 May 2006, 22:43 |
|
revolution 29 May 2006, 01:05
Using native API's won't help you get to ring0. They are not magic, they simply offer a standard interface to perform the OS functions. RTL* and ZW* function are not documented so input parameters and constants change between OS versions and sometimes between OS builds of the same version, you are best to stick with the normal documented functions, they give you the same functionality and better portability to other versions/builds.
|
|||
29 May 2006, 01:05 |
|
okasvi 29 May 2006, 06:12
Rtl=RunTimeLibrary, Zw*'s are exported by ntoskrnl.exe and used in driver developement. Four-F has converted most(all?) of DDK(driver developement kit) for masm.
There is complete code posted to get r0(xp sp2 atleast) here in board. |
|||
29 May 2006, 06:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.