Originally Posted by rehan_gree
Hello Every one,
I am new in Linux. I am looking for a word list generator that generate word like this..
let say i want to generate 10 char long word but if one single char repeat 3 time then that should not store in the word list.
we want to generate 10 digit long word-list using crunch.
crunch will generate first line:
9999999999 (last line in wodrlist)
now what we want here:
0001234567 take a look 0 is repeat 3 times. it should not store in word-list file.
or > 1234567772 take a look 7 is repeat 3 times. it should not store in word-list file.
Or > 9045833321 take a look 3 is repeat 3 times. it should not store in word-list file.
now if we want to generate a to z combination then
qxxxhygtbr, x is repeat 3 times . it should not store in word-list file.
Thanks for your time
Here is a possible algorithm to get you started...
loop through all generated strings.
for each string, loop through all characters.
increment a counter (starting at 0 for each string) if a character equals the previous character and reset the counter to 0 otherwise
discard the string if the counter reaches or exceeds 2.
I am assuming there would also be some smart expression matching approaches that could handle this more elegantly...