# Thread: How to generate 8 Digit Possible passwords?

1. ## How to generate 8 Digit Possible passwords?

Hi backtrack 5 experts,

I am NOT a security related guy. Jst we need to generate all 8 digit possible passwords as part of cracking.
we have got WPA handshake. And i tried different kinds of password lists available on net but no use.

My requirement is :
i) length password : 8 characters
ii) Mixed of UPPER CASE & numbers.

Example : HUJ3NAK8

NOTE : No lower case & No Spl characters.

If anyone know how to generate all possible passwords by using abov conditions, Please temme..

Thank you in advance.

2. ## AW: How to generate 8 Digit Possible passwords?

Hey

there is a programm called crunch, google for it

3. ## Re: How to generate 8 Digit Possible passwords?

I really don't recommend doing this,
Calculating the amount of permutations for a set of 36 characters, with a pass length of 8 characters,

P(36,8) = 36! / (36 - 8)! =
1,220,096,908,800 possible permutations.

Assuming each pass is 8 bytes in size,
1,220,096,908,800*8 bytes = 8.87737339 terabytes

With the sheer amount of time and resources that would take to generate, not to mention the space it would take up on a harddisk, you're wasting your time, and energy.

Just get the biggest wordlist you can find, and hope for the best, or use an online service.
If you're looking to compile wordlists, pyrit removes duplicates, invalid WPA keys (Anything smaller than 8 characters and more than 64), and to my knowledge it sorts too.

Good luck

4. ## Re: How to generate 8 Digit Possible passwords?

How did this got allowed to be posted in the expert section? :/

5. ## Re: How to generate 8 Digit Possible passwords?

Can be achieved with John the Ripper:
Code:
`john --stdout --incremental:all | aircrack-ng -b 00:19:5B:52:AD:F7 -w wpa2*.cap`
You'll need to change the "00:19:5B:52:AD:F7" to the BSSID of the access point you are trying to access. and the wpa2*.cap to your airodump file that caught the handshake.

This will run through every possible combination of 8 characters straight from John directly through aircrack, however as mentioned above on an average computer you'll process around 1000~ keys/second; at that rate it would take around 23 years to run through every combination.

6. ## Re: How to generate 8 Digit Possible passwords?

crunch + pyrit works.. good idea to use just a-z lowercase though- most people will have a 8 character with no numbers or caps.. least from what I've seen

it doesn't take up any harddrive space to do either.. pipe into pyrit and passthrough to cowpatty for the handshake

7. ## Re: How to generate 8 Digit Possible passwords?

Some time ago i use this solution:

Create a bash shell function as follows (~/.bashrc):

Code:
```genpasswd() {
local l=\$1
[ "\$l" == "" ] && l=16
tr -dc A-Za-z0-9_ < /dev/urandom | head -c \${l} | xargs
}```

Now use genpasswd as follows to create 8 character long password:

Code:
`genpasswd 8`

Sample outputs:

Code:
`Es5Yzf8H`

8. ## Re: How to generate 8 Digit Possible passwords?

Altough you'd obviously have to remove the a-z part of the script for your purposes. Cool function though. You could also use John the ripper, and define your own custom charset.

9. ## Re: How to generate 8 Digit Possible passwords?

The formula to calculate the filesize is
(x^y)*(y + 1)
x is the number of characters
y is the length of the string
(36^8)*9
25,389,989,167,104 bytes
which is 25.4 TB

10. ## Re: How to generate 8 Digit Possible passwords?

The X^Y part I get. But shouldn't 36 possibilties in 8 spots take care of all the options. Why do you multiply it by Y+1?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•