mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-03 15:24:59 -04:00
some simple examples with scapy
This commit is contained in:
parent
a1bbf061c1
commit
ffb92e0614
5 changed files with 72 additions and 15 deletions
13
Network_and_802.11/scapy/receive_packet.py
Normal file
13
Network_and_802.11/scapy/receive_packet.py
Normal 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]
|
Loading…
Add table
Add a link
Reference in a new issue