Compare commits
No commits in common. "2ff5a192ca3d37f1760639742f1c192f55b9f878" and "a04ca7960f0d19bf6e98821df1f4dae92d699e32" have entirely different histories.
2ff5a192ca
...
a04ca7960f
13 changed files with 4 additions and 6 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1 @@
|
|||
settings.env
|
||||
__pycache__/
|
||||
settings.env
|
BIN
enrichment/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/constants.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/constants.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/csv_handler.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/csv_handler.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/filters.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/filters.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/indexed_capture.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/indexed_capture.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/merge_ssid_summaries.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/merge_ssid_summaries.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/metrics_clients.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/metrics_clients.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/metrics_signals.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/metrics_signals.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/metrics_ssid.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/metrics_ssid.cpython-311.pyc
Normal file
Binary file not shown.
BIN
enrichment/__pycache__/utils.cpython-311.pyc
Normal file
BIN
enrichment/__pycache__/utils.cpython-311.pyc
Normal file
Binary file not shown.
|
@ -8,7 +8,7 @@ from dotenv import load_dotenv
|
|||
|
||||
# === Load ENV ===
|
||||
load_dotenv(dotenv_path=os.path.expanduser("~/wifi_test/settings.env"))
|
||||
LISTEN_INTERFACE = os.getenv("LISTEN_INTERFACE", "wlan0")
|
||||
INTERFACE = os.getenv("INTERFACE", "wlan0")
|
||||
|
||||
# === Globals ===
|
||||
clients_per_channel = defaultdict(set)
|
||||
|
@ -64,13 +64,13 @@ def stop_sniff(signum, frame):
|
|||
# === Main ===
|
||||
if __name__ == "__main__":
|
||||
signal.signal(signal.SIGINT, stop_sniff)
|
||||
print(f"[+] Listening on interface {LISTEN_INTERFACE} (press Ctrl+C to stop)")
|
||||
print(f"[+] Listening on interface {INTERFACE} (press Ctrl+C to stop)")
|
||||
|
||||
# Start sniffing in a background thread
|
||||
try:
|
||||
while running:
|
||||
sniff(
|
||||
iface=LISTEN_INTERFACE,
|
||||
iface=INTERFACE,
|
||||
prn=handle_packet,
|
||||
store=False,
|
||||
monitor=True,
|
||||
|
|
|
@ -6,7 +6,6 @@ NUM_SAMPLES=5
|
|||
TIME_BETWEEN=15m
|
||||
LEAD_TIME=90s
|
||||
INTERFACE=wlan0
|
||||
LISTEN_INTERFACE=wlan1
|
||||
PING_COUNT=25
|
||||
PING_TARGET=1.1.1.1
|
||||
BANDWIDTH=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue