Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 14 Feb 2010 13:07:00 +0100
From: SL <auditor@...chat.de>
To: "john-users@...ts.openwall.com" <john-users@...ts.openwall.com>
Subject: Re: create mixed wordlist with terminal

Am 14.02.2010 um 10:46 schrieb  <websiteaccess@...il.com>:
> How with the terminal (os X) can I create a single wordlist from 2
> dictionaries.
>
> exemple :
>
> -- dic #1 --
> john
> mike
> steve
>
> -- dico #2 --
> red
> blue
> black
>
>
> I want :
>
> johnred
> mikered
> stevered
> johnblue
> mikeblue
> steveblue
> etc..

while read word2; do
while read word1; do
echo "${word1}${word2}";
done < dic;
done < dico

OR

while read suffix; do
sed "s/$/$suffix/" dic;
done < dico

(Assuming Terminal to run Bash, as is the default at least on Tiger  
and Leopard, and also on Ubuntu.)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.