using odd veths for packet injection and sniffing in examples

This commit is contained in:
Antonin Bas
2015-11-15 21:36:45 -08:00
parent ca39826949
commit e81db93021
5 changed files with 7 additions and 7 deletions

View File

@@ -3,4 +3,4 @@ from scapy.all import *
p = Ether(dst="aa:bb:cc:dd:ee:ff") / IP(dst="10.0.1.10") / TCP() / "aaaaaaaaaaaaaaaaaaa"
# p.show()
hexdump(p)
sendp(p, iface = "veth0")
sendp(p, iface = "veth1")