Home General Computer Multimedia Business Lounge
|
Memahami process info pseudo-filesystem di linux
|
|
07-18-2010, 04:14 PM
|
|||
|
|||
|
Memahami process info pseudo-filesystem di linux
Merupakan file system yang dimount di mana isinya misal berupa data 2 tentang suatu pid .
Ok untuk praktek mari kita tes sedikit dari 1 source eksploit yang akan saya run dg suatu pid yang menggunakan syscall execl: Code: sh-3.2$ cat exploit.c | grep execltes run di background didapatkan pid:21814 Code: -bash-3.2$ ./exploit &Ok mari kita lihat di /proc/21814: Code: sh-3.2# cd /proc/21814;ls -laok berikut ini keteranganya: -cmdline Code: sh-3.2# cat cmdlineCode: execl("/bin/sh", "/bin/sh", "-i", NULL);-cwd cwd merupakan symlink ke direktori tempat dieksekusinya elf binary kita tadi - maps maps berisi info tentang memory mapping dari pid yang menunjukkan alamat 2 vma (virtual memory addressing) mari kita lihat isi file maps: Code: sh-3.2# cat maps00844000-00845000 r-xp 00844000 00:00 0 [vdso] 0x845000-0x844000=0x1000 = 4096 bytes (4096 bytes= ukuran 1 page) -alamat memori 00844000 sampai dengan alamat memori 00845000 (dalam hex) merupakan range alamat memori yang dimap untuk ditempati. -r-xp ini merupakan hak akses pada alamat memori tersebut, hak akses ini sering dimanfaatkan untuk eksploitasi di page zero dengan mmap Code: mmap(NULL, 0x1000, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE, 0, 0);- 00844000 merupakan file offset dari mana map diciptakan, -00:00 ini pertanda anonymous map -0 merupakan sign anonymous map -[vdso] merupakan path file untuk lebih memahami secara mendalam silahkan anda lihat di fungsi proc_pid_maps_get_line() -environ Code: sh-3.2# cat environBerupa informasi environment dari pid yang sedang kita analisis misal:SSH_TTY=/dev/pts/0 artinya saya mengakses server dengan ssh via /dev/pts/0 -status informasi tentang vma bisa kita lihat via file status di .proc/pid. VmSize: ukuran virtual memory yang dialokasikan VmLck: jumlah memory yang dikunci VmRSS: jumlah memori yang dimap di ram VmData: ukuran data segment VmStk: ukuran stack VmExe: ukuran executable segment VmLib: ukuran kode library VmPTE: ukuran page table entry mari kita lihat untuk pid kita tadi: Code: 101sh-3.2# cat status | grep Vmspecial message for malaysian skids: ( sorry skids and defacement or ddos or rm -rf is lame for us.. soon I'm gonna show you an attack vector that u'll never be able to implement..it's not defacing,rm -rf nor ddos.. it's a very different attack vector to show u difference between u and me skids something for permanent destruction for u skids using a very special w0rm I'm gonna finish u up for good. gimme time to implement this kinda rare attack skids |
|||
|
« Next Oldest | Next Newest »
|
| Topic Tools | ||||||
| ||||||
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Sekilas VFS pada linux kernel 2.4 | ev1lut10n | 1 | 229 |
01-21-2012 09:16 PM Last Post: ketek |
|
| IOCTL Programming Under Linux Kernel 2.6 | ev1lut10n | 3 | 341 |
11-25-2011 01:01 PM Last Post: ketek |
|
| Mengirim comand CUSD ke modem GSM dengan C (GNU/Linux) | melati | 4 | 641 |
06-05-2011 05:05 PM Last Post: melati |
|
| TCP Socket Programming dengan Bahasa C (Linux) | mywisdom | 8 | 1,479 |
04-20-2011 01:16 AM Last Post: mywisdom |
|
| [Tutor] compile dan run c++ d'linux | jurank_dankkal | 10 | 2,105 |
12-29-2010 06:26 PM Last Post: donkey_code |
|
| Penguji daur hidup linux worm | mywisdom | 3 | 886 |
09-12-2010 11:25 PM Last Post: mywisdom |
|
| Users Browsing |
| 1 Guest(s) |











