fixed typo in TLV parsing demo
This commit is contained in:
parent
6d8a0232dc
commit
17952c0f42
@ -1,6 +1,6 @@
|
|||||||
from scapy.all import *
|
from scapy.all import *
|
||||||
|
|
||||||
p = Ether() / IP(options=IPOption('\x44\x0c\x05\x00\x01\x02\x03\x04\x05\x06\x07\x08') / IPOption('\x82\x0b\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9')) / IPOption('\x00') / TCP() / "aaaaaaaaaaa"
|
p = Ether() / IP(options=IPOption('\x44\x0c\x05\x00\x01\x02\x03\x04\x05\x06\x07\x08') / IPOption('\x82\x0b\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9') / IPOption('\x00')) / TCP() / "aaaaaaaaaaa"
|
||||||
# p.show()
|
# p.show()
|
||||||
hexdump(p)
|
hexdump(p)
|
||||||
sendp(p, iface = "veth1")
|
sendp(p, iface = "veth1")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user