![]() |
|
suid program. sniper-fin.Consider the following ten significant events that occur in
the rebooting of a Unix machine from currently running (power on, duh) to
login prompt. The events may or may not occur in the order given. E1:
Root volume is mounted by the kernel; E2: Process init is
created; E3: inetd daemon is started; E4. OS Boot
loader invokes the kernel; E5: getty processes are
started. E6: The run level changes from 3 to 5. E7: BIOS
finds the boot device. E8: run level changes to 0, E9:
All file volumes are un-mounted. E10: Networking is shutdown.
Arrange these events in chronological order, and explain why these must
happen in that order.
bottom of DDDDDDDDEEEEEEEEEEEE EEEE FFFF FFFF FFFF FFFF top of
memory 89ABCDEF0123456789AB CDEF 0123 4567 89AB CDEF memory
buffer sfp ret a b c
<------ [JJSSSSSSSSSSSSSSCCss][ssss][0xD8][0x01][0x02][0x03]
^|^ ^| |
|||_____________||____________| (1)
(2) ||_____________||
|______________| (3)
top of bottom of
stack stack
exploitN.c,
AlephOne wishes to avoid the occurrence of 0x00 in the
shellcode[]. Why? How does he avoid it?
exploit3.c differ from
exploit4.c? | Copyright © 2008 Prabhaker Mateti ; May 15, 2008 |