postmodern/wordlist.rb

wordlist binary -P option does not work

marek22k opened this issue · 1 comments

The -P option does not combine the wordlist's own words as specified.

$ cat test.txt 
hello
world
iam
testing
aprogramm
but
ialso
love
ruby
that are
just
some
stupid
words
$ wordlist test.txt -P 3
hello
world
iam
testing
aprogramm
but
ialso
love
ruby
that are
just
some
stupid
words
$ wordlist --version
wordlist 1.0.1

Fixed in 0759b3d.

$ ./bin/wordlist test.txt -P 3
foofoofoo
foofoobar
foofoobaz
foobarfoo
foobarbar
foobarbaz
foobazfoo
foobazbar
foobazbaz
barfoofoo
barfoobar
barfoobaz
barbarfoo
barbarbar
barbarbaz
barbazfoo
barbazbar
barbazbaz
bazfoofoo
bazfoobar
bazfoobaz
bazbarfoo
bazbarbar
bazbarbaz
bazbazfoo
bazbazbar
bazbazbaz