a=sniff(iface="wlan0", prn=lambda x: x.show()) - qool "part" of the Python family - SCAPY:
example output bellow.
###[ Raw ]###
load= 'HTTP/1.1 204 No Content\r\nPragma: no-cache\r\nCache-Control: private, no-cache\r\nExpires: Wed, 17 Sep 1975 21:32:10 GMT\r\nAccess-Control-Allow-Origin: *\r\nLast-Modified: Wed, 21 Jan 2004 19:51:30 GMT\r\nContent-Type: image/gif\r\nDate: Sat, 14 Sep 2013 22:20:03 GMT\r\nServer: Golfe2\r\nContent-Length: 0\r\nAlternate-Protocol: 80:quic\r\n\r\n'
###[ Ethernet ]###
dst= 00:b0:0c:47:f8:00
src= 24:77:03:49:b5:cc
type= 0x800
###[ IP ]###
version= 4L
ihl= 5L
tos= 0x0
len= 52
id= 9305
flags= DF
frag= 0L
ttl= 64
proto= tcp
chksum= 0x2672
src= 192.168.0.100
dst= 74.125.228.111
\options\
###[ TCP ]###
sport= 45577
dport= http
seq= 3167215318
ack= 215831554
dataofs= 8L
reserved= 0L
flags= A
window= 207
chksum= 0xf01f
urgptr= 0
options= [('NOP', None), ('NOP', None), ('Timestamp', (5630168, 1289009574))]
2. sniff(prn=lambda x:x.sprintf("{IP:%IP.src% -->%IP.dst%\n}{Raw:%Raw. load%\n}"))
sample output:
192.168.0.1 -->239.255.255.250
??
192.168.0.1 -->239.255.255.250
??
192.168.0.1 -->239.255.255.250
??
192.168.0.1 -->239.255.255.25
Brak komentarzy:
Prześlij komentarz