From 0cccfef14ec8282312dce4a39383a01ba2261fd1 Mon Sep 17 00:00:00 2001 From: root <root@RossDebian> Date: Sat, 12 Oct 2019 19:29:04 +0100 Subject: [PATCH] replaced with os.remove() --- pwnagotchi/plugins/default/AircrackOnly.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/AircrackOnly.py b/pwnagotchi/plugins/default/AircrackOnly.py index 308dad9..b1baa99 100644 --- a/pwnagotchi/plugins/default/AircrackOnly.py +++ b/pwnagotchi/plugins/default/AircrackOnly.py @@ -13,6 +13,7 @@ import logging import subprocess import string import re +import os OPTIONS = dict() @@ -39,7 +40,7 @@ def on_handshake(agent, filename, access_point, client_station): todetele = 1 if todelete == 1: - subprocess.run(('rm '+filename),shell=True,stdout=subpocess.PIPE) + os.remove(filename) set_text("uncrackable pcap") display.update(force=True)