correct horse battery staple - every word variation
#1
Hello all

[Image: password_strength.png]

I'm trying to create a dictionary/rule thing for a password with 4 words.


xkcd example:
correct horse battery staple
correcthorsebatterystaple
c0rrect h0rse b@ttery staple
correct1horse2battery3staple4

and so on.

What would be the best way to achieve that?

TIA
Reply
#2
is different pattern but you can do all with combinator.bin and rules
Reply
#3
(05-10-2021, 04:41 AM)lukasz Wrote: Hello all



[Image: password_strength.png]



I'm trying to create a dictionary/rule thing for a password with 4 words.





xkcd example:

correct horse battery staple

correcthorsebatterystaple

c0rrect h0rse b@ttery staple

correct1horse2battery3staple4



and so on.



What would be the best way to achieve that?



TIA

Have a look at comboleetor.pl.  It can do what you want.

https://www.jimby.name/techbits/recent/comboleetor/

Preso here:
https://www.jimby.name/techbits/recent/c...tation.pdf

You have several examples above that i will try to replicate.
First set up the blocks.txt and numbers.txt files.

blocks.txt file:
correct
horse
battery
staple

numbers.txt file:
%d
1,2,3,4

For this example:
correcthorsebatterystaple

run:
echo 'BBBB' | perl comboleetor.pl 2> /dev/null

For this example:
correct horse battery staple

run:
echo 'BPBPBPB' | perl  comboleetor.pl   2> /dev/null

Space is considered a punctuation character in the code.


For this example, it looks like you want some leet speak:
c0rrect h0rse b@ttery staple

echo 'bPbPbPb' |  perl comboleetor.pl  2> /dev/null

For this example, you are interspersing a number between each word:
correct1horse2battery3staple4


echo 'BNBNBNBN' | perl comboleetor.pl  2> /dev/null

There's a maximum of 8 characters in the input specification so that last example should work, but adding one more letter (e.g. BNBNBNBNB) will not get the desired result. 

BTW - some of these will generate a *lot* of output.
HTH
Reply