[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - Best app for demo

Best app for demo

Forum for anything not suitable for the other forums.

Re: Best app for demo

Postby chumby » Thu Aug 07, 2014 2:30 am

chumby
 
Posts: 9
Joined: Wed Aug 06, 2014 12:49 pm

Re: Best app for demo

Postby ZenoArrow » Thu Aug 07, 2014 1:27 pm

So you have done Python before! That's a great start chumby, though I would change input() to raw_input(), for the why read this...
http://stackoverflow.com/questions/1584 ... pplication

I'm currently researching curses for you so that you can have a slick console application, will have something for you by the end of the day, including a short tutorial so you can understand it too.
ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Re: Best app for demo

Postby chumby » Thu Aug 07, 2014 9:04 pm

Hi Zen,

Yea done some a while back - have done a little Java also - just takes a long while to get back to me ;)

I was reading somewhere about the hashlib function. Could this be used somehow to encrypt the passwords?

Cheers
Chumby
chumby
 
Posts: 9
Joined: Wed Aug 06, 2014 12:49 pm

Re: Best app for demo

Postby ZenoArrow » Fri Aug 08, 2014 1:54 am

Hi chumby,

I've been having fun setting up development environments today (haven't done any Python in a while), but should have something working tomorrow. In the meantime... yes, you are correct, hashlib is the library to use, you'll want to use the SHA-512 encryption in order to generate similar password hashes to Linux shadow files.

https://docs.python.org/2/library/hashlib.html
http://www.admin-magazine.com/Articles/John-the-Ripper

So the idea would be to generate a text file that looked like this...

root:$1$gb9R8hhhcES983e
khess:$50anHnciUcp02u82

Then run JtR with the 'unshadow' option on the file you generated, similar to this (but using the 'sh' library I mentioned before)... sudo john unshadow /etc/passwd /etc/shadow > passfile.txt

The next task I'm working on is getting the curses stuff going, but you're welcome to try the hashing thing out, I'm sure you're capable already. ;) Let me know how you get on, and I'll let you know how I get on with the curses stuff.
ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Re: Best app for demo

Postby chumby » Fri Aug 08, 2014 11:46 am

Ok Zeno...

Will have a look at that code... might take a few days though.. heading off for the weekend.

Good news though... my parallella arrived today. Just trying to sort out an image to put on it...

Cheers
Chumby
chumby
 
Posts: 9
Joined: Wed Aug 06, 2014 12:49 pm

Re: Best app for demo

Postby chumby » Mon Aug 11, 2014 1:42 pm

chumby
 
Posts: 9
Joined: Wed Aug 06, 2014 12:49 pm

Re: Best app for demo

Postby ZenoArrow » Wed Aug 13, 2014 2:36 am

ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Re: Best app for demo

Postby ZenoArrow » Wed Aug 13, 2014 3:51 am

ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Re: Best app for demo

Postby chumby » Thu Aug 14, 2014 12:16 pm

Hi Zen,

Thanks for this... will have to investigate this code... kind of understand what is going on, but need to lookup a few things...

I don't have any wordlists... perhaps keep the password length the same for all three passwords, but change the combinations of characters...

ie

Password 1: (Weak): wednesday
Password 2: (Mendium): DhjYhuihT
Password 3: (Strong): $Dgghi&j.h15

Does that make any sense?

am enjoying this...

Cheers
Chumby
chumby
 
Posts: 9
Joined: Wed Aug 06, 2014 12:49 pm

Re: Best app for demo

Postby ZenoArrow » Fri Aug 15, 2014 4:18 pm

Hi chumby,

Thanks for the feedback (I'm enjoying this too).

I agree about keeping the passwords the same length. I've done a bit of research into JtR and it seems it works best when passwords are no more than 8 characters long, so would recommend that limit. Perhaps easy is all lower case alpha characters (no numbers), medium is all alphanumeric characters (upper and lower case letters and numbers), and hard is all characters (including @, !, etc...). Would also recommend that the 8 character limit is fixed (no shorter passwords), as I do worry that otherwise the task will be too hard to complete multiple times as a demo. Fixing the rules in this way will make the password lists easier to specify as well.

I still think it is necessary to do some benchmarking to confirm the Parallella will perform in a suitable length of time. You will already have a shadow file ready to use (unless your sudo password is too long). Let's look at wordlists then run a benchmark.

Would recommend this Ars Technica article as a good introduction to this field (worth noting how much of a difference the rockyou wordlist makes):
http://arstechnica.com/security/2013/03 ... d-cracker/

Next, need to create a wordlist for our initial test. This article describes three tools for this, CRUNCH + a hashing tool will do this trick for the initial test (don't know how big the resulting file will be, worth generating on your main PC):
http://kaoticcreations.blogspot.com/201 ... h.html?m=1

I'll keep working on refining the Python stuff.
ZenoArrow
 
Posts: 38
Joined: Thu Jan 10, 2013 6:10 pm

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests