Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 645

Answer by Kamil Maciorowski for How to create a wordlist with Crunch that starts with a fixed word and is followed by a combination of numbers and special characters

$
0
0

When you supply a pattern with -t, you need to give crunch a minimum and a maximum length, each equal to the length of the pattern. To cover a range of lengths you need to run a sequence of crunch commands, each with its own pattern.

To get a combination of numbers and special characters, you need to give crunch a charset string. This can be done directly in the command line or from a file (with -f). The following commands use the former method:

crunch  8  8 '0123456789!@#$%^&*()-_+=~`[]{}|\:;"<>,.?/'\' -t Helen@@@crunch  9  9 '0123456789!@#$%^&*()-_+=~`[]{}|\:;"<>,.?/'\' -t Helen@@@@crunch 10 10 '0123456789!@#$%^&*()-_+=~`[]{}|\:;"<>,.?/'\' -t Helen@@@@@

Together they will generate the wordlist you want.

Alternatively use crunch to generate the variable substrings only; pipe the result to sed to add the fixed prefix (Helen) to each line. The advantage is you don't need -t now and thus you can cover the whole range of lengths with one crunch:

crunch 3 5 '0123456789!@#$%^&*()-_+=~`[]{}|\:;"<>,.?/'\' | sed 's/^/Helen/'

Viewing all articles
Browse latest Browse all 645

Trending Articles