Self-Improvement
Scapy 사용법 5 (sniff) 본문
*예제
>>> sniff()
>>> a=_
>>> a.nsummary()
>>> a[3]
>>> sniff(iface="eth0", filter="icmp", count=10)
iface=”eth0” - nice simple one, I’m defining the interface to sniff on (remember by default it’s all interfaces that Scapy will sniff packets from). filter=”icmp” - This is telling the sniff() function to only look for ICMP packets
count=10 - If you only want to collect a certain amount of packets, you can use the count option to define that number, in this case I told it to collect 10 ICMP packets and then stop.
>>> a=_
>>> a.nsummary()
>>> a[2]
'scapy' 카테고리의 다른 글
Scapy 사용법 7 (간단한 fuzz, ARP cache poisoning, VLAN Hopping) (0) | 2018.10.22 |
---|---|
Scapy 사용법 6 (패킷 제작) (1) | 2018.10.22 |
Scapy 사용법 4 (ICMP, TCP, UDP ping scan) (0) | 2018.10.22 |
Scapy 사용법 4 (Ack, IP Scan, ARP ping) (0) | 2018.10.22 |
Scapy 사용법 3 (DNS, traceroute) (0) | 2018.10.22 |