Last active
March 21, 2020 07:57
-
-
Save bl4ckbo7/9964c01167cae93dd701b8023e2f1903 to your computer and use it in GitHub Desktop.
Nitrxgen md5 crahking script (Requires the Internet to access the API)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#Title: Nitrxgen md5 crahking script (Requires the Internet to access the API) | |
#Author: bl4ckbo7 | |
""" | |
[ Examples ] | |
------------ | |
./nitrxgen - hashes.txt | |
./nitrxgen 6b6e8ca697b4ea4bdc8ac88613ab646e | |
""" | |
import requests | |
import sys | |
import os | |
import time | |
api = 'http://www.nitrxgen.net/md5db/' | |
output_file = 'nitrx-output.txt' #where hashes and their corresponding plain-text passwords are written. | |
if len(sys.argv) < 2: | |
print("\n[x] Enter atleast one argument.\n") | |
exit(1) | |
elif sys.argv[1] == '-': | |
path = sys.argv[2] | |
n = 0 | |
if os.path.exists(os.path.expanduser(path)): | |
lines = [line.rstrip('\n') for line in open(path)] | |
print("\n[!] Loading hashes...\n\n") | |
time.sleep(3) | |
for line in lines: | |
n = n + 1 | |
print("[!] Processing... (" + str(n) + "/" + str(len(lines)) + ")\n") | |
r = requests.get(api + line) | |
with open(output_file, 'a') as writer: | |
if r.text != "": | |
writer.write(line + ":" + r.text + "\n") | |
else: | |
writer.write(line + ":" + "[No match]\n") | |
print("[*] " + line + ":" + r.text + "\n") | |
else: | |
print("[x] Can't access '{}': No such file or directory.".format(path)) | |
elif sys.argv[1] == "help": | |
print("[ Help ]\n\ | |
./nitrxgen help | Get Help message.\n\ | |
./nitrxgen - hashes.txt | Crack multiple hashes in a list file.\n\ | |
./nitrxgen 6b6e8ca697b4ea4bdc8ac88613ab646e | Crack a single MD5 hash.") | |
else: | |
hush = sys.argv[1] | |
r = requests.get(api + hush) | |
if r.text != "": | |
print("\n[*] " + hush + ":" + r.text + "\n") | |
else: | |
print(hush + ":" + "[No match]\n") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment