From 750100e988061b9db54d98eace69519c3f92ae6c Mon Sep 17 00:00:00 2001 From: Michael Scalzetti Date: Wed, 26 Oct 2022 03:57:11 -0400 Subject: [PATCH] eureka :) --- src/sniffer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sniffer.py b/src/sniffer.py index 2ec9865..5012596 100644 --- a/src/sniffer.py +++ b/src/sniffer.py @@ -15,8 +15,6 @@ def run_cmd(cmd, out=subprocess.PIPE, timeout=None): - - class Sniffer: def __init__(self, interface_name): self.ifname = interface_name @@ -45,7 +43,7 @@ class Sniffer: dump_file = f"{self.base_dir}/cap-{ int(time.time()) }" stdout, stderr, code = run_cmd(f"airodump-ng --write {dump_file} --write-interval 1 --output-format csv walfa0", timeout=timeout) - if code != 0: + if code != 0 and code != -1: return code full_filepath = f"{dump_file}-01.csv"