Reputation: 69
after installing scapy in windows when I run the "scapy" command from command line to check if scapy is installed succesfully it gives the following lines:
welcome to Scapy(2.1.1-dev)
>>>ip
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'ip' is not defined
how to fix this error?
Upvotes: 0
Views: 3214
Reputation: 1627
Try.. doing this .. this would create a IP object and print it
>>>> print IP()
Or else populating IP options is explained in detail here: http://allievi.sssup.it/techblog/?p=631
>>> ip=IP(src="1.1.1.1", dst="8.8.8.8", options=IPOption('\x83\x03\x10'))
Upvotes: 1