From 8be8318d1369bd839317340b7a8a69d4ab726ccf Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Sun, 11 Apr 2021 18:32:38 -0400 Subject: [PATCH] Update Picocrypt.py --- src/unstable/Picocrypt.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/unstable/Picocrypt.py b/src/unstable/Picocrypt.py index 9c52d44..48b4131 100644 --- a/src/unstable/Picocrypt.py +++ b/src/unstable/Picocrypt.py @@ -28,6 +28,7 @@ from os.path import basename,dirname,abspath,realpath from os.path import join as pathJoin,split as pathSplit from pathlib import Path from zipfile import ZipFile +from shutil import rmtree from tkinterdnd2 import TkinterDnD,DND_FILES from tkinter.filedialog import asksaveasfilename from ttkthemes import ThemedStyle @@ -1146,7 +1147,7 @@ def work(): secureWipe(i) if onlyFiles: for i in range(len(onlyFiles)): - statusString.set(strings[12]+f" ({i}/{len(onlyFiles)}") + statusString.set(strings[12]+f" ({i}/{len(onlyFiles)})") progress["value"] = i/len(onlyFiles) secureWipe(onlyFiles[i]) secureWipe(inputFile) @@ -1263,7 +1264,7 @@ def updateStats(total): # Securely wipe file(s) via system internals def secureWipe(fin): statusString.set(strings[12]) - + progress["value"] = 100 # Check platform, erase accordingly if platform.system()=="Windows": # Recursively delete folders @@ -1272,6 +1273,7 @@ def secureWipe(fin): for i in Path(fin).rglob("*"): if dirname(i) not in paths: paths.append(dirname(i)) + print(dirname(i)) for i in range(len(paths)): statusString.set(strings[12]+f" ({i}/{len(paths)})") progress["value"] = 100*i/len(paths) @@ -1279,8 +1281,8 @@ def secureWipe(fin): system(f'cd "{rootDir}"') rmtree(fin) else: - statusString.set(strings[12]) - progress["value"] = 100 + #statusString.set(strings[12]) + #progress["value"] = 100 system(f'sdelete64.exe "{fin}" -p 4 -nobanner') # MacOS