Jump to content

Recommended Posts

Posted

What would be the most efficient way for testing all combinations of a password that is:

-4 characters long

-Can only be the characters 1-4 (1,2,3,4. 0, 5-9 are not used.)

I figured there would be 256 combinations, but thats about as far as I got. B)

I'm pretty much a beginner at this, and don't know much about arrays, but I figure that it would involve something like that.

Please help

Posted

it's 4^4 combinations

if you want to do it with autoit than this is your code

for $a = 1 to 4 step 1
for $b = 1 to 4 step 1
for $c = 1 to 4 step 1
for $d = 1 to 4 step 1
send ($a&$b&$c&$d & {enter});if you want to send it
msgbox(0, "Code", $a&$b&$c&$d);for displaying in msgbox
next
next
next
next

tries all combinations

good luck with whatever you're doing

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...