ikkini
2011-12-06 12:38:51 UTC
Hello list, perhaps someone can point out where my error is?
I'm seeing this on ubuntu, debian (2.1.0.1_all.deb) and OS X (@2.0.1).
I realize this is an older version, but these come straight from the
OS packages.
I have also tried with ans,unans formats, where I only try to write
the "ans" to a pcap.
Probably I'm doing something wrong, but I have no idea what.
This is just plain ethernet, using wifi we had the same type of problem.
sr(IP(dst='192.168.123.254')/TCP(dport=80))
Begin emission:
..Finished to send 1 packets.
.*
Received 4 packets, got 1 answers, remaining 0 packets
(<Results: TCP:1 UDP:0 ICMP:0 Other:0>, <Unanswered: TCP:0 UDP:0
ICMP:0 Other:0>)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/opt/local/lib/python2.5/site-packages/scapy/utils.py", line
440, in wrpcap
PcapWriter(filename, *args, **kargs).write(pkt)
File "/opt/local/lib/python2.5/site-packages/scapy/utils.py", line
623, in write
self._write_packet(p)
File "/opt/local/lib/python2.5/site-packages/scapy/utils.py", line
662, in _write_packet
sec = int(packet.time)
File "/opt/local/lib/python2.5/site-packages/scapy/plist.py", line
72, in __getattr__
return getattr(self.res, attr)
AttributeError: 'list' object has no attribute 'time'
version= 4L
ihl= 5L
tos= 0x0
len= 40
id= 1
flags=
frag= 0L
ttl= 64
proto= tcp
chksum= 0x199
src= 192.168.123.231
dst= 192.168.123.254
options= ''
###[ TCP ]###
sport= ftp_data
dport= http
seq= 0
ack= 0
dataofs= 5L
reserved= 0L
flags= S
window= 8192
chksum= 0x1648
urgptr= 0
options= {}
version= 4L
ihl= 5L
tos= 0x0
len= 44
id= 0
flags= DF
frag= 0L
ttl= 64
proto= tcp
chksum= 0xc195
src= 192.168.123.254
dst= 192.168.123.231
options= ''
###[ TCP ]###
sport= http
dport= ftp_data
seq= 627185086
ack= 1
dataofs= 6L
reserved= 0L
flags= SA
window= 5840
chksum= 0xcc8a
urgptr= 0
options= [('MSS', 1460)]
###[ Padding ]###
load= '\xf9}'
---------------------------------------------------------------------
To unsubscribe, send a mail to scapy.ml-***@secdev.org
I'm seeing this on ubuntu, debian (2.1.0.1_all.deb) and OS X (@2.0.1).
I realize this is an older version, but these come straight from the
OS packages.
I have also tried with ans,unans formats, where I only try to write
the "ans" to a pcap.
Probably I'm doing something wrong, but I have no idea what.
This is just plain ethernet, using wifi we had the same type of problem.
sr(IP(dst='192.168.123.254')/TCP(dport=80))
Begin emission:
..Finished to send 1 packets.
.*
Received 4 packets, got 1 answers, remaining 0 packets
(<Results: TCP:1 UDP:0 ICMP:0 Other:0>, <Unanswered: TCP:0 UDP:0
ICMP:0 Other:0>)
a= _
a[0]
<Results: TCP:1 UDP:0 ICMP:0 Other:0>a[0]
wrpcap("/tmp/test.pcap",a)
WARNING: PcapWriter: unknown LL type for SndRcvList. Using type 1 (Ethernet)Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/opt/local/lib/python2.5/site-packages/scapy/utils.py", line
440, in wrpcap
PcapWriter(filename, *args, **kargs).write(pkt)
File "/opt/local/lib/python2.5/site-packages/scapy/utils.py", line
623, in write
self._write_packet(p)
File "/opt/local/lib/python2.5/site-packages/scapy/utils.py", line
662, in _write_packet
sec = int(packet.time)
File "/opt/local/lib/python2.5/site-packages/scapy/plist.py", line
72, in __getattr__
return getattr(self.res, attr)
AttributeError: 'list' object has no attribute 'time'
ans,unans=a
ans[0][0].show2()
###[ IP ]###ans[0][0].show2()
version= 4L
ihl= 5L
tos= 0x0
len= 40
id= 1
flags=
frag= 0L
ttl= 64
proto= tcp
chksum= 0x199
src= 192.168.123.231
dst= 192.168.123.254
options= ''
###[ TCP ]###
sport= ftp_data
dport= http
seq= 0
ack= 0
dataofs= 5L
reserved= 0L
flags= S
window= 8192
chksum= 0x1648
urgptr= 0
options= {}
ans[0][1].show2()
###[ IP ]###version= 4L
ihl= 5L
tos= 0x0
len= 44
id= 0
flags= DF
frag= 0L
ttl= 64
proto= tcp
chksum= 0xc195
src= 192.168.123.254
dst= 192.168.123.231
options= ''
###[ TCP ]###
sport= http
dport= ftp_data
seq= 627185086
ack= 1
dataofs= 6L
reserved= 0L
flags= SA
window= 5840
chksum= 0xcc8a
urgptr= 0
options= [('MSS', 1460)]
###[ Padding ]###
load= '\xf9}'
---------------------------------------------------------------------
To unsubscribe, send a mail to scapy.ml-***@secdev.org