[XenAccess-devel] Linux headers and offsets
Status: Beta
Brought to you by:
bdpayne
From: Daniele S. <da...@ya...> - 2007-08-28 07:09:40
|
I suggest including the Linux headers to find the correct offsets during compilation. In this way, you don't have to manually compute the offsets, but the compiler will do the job for you, and this solution is also portable. We've developed a set of functions that use XenAccess to introspect the Linux kernel, for example to retrieve the list of the running processes, the idt and the system call table, the list of the running modules, the list of the open files and also to check if an interface is set into promiscuous mode, by using the headers to "cast" the raw memory into the correct structure. Here you can find the code: http://www.di.unipi.it/~daniele/projects/xen_vmi/xen_vmi.php It's still a work in progress, but I hope that the idea of including the Linux headers may help you :) If you have any questions, let me know. ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html |