Compare commits

..

No commits in common. "2ff5a192ca3d37f1760639742f1c192f55b9f878" and "a04ca7960f0d19bf6e98821df1f4dae92d699e32" have entirely different histories.

13 changed files with 4 additions and 6 deletions

3
.gitignore vendored
View file

@ -1,2 +1 @@
settings.env
__pycache__/
settings.env

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -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,

View file

@ -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=