View previous topic :: View next topic |
Author |
Message |
AgenT Apprentice
Joined: 18 May 2003 Posts: 280
|
Posted: Mon Aug 04, 2003 5:52 pm Post subject: GWN 8/4/03 (+ Password Generator Q/A) |
|
|
I do not think there are any threads specifically dedicated to GWN discussion, so maybe this can be where people discuss (at least) the 8/4/03 GWN.
When I clicked on the 8/4/03 GWN link I already had 4 browser tabs open searching for a simple linux based password generator (on gentoo, freshmeat, sourceforge, and google). To my surprise, the focus on the topic "Tips and Tricks" was "A Quick and Easy Password Generator"! My question concerns how one would go about making/modifying the password generator to only use specific types of characters. For example, only using numbers, lowercase, and uppercase letters. Any ideas? Suggestions?
For quick reference, here are the lines of code:
1 8-char pw: Code: | dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | head -n 2 | tail -n 1 | cut -c-8 |
10 8-char pw's: Code: | for ((n=0;n<10;n++)); do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m -| head -n 2 | tail -n 1 | cut -c-8; done |
1 md5sum pw (for routers, etc.): Code: | dd if=/dev/urandom count=1 2> /dev/null | md5sum | head -n 2 | tail -n 1 | cut -c-26 |
P.S. Thanks to all the people involved for the great GWN's!
Last edited by AgenT on Mon Aug 04, 2003 7:02 pm; edited 3 times in total |
|
Back to top |
|
|
Unne l33t
Joined: 21 Jul 2003 Posts: 616
|
Posted: Mon Aug 04, 2003 6:50 pm Post subject: |
|
|
Code: | perl -e '$_ = `dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | head -n 2 | tail -n 1 | cut -c-8` while (!/^[0-9a-zA-z]+$/); print' |
Far from optimal, all it does is keep generating passwords like it was posted in the article until it finds one that has only letters and numbers. Better than nothing though. The vast majority of passwords generated seem to be only letters and numbers anyways. I guess because of the -m switch to uuencode.
I'm gonna have to try those artwiz fonts. I've heard too many people mention them so far. |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Mon Aug 04, 2003 10:28 pm Post subject: |
|
|
One could also use app-admin/apg, which is a nice CLI password generator. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|