def __init__(self): if not os.getuid()==0: sys.exit("\nOnly root can run this script\n") usage = '''usage: truebrute.py [options] truebrute.py -t [TrueCrypt File] -w [Wordlist File] *-* Description : TrueBrute Version 1.0 Beta Digital Forensics - TrueCrypt Brute Forcer Written By Fardin Allahverdinazhand (0x0ptim0us) Email : [email protected] Founder & Developer Of The Websploit Framework Project *-*''' parse = optparse.OptionParser(usage=usage) parse.add_option('-t', '--truefile', help="TrueCrypt File") parse.add_option('-w', '--wordlist', help="Dictionary File") opt, args = parse.parse_args() self.truefile = opt.truefile self.wordlist = opt.wordlist if self.wordlist and self.truefile: print "[+] Attack Has Been Started ..." core.engine(self.truefile, self.wordlist) else: print "[!] Wordlist or TrueCrypt File Not Found !" print "[+] Use --help Switch For More Info."
def on_start_clicked(self, widget): self.status.push(0, "Status : Started...") self.current_file = self.truecrypt_file_entry.get_text() self.current_wordlist = self.wordlist_file_entry.get_text() core.engine(self.current_file, self.current_wordlist) self.buffer5 = self.main_output.get_buffer() self.it5 = self.buffer5.get_end_iter() t3 = "> Done." self.buffer5.insert(self.it5, t3) self.status.push(0, "Status : Done.")