INNER CODE UNIT · Python
asktodelete
paulveillard/cybersecurity · cyber-security-scripts/Malware-Scanner.py:15
def asktodelete(script):
global script_file
script_file.close()
delete = input("[+] Delete File?: ")
if delete.lower() == "yes":
print(f"[+] Deleting File: {script}")
os.remove(script)
elif delete.lower() == "no":
print("[+] This action may comprimise your Computer.")
pass
else:
print(f"[+] Deleted File: {script}")
os.remove(script)
print(" __ __ _ _____ __ ___ ")
print(" | \/ | | | / ____| /_ | / _ \ ")
print(" | \ / | __ _| |_ ____ _ _ __ ___ | (___ ___ __ _ _ __ _ __ ___ _ __ | || | | |")
print(" | |\/| |/ _` | \ \ /\ / / _` | '__/ _ \ \___ \ / __/ _` | '_ \| '_ \ / _ \ '__| | || | | |")
print(" | | | | (_| | |\ V V / (_| | | | __/ ____) | (_| (_| | | | | | | | __/ | | || |_| |")