LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-23-2003, 04:24 AM   #1
mymojo
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 176

Rep: Reputation: 30
Password Security Checker - for project with benchmarks


Hello there!

I'm interesting in starting a project that gives benchmarks as to how secure a given password is.

For example: given password = 1434

- was cracked with brute force in 0.3 seconds.

etc.

I will test a whole range of passwords, and then create a paper publishing all the results and statistics. I'll also try it with lock out times of 3 secs after 10 tries, etc


I've got a 1.8ghz processor.. yah!


Ok, now onto the programming aspect.

I want to create two programs. One the password brute force program. The other a simple program that requires a password. For example, it just echoes "You've got in!" when the password matches.

user will assume "root"... will do tests later with guessed users /passes.

what I have trouble with is integration between the programs... trying to pass of the password variable with another program... any ideas?
 
Old 11-23-2003, 02:23 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
There are such programs available. They get quite nice results.

Quote:
what I have trouble with is integration between the programs... trying to pass of the password variable with another program... any ideas?
Temporary file or pipe, IMHO.
 
Old 11-23-2003, 07:37 PM   #3
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
the easiest thing to do would be to have the password program read a password from standard input in a loop until it reads EOF. then the bruteforce program would be the parent, create a pipe set, and fork a child that first dup2's the read end of the pipe to stdin and then exec's the password program. then in the bruteforcer you could generate a password and write it to the pipe. however, as mara said this has already been done, much better than you and i could do it.
that said, the easiest thing is never the most efficient. especially since we;re talkin about brute force here, you want an efficient program if it's going to be constantly doing calculations over a long period of time! if you are fixated on using 2 processes, shared memory is at least twice as fast as using a pipe.
 
Old 11-23-2003, 11:28 PM   #4
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Why not just calculate how long it will take based on how long it is and if it includes charecters and numbers? Simple question of permutations...

The benchmarks will not attest to much anyways seeing as this will be a test of your algorithm design more than anything...

Last edited by Stack; 11-23-2003 at 11:30 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unix password security securitycheck Other *NIX 2 10-07-2004 12:07 AM
Security checker rkhunter working with AIX iainr AIX 0 07-16-2004 03:45 AM
Project: Computer Security Portal jedeye General 1 06-09-2004 02:32 PM
PHP > MySQL connection password security question Wibble Linux - Security 4 04-22-2004 03:19 PM
Linux Password/Security System Katrix Linux - Security 5 06-22-2001 02:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration