odexus commited on
Commit
33cf2dd
·
verified ·
1 Parent(s): 41c4c77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -5,12 +5,17 @@ import os
5
 
6
  # --- SETUP ---
7
  def get_hashcat_binary():
8
- binary_path = "/usr/bin/hashcat"
9
 
10
- if not os.path.exists(binary_path):
11
- print("Installing hashcat via apt...")
12
  subprocess.run(["apt-get", "update"], check=True)
13
- subprocess.run(["apt-get", "install", "-y", "hashcat"], check=True)
 
 
 
 
 
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