Skip to contentSkip to conversation

The disappearing sys_call_table export.

DISCUSSION Chuck Ebbert 3 participants 5 messages May 5, 2003 – May 6, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

Lets deal, I'll GPL the trace module if you get me a EXPORT_SYMBOL_GPL(sys_call_table);

You could always use the rootkit techniques from Phrack 58 to find
the table... seems kind of silly to do that in kernel mode, but it should work.

#1 lore raw

Good point, it should actually be very simple.
from /proc/ksyms we've got teh adresses of the sys_*, then from asm/unistd.h we got the order.
Then search thru /dev/kmem until you find the right string og addresses, and you got sys_call_table.

Dirty but it should be portable.

Quoted 2 lines · Chuck Ebbert

Lets deal, I'll GPL the trace module if you get me a EXPORT_SYMBOL_GPL(sys_call_table);

You could always use the rootkit techniques from Phrack 58 to find
the table... seems kind of silly to do that in kernel mode, but it should work.

Signature · 10 lines
_________________________________________________________________________

Terje Eggestad                  mailto:[email protected]
Scali Scalable Linux Systems    http://www.scali.com

Olaf Helsets Vei 6              tel:    +47 22 62 89 61 (OFFICE)
P.O.Box 150, Oppsal                     +47 975 31 574  (MOBILE)
N-0619 Oslo                     fax:    +47 22 62 89 51
NORWAY            
_________________________________________________________________________
#2 lore raw
Quoted 3 lines · Terje Eggestad

Good point, it should actually be very simple.
from /proc/ksyms we've got teh adresses of the sys_*, then from asm/unistd.h we got the order.

/proc/ksyms shows only exported symbols, is not it?

Quoted 4 lines

Then search thru /dev/kmem until you find the right string og addresses, and you got sys_call_table.

Dirty but it should be portable.

#3 lore raw

Yes, but it should be enough

Quoted 12 lines · Dmitry A. Fedorov
Quoted 3 lines · Terje Eggestad

Good point, it should actually be very simple.
from /proc/ksyms we've got teh adresses of the sys_*, then from asm/unistd.h we got the order.

/proc/ksyms shows only exported symbols, is not it?

Quoted 4 lines

Then search thru /dev/kmem until you find the right string og addresses, and you got sys_call_table.

Dirty but it should be portable.

Signature · 10 lines
_________________________________________________________________________

Terje Eggestad                  mailto:[email protected]
Scali Scalable Linux Systems    http://www.scali.com

Olaf Helsets Vei 6              tel:    +47 22 62 89 61 (OFFICE)
P.O.Box 150, Oppsal                     +47 975 31 574  (MOBILE)
N-0619 Oslo                     fax:    +47 22 62 89 51
NORWAY            
_________________________________________________________________________
#4 lore raw
Quoted 9 lines · Terje Eggestad
Quoted 7 lines · Terje Eggestad
Quoted 4 lines

Good point, it should actually be very simple.
from /proc/ksyms we've got teh adresses of the sys_*, then from asm/unistd.h we got the order.

/proc/ksyms shows only exported symbols, is not it?

Yes, but it should be enough

But how? When some global will not be exported, it would not be listed in /proc/ksyms.