Add bash file with functions to enable and disable monitor mode using either...
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
DEPENDENCIES =
|
||||
|
||||
def check_installed() -> bool:
|
||||
def check_installed(tool) -> bool:
|
||||
"""Check if tcpdump is installed and available on the system path."""
|
||||
return shutil.which('tcpdump') is not None
|
||||
return shutil.which(f'{tool}') is not None
|
||||
|
||||
|
||||
def ensure_installed():
|
||||
def ensure_installed(tool):
|
||||
"""Ensure that tcpdump is installed, raise an error if not."""
|
||||
if not check_installed():
|
||||
if not check_installed(tool):
|
||||
raise RuntimeError("tcpdump is not installed. Please install it to continue.")
|
||||
|
||||
|
||||
10
code/kydcap/utils/wifi_ctrl_utils.py
Normal file
10
code/kydcap/utils/wifi_ctrl_utils.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import subprocess
|
||||
|
||||
def enable_monitor_mode(interface):
|
||||
pass
|
||||
|
||||
def disable_monitor_mode(interface):
|
||||
pass
|
||||
|
||||
def get_ap_channel(interface):
|
||||
pass
|
||||
Reference in New Issue
Block a user