Link to home
Start Free TrialLog in
Avatar of HumanScaleDev
HumanScaleDevFlag for United States of America

asked on

Password Guessing

I had to walk a user through setting up a firewall (she's remote). I gave her a temporary password to use during the setup figuring I would log in later to change it. She entered the characters in the different order and I can't for the life of me figure it out. I'd rather not hard reset the Firewall because we can't afford the downtime nor are any of the users very tech savvy. I know all of the letters and the length of the password and that's it. Is there any sort of combination application (where I can put my characters in and it will tell me all of the possibilities)?
Avatar of Tolomir
Tolomir
Flag of Germany image

How about that one:

How to make an excel macro that finds every single possible combination of letters in a string of X amount
http://answers.yahoo.com/question/index?qid=20080729215446AAe6S1O
Since you know your letters you can limit the loops:

if you used 12 distinct characters:
Code for a-z all combinations, repeat
Sub a2zRpt()
Count = 1
For a = 1 To 12
For b = 1 To 12
For c = 1 To 12
Cells(Count, 3) = Chr(96 + a) & Chr(96 + b) & Chr(96 + c)
Count = Count + 1
Next
Next
Next
End Sub

Open in new window

This is for 3 characters.

OK let's modify it a bit - 9 characters long - 8 different chars used (one double)


Code for a-z all combinations, repeat
Sub a2zRpt()
Count = 1
For a = 1 To 8
For b = 1 To 8
For c = 1 To 8
For d = 1 To 8
For e = 1 To 8
For f = 1 To 8
For g = 1 To 8
For h = 1 To 8
For i = 1 To 8
Cells(Count, 9) = Chr(96 + a) & Chr(96 + b) & Chr(96 + c) & Chr(96 + d) & Chr(96 + e) & Chr(96 + f) & Chr(96 + g) & Chr(96 + h) & Chr(96 + i)
Count = Count + 1
Next
Next
Next
End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of kg69
kg69

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HumanScaleDev

ASKER

While the others may work, I'm no Excel guru so this was simple. Thanks!