« FreeBSD’de SMP(Symmetric Multiprocessing) Kullanmak | Home | Hello Free world! »

Scapy Calismalari-III [Paket Dinleyicileri Belirleme]

By Huzeyfe ONAL | March 26, 2007

Scapy calismalarinda 3. bolume hosgeldiniz:).

Bu bolumde scapy’i paket dinlemenin bir adim otesi, agda paket dinleyici modda bulunan makinelerin testpiti icin kullanacagim..

Bir agda calisan sniffer(promiscious modda olanlar kastedilmistir)lari belirlemenin cesitli yollari var. Burada bu yontemlerden sadece biri kullanilmistir.

Agdaki herhangi bir makinenin promisc modda(sniffer diyelim) olup olmadigini anlamak icin

>> is_promisc(”192.168.0.1″, fake_bcast=’ff:ff:00:00:00:00′) False

Bu arada makinenin olusturdugu paketleri izlersek asagidaki gibi bir cikti verecektir.

# tcpdump -i ath0 -e -tttnn arp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ath0, link-type EN10MB (Ethernet), capture size 96 bytes 000000 00:05:4e:4d:9b:8c > ff:ff:00:00:00:00, ethertype ARP (0×0806), length 42: arp who-has 192.168.0.1 tell 192.168.0.241 hedef makinede bir sniffer calismadigi icin cevap false olarak donuyor.

Benzer sekilde agda Ethereal/Wireshark calistirdigimiz bir makineyi test edelim.

>>> is_promisc(”100.100.100.100″, fake_bcast=’ff:ff:00:00:00:00′) True

Gelen cevap

# tcpdump -i eth0 -e -tttnn tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 000000 00:11:25:44:e8:95 > ff:ff:00:00:00:00, ethertype ARP (0×0806), length 42: arp who-has 100.100.100.100 tell 100.100.100.101 003151 00:04:61:47:da:74 > 00:11:25:44:e8:95, ethertype ARP (0×0806), length 60: arp reply 100.100.100.100 is-at 00:04:61:47:da:74

Agdaki belirli bir makineyi degil de tum agi kontrol etmek icin promiscping() komutunu denenebilir.

>>> a=promiscping(”100.100.100.0/24″, timeout=2, fake_bcast=’ff:ff:ff:ff:ff:fe’) Begin emission: *Finished to send 256 packets.

Received 1 packets, got 1 answers, remaining 255 packets 00:04:61:47:da:74 100.100.100.100

Topics: Network Security |

Comments

Anket Köşesi


Teknik bloglarda icerik nasil olmali?
View Results

Archives

Friends

Life(over)IP Network



View my profile on Turk Blog Yazarlari