Generate specific wordlist
Hello ! I'm new on Linux and I'm running Kali Linux.
I have issue to generate my wordlist because the problems is I want to generate a password with a lenght of 10 characters hexademcimal (0123456789ABCDEF) but the password have to always have 4 letters and 6 numeral and it should never have 2 consecutive characters side by side. I hope someone can help me or coding a good script that can be running on Kali Linux. Thank You. |
This can certainly be done in any num of langs eg bash.
Please have a go and show us what you've got if you get stuck. We prefer to help people towards a soln, rather than just doing their work for them. If you choose bash, here's some links: http://rute.2038bug.com/index.html.gz http://tldp.org/LDP/Bash-Beginners-G...tml/index.html http://www.tldp.org/LDP/abs/html/ |
1 Attachment(s)
Yeah you are right, I already tried a perl script like wg.pl with the option
perl wg.pl -c 2 -l 10 -o 4 -r 2 -u 10 0123456789ABCDEF -w Dico.txt It is a good script but I still got a lot of keys that can be ignored to save time and space like: 0101214EF7 0101214EF8 0101214EF9 0101214EFA 0101214EFB ..... Because they didn't have 4 letters and 6 numerals. It's been 2 days I search for a solution in many english or french forums (I'm french tahitian by the way) to reduce my wordlist size and this is the best approch but it can be more accurate. If I can add the option to specify a number of letters and numeral per key that would be what I want :) but I don't have the skill for that and this is where I need your help guys. Here is the script: PHP Code:
|
Quote:
Code:
FOR i = 1 to 10 |
Ohh men thank very much for your code/script/algorithm or whatever but lol I don't know how and where to execute your code...how to generate as a file the wordlist.
Thank you in advance |
Quote:
The implementation details (including how you output the data) depend on which language you are using. I notice that you have given a sample perl script so I presume you know how to implement control structures and functions in perl. |
The idea is that you know have an algorithm which to write in any language you like (Perl if that is your choice).
So work out how you would reproduce each line in a Perl script and go from there :) |
It looks like your code does a lot more (or tries to) than your original qn.
Given that you have tried some stuff, here's a simple version that does only the basics as requested in OP: 6 digits (0-9) + 4 from A-F; no repeats, using random selections. Once the chars/nums have been generated, obviously you could randomly shuffle them. Code:
#!/usr/bin/perl -w |
I thought this looked quite slick :)
Code:
#!/usr/bin/env ruby |
This code ...
Code:
# Create a file of 10-character candidates. Code:
OutFile ... Daniel B. Martin |
Quote:
Code:
daniel@daniel-desktop:~$ ruby /home/daniel/Desktop/LQfiles/dbm728.ruby - the requisite 6 numerics at the beginning of the password, and always in sorted order. - the requisite 4 letters at the end of the password, and always in sorted order. IMHO this lacks the randomness which is expected in secure passwords. If a hacker knew of these characteristics it would help him "crack" the password because there are fewer possibilities to try. Daniel B. Martin |
hmmm ... I was wondering if anyone would comment on that point :$
Interestingly, only takes the addition of a single command in the last line to help out :) Code:
#!/usr/bin/env ruby |
Quote:
Daniel B. Martin |
Quote:
|
Quote:
Examples: 5A2C74CD74 has two Cs, two 7s, and two 4s 518ACBF631 has two 1s 97921DAD2F has two 9s, two 2s, and two Ds 9C9697FE9F has four 9s and two Fs An ideal password is truly random. There is no characteristic which could guide a hacker in an attempt at cracking. Daniel B. Martin |
All times are GMT -5. The time now is 05:04 PM. |