Update app.py
Browse files
app.py
CHANGED
|
@@ -5,12 +5,17 @@ import os
|
|
| 5 |
|
| 6 |
# --- SETUP ---
|
| 7 |
def get_hashcat_binary():
|
| 8 |
-
binary_path = "/
|
| 9 |
|
| 10 |
-
if not os.path.exists(
|
| 11 |
-
print("Installing
|
| 12 |
subprocess.run(["apt-get", "update"], check=True)
|
| 13 |
-
subprocess.run(["apt-get", "install", "-y", "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
return binary_path
|
| 16 |
|
|
|
|
| 5 |
|
| 6 |
# --- SETUP ---
|
| 7 |
def get_hashcat_binary():
|
| 8 |
+
binary_path = "./hashcat-7.1.2/hashcat.bin"
|
| 9 |
|
| 10 |
+
if not os.path.exists("hashcat-7.1.2"):
|
| 11 |
+
print("Installing dependencies...")
|
| 12 |
subprocess.run(["apt-get", "update"], check=True)
|
| 13 |
+
subprocess.run(["apt-get", "install", "-y", "p7zip-full", "wget"], check=True)
|
| 14 |
+
|
| 15 |
+
print("Downloading hashcat 7.1.2...")
|
| 16 |
+
subprocess.run(["wget", "https://hashcat.net/files/hashcat-7.1.2.7z"], check=True)
|
| 17 |
+
subprocess.run(["7z", "x", "hashcat-7.1.2.7z"], check=True)
|
| 18 |
+
subprocess.run(["chmod", "+x", binary_path], check=True)
|
| 19 |
|
| 20 |
return binary_path
|
| 21 |
|