2OF1 · the depletionmode zineLinkedIn · X
← back to the issue

11 July 2010

BaSH: Random word generation

Originally published on the old depletionmode / 2of1 blog (archived copy).

It’s quite easy to generate a random word to be used for anything your heart desires!

listing text
shuf -n1 /usr/share/dict/words

Obviously if you need to generate for user/pass purposes, you can just remove all those annoying characters that are sometimes returned by piping into good ol’ sed:

listing text
shuf -n1 /usr/share/dict/words | sed 's/[^a-z]*//g'

→ end of entry

2/1
@depletionmode
security research & systems engineering