Discussion:
Fuzz is broken
Colin L Rice
2011-12-19 00:57:55 UTC
Permalink
I'm getting this traceback

File "packet_fuzz.py", line 24, in <module>
for x in packet_generate():
File "packet_fuzz.py", line 20, in packet_generate
packet = fuzz(layer())
File "/usr/local/lib/python2.7/dist-packages/scapy/packet.py", line
1240, in fuzz
rnd = f.randval()
File "/usr/local/lib/python2.7/dist-packages/scapy/asn1fields.py",
line 278, in randval
return fuzz(self.asn1pkt())
NameError: global name 'fuzz' is not defined

It appears to be in both the ubuntu package and the latest version.
César A. Bernardini
2011-12-19 08:30:11 UTC
Permalink
from scapy.packet import fuzz should fix it!

Fix it and commit it into the scapy-com release!
Post by Colin L Rice
I'm getting this traceback
File "packet_fuzz.py", line 24, in <module>
  File "packet_fuzz.py", line 20, in packet_generate
    packet = fuzz(layer())
  File "/usr/local/lib/python2.7/dist-packages/scapy/packet.py", line 1240,
in fuzz
    rnd = f.randval()
  File "/usr/local/lib/python2.7/dist-packages/scapy/asn1fields.py", line
278, in randval
    return fuzz(self.asn1pkt())
NameError: global name 'fuzz' is not defined
It appears to be in both the ubuntu package and the latest version.
---------------------------------------------------------------------
To unsubscribe, send a mail to scapy.ml-***@secdev.org
Colin L Rice
2011-12-19 15:17:35 UTC
Permalink
Post by César A. Bernardini
from scapy.packet import fuzz should fix it!
Fix it and commit it into the scapy-com release!
It's already fixed. My apologies.

---------------------------------------------------------------------
To unsubscribe, send a mail to scapy.ml-***@secdev.org

Continue reading on narkive:
Loading...