tp7309 / TTPassGen

密码生成 flexible and scriptable password dictionary generator which can support brute-force、combination、complex rule mode etc...
Apache License 2.0
148 stars 25 forks source link

Combine words from wordlist #11

Closed Flamerinus closed 3 years ago

Flamerinus commented 3 years ago

Hi, I'm trying to make all possible combinations of 5 words from a list of words I have in a file.txt. I cant manage to write a ttpassgen command that does that. Can anyone help? Thanks

tp7309 commented 3 years ago

Two way:

Flamerinus commented 3 years ago

Hi, thanks for answering. I tried and I think I'm doing something wrong in Ubuntu WSL because I get this message and I also got something similar before when I tried different commands.

$ ttpassgen --dictlist "/mnt/c/try1.txt" -r "$0$0$0$0$0" /mnt/c/out.txt

found normal string: -bash-bash-bash-bash-bash
mode: combination rule mode, global_repeat_mode: ?, part_size: 0 Bytes, dictlist: ['/mnt/c/try1.txt'], input dict file encoding: None
raw rule string: -bash-bash-bash-bash-bash, analyzed rules: ['-bash-bash-bash-bash-bash']
estimated display size: 26.0 Bytes, generate dict...
100%|██████████████████████████████████████████████████████████████████████████████████| 
1/1 [00:00<00:00,  9.95 word/s]
generate dict complete.

I tried with the windows version and the CMD and it works flawlessly. Thanks.

tp7309 commented 3 years ago

Thank you for your feedback, It’s compatible issue, I will check it.

tp7309 commented 3 years ago

Use single quotes:

ttpassgen -r '$(aa,bb,cc,dd,ee,ff,gg,kkk,ii,mm,nn){5:5:?}' out.txt