replaced with os.remove()
This commit is contained in:
parent
b46f751e7d
commit
0cccfef14e
@ -13,6 +13,7 @@ import logging
|
|||||||
import subprocess
|
import subprocess
|
||||||
import string
|
import string
|
||||||
import re
|
import re
|
||||||
|
import os
|
||||||
|
|
||||||
OPTIONS = dict()
|
OPTIONS = dict()
|
||||||
|
|
||||||
@ -39,7 +40,7 @@ def on_handshake(agent, filename, access_point, client_station):
|
|||||||
todetele = 1
|
todetele = 1
|
||||||
|
|
||||||
if todelete == 1:
|
if todelete == 1:
|
||||||
subprocess.run(('rm '+filename),shell=True,stdout=subpocess.PIPE)
|
os.remove(filename)
|
||||||
set_text("uncrackable pcap")
|
set_text("uncrackable pcap")
|
||||||
display.update(force=True)
|
display.update(force=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user