cleaned up ignore file

This commit is contained in:
anoduck 2023-10-22 03:09:49 -04:00
parent def5522dbb
commit b0e58379a5
2 changed files with 12 additions and 14 deletions

12
.gitignore vendored
View file

@ -6,21 +6,9 @@ crda-*
*.puml
*.txt
*.csv
clients.txt
clients.csv
essid.txt
ssids.txt
ssid.txt
key2pub.py
db.txt
wireless-regdb*
example.ipynb
aps.txt
APs.txt
APS.txt
db.txt
ct_results.csv
ct_aps.csv
config.ini
share/*
### Generated by gibo (https://github.com/simonwhitaker/gibo)

View file

@ -14,7 +14,7 @@ import argparse
from scapy.sendrecv import sniff
from scapy.sendrecv import AsyncSniffer
from scapy.sendrecv import sendp
from scapy.sendrecv import sr1
from scapy.sendrecv import srp1
from scapy.layers.dot11 import Dot11Beacon
from scapy.layers.dot11 import Dot11
from scapy.layers.dot11 import Dot11Elt
@ -204,6 +204,16 @@ def PRN2(pkt):
# ███████║ ██║ ██║ ██║██║ ██║██║██║ ╚████║███████╗██║ ██║
# ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝
# ----------------------------------------------------------------
# print("ToDS:", frame.FCfield & 0b1 != 0)
# print("MF:", frame.FCfield & 0b10 != 0)
# print("WEP:", frame.FCfield & 0b01000000 != 0)
# print("src MAC:", frame.addr2)
# print("dest MAC:", frame.addr1)
# print("BSSID:", frame.addr3)
# print("Duration ID:", frame.ID)
# print("Sequence Control:", frame.SC)
# print(feature(frame))
# print("\n")
def strainer(pkt) -> None:
if pkt[Dot11].type == 0 and pkt[Dot11].subtype == 4:
bssid = pkt[Dot11FCS].addr2
@ -214,7 +224,7 @@ def strainer(pkt) -> None:
addr2=macaddr,
ID=65535)
log.debug('Sending RTS frame to {0} with type 11'.format(bssid))
res = sr1(new_pkt, timeout=3, verbose=0, retry=0)
res = srp1(new_pkt, timeout=3, verbose=0, retry=0)
if res:
if res[Dot11].type == 1 and res[Dot11].subtype == 12:
log.debug('Recieved CTS packet.')