31 Ocak 2011 Pazartesi

linuxta fdisk muhabbetleri

listele beybi

kursat@kursat:~$ sudo fdisk -l
[sudo] password for kursat:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9561 76798701 7 HPFS/NTFS
/dev/sda2 9562 17327 62380395 7 HPFS/NTFS
/dev/sda3 17328 19457 17109225 5 Extended
/dev/sda5 17328 19362 16346106 83 Linux
/dev/sda6 19363 19457 763056 82 Linux swap / Solaris


18 Ocak 2011 Salı

Embedded kutu içerisinde pcap almak için

tcpdump ı arm a göre compile dip koyarız.
Akabinde aşağıdaki komutla istediğimiz interface i dinleriz.

./tcpdump -s 0 -w test.pcap -i eth0