forked from stavrosgns/PDump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdump.py
32 lines (28 loc) · 1.83 KB
/
pdump.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from DAgent import DAgent
import argparse
def signature():
print()
print("██████╗ ██████╗ ██╗ ██╗███╗ ███╗██████╗")
print("██╔══██╗██╔══██╗██║ ██║████╗ ████║██╔══██╗")
print("██████╔╝██║ ██║██║ ██║██╔████╔██║██████╔╝")
print("██╔═══╝ ██║ ██║██║ ██║██║╚██╔╝██║██╔═══╝")
print("██║ ██████╔╝╚██████╔╝██║ ╚═╝ ██║██║")
print("╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝")
print("A DEHASHED password dumper written by purpl3ph03n1x")
print()
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Querying DEHASHED For Leaked Credentials")
parser.add_argument("query_type", help="domain, email, username, password, vin, phone, name, ip_address, hashed_password")
parser.add_argument("-s", "--search", help="The value to be searched against DEHASHED database")
parser.add_argument("-f", '--file', help="A file with New Line Separated values ")
args = parser.parse_args()
signature()
dagent = DAgent() # DEHASHED Agent
if (args.search is not None) and (args.file is None):
dagent.query_dehashed(datatype=args.query_type, data=args.search)
elif (args.search is None) and (args.file is not None):
with open(args.file, 'r') as qData:
for entry in qData.readlines():
dagent.query_dehashed(datatype=args.query_type, data=entry)
else:
print(f"[WARNING] You have to provide either a file or a search value")