I want to use subprocess.popen and excute
airodump --bssid xxxx:xxxx:xxxx:xxxx - c xxx:xxxx:xxx:xxxx -w tmp.ivs
, but it has a console window, I want to hide it.
for ap in aps:
args = "airodump-ng --bssid {BSSID} -c {CH} --output-format netxml -w {name}.ivs wlan0mon".format(
BSSID=ap.get("BSSID"),
CH=ap.get(' channel'),
name=ap.get("BSSID"))
print(args)
p=multiprocessing.Process(subprocess.Popen,args=(args.split(),))
p.start()
p.join()
When I run this code on kali, all the console windows come out, so I want to hide all the windows. I searched for a long time and still got no idea how to do it, so thanks if you help me.