some simple examples with scapy

This commit is contained in:
Mari Wahl 2014-12-23 17:59:03 -05:00
parent a1bbf061c1
commit ffb92e0614
5 changed files with 72 additions and 15 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/env python
__author__ = "bt3"
from scapy.all import *
output=sr(IP(dst='google.com')/ICMP())
print '\nOutput is:'
print output
result, unanswered=output
print '\nResult is:'
print result[0]