NorthernSec / VeraCracker

Veracrypt Password Cracker
78 stars 25 forks source link

Not working under linux #5

Open scarytentacles opened 7 years ago

scarytentacles commented 7 years ago

Want to crack a VeraCrypt container under Ubuntu 14.04 but haven't been able to get this going. VeraCrypt is installed but not running. My password list is only two incorrect passwords, one on each line and no commas. Had to modify the python code so that the -t (text mode) was with the veracrypt command call else I'd get a error box early every time saying non interactive mode can only work in text mode or something like that. I always have used the veracrypt GUI for doing things with the container. root@ubuntu:/home/jack# python3 '/home/jack/veracracker.py' -v '/home/jack/veracontainer' -p '/home/jack/passwords' TODO: Is veracrypt installed Error: Operation failed due to one or more of the following:] 0/2

(process:3689): GLib-GObject-CRITICAL **: g_type_class_unref: assertion 'g_class != NULL' failed [+] Password found! --> notmypasswordbutinmylist <-- Cracking duration: 0:01:19.265928 Passwords tried: 0

scarytentacles commented 7 years ago

I redownloaded the code and it is working now. I must have broken your code. However, I still have a Veracrypt dialog box twice for every password it tries that says "--non-interactive is supported only in text mode" and I have to press OK for it to go away. If my list is 10 passwords long, I have to press OK twenty times. I tried adding -t (Text Mode) to line 24 in the code like this: VeraLinuxCMD = 'veracrypt -t %s -p %s --non-interactive' But then it won't work at all. How can I prevent this annoying dialog box so I can run the py and not have to hit OK over and over?

swillis00 commented 7 years ago

On Linux Mint 17.3

your corrected line is what works fine for me. Also execute with sudo I had to change #!/usr/bin/env python3.3 to #!/usr/bin/env python3 to run on my system

PidgeyL commented 7 years ago

That'd probably make it more generic, yes. But that's only because you ran it with ./

swillis00 commented 7 years ago

No I ran it with ./ because it wasn't in my default PATH. sudo has nothing to do with that.

PidgeyL commented 7 years ago

I didn't say anything about sudo. I'm referring to the python version. If you just ran python3 VeraCracker.py, it would work too.

swillis00 commented 7 years ago

Thanks