![]() |
|
#1
|
|||
|
|||
Hooking Assembly Language InstructionsIs it possible to hook and modify the return values of x86 assembly instructions like: RDTSC and CPUID?
|
|
#2
|
|||
|
|||
Re: Hooking Assembly Language InstructionsQuote:
There is an example here that works for me on Linux/GNU platforms: http://www.agner.org/optimize/?e=0#testp There are instructions for compiling with various Windows compilers, but I haven't tested any. Regards, Dave |
|
#3
|
|||
|
|||
Re: Hooking Assembly Language InstructionsThanks for your reply! I think i m not able to properly communicate my problem...Actually i want to know is there any method by which i can intercept assembly language instructions just as i can hook windows api calls and then i can modify their return values. Similarly if i want to return a modified vendorstring in result of CPUID instruction instead of the actual one, is it possible to do such thing?
|
|
#4
|
|||
|
|||
Re: Hooking Assembly Language InstructionsQuote:
Sorry. Regards, Dave |
|
#5
|
|||
|
|||
Re: Hooking Assembly Language InstructionsYeah from the same BH guys work, i precieve that if there is present a hypervisor/VMM that emulates CPU than it can intercept and play with these instructions....I am just wondering in the absence of virtualization, when interacting with real CPU, is it somehow possible implementing such interception mechanism? Thanks for your time!
|
|
#6
|
|||
|
|||
Re: Hooking Assembly Language InstructionsWell yes , RDTSC and CPUID are allowed to execute in Ring 3 programs, So feel free to mess with it
|
Recent GIDBlog
Toyota - 2008 September Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Program Not working, assembly language | czerdrill | Assembly Language | 1 | 28-Oct-2007 14:13 |
| Please help me with assembly language! | czerdrill | Assembly Language | 0 | 20-Oct-2007 13:13 |
| Assemblers & assembly language | BlueFireCO. | Assembly Language | 2 | 26-Mar-2007 09:56 |
| which language ? | onauc | C++ Forum | 2 | 19-Nov-2004 02:53 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The