using odd veths for packet injection and sniffing in examples

This commit is contained in:
Antonin Bas committed 2015-11-15 21:36:45 -08:00
1 parent ca39826949
commit e81db93021
5 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@ 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.show()
hexdump(p)
sendp(p, iface = "veth0")
sendp(p, iface = "veth1")