mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-07-27 08:55:16 -04:00
fix some readmes, added some inits, partially done writing the scapy scripts
This commit is contained in:
parent
ffb92e0614
commit
d29d4e115d
21 changed files with 107 additions and 39 deletions
19
Network_and_802.11/scapy/sniff_simple.py
Normal file
19
Network_and_802.11/scapy/sniff_simple.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
__author__ = "bt3"
|
||||
|
||||
from scapy.all import *
|
||||
|
||||
def save():
|
||||
a = sniff(filter='icmp', iface='wlp1s0', timeout=10, count=3, prn=lambda x:x.summary())
|
||||
wrpcap('packets.pcap', a)
|
||||
|
||||
def open():
|
||||
p = rdpcap('packets.pcap', p)
|
||||
p.show()
|
||||
|
||||
def scan():
|
||||
res, unans = sr( IP(dst='192.168.1.114')/TCP(flags='S', dport=(1, 1024)))
|
||||
print res.summary()
|
||||
|
||||
scan()
|
Loading…
Add table
Add a link
Reference in a new issue