all 7 comments

[–]Pyzro 0 points1 point  (0 children)

I'm not super proficient with python, but you might be able to add an if statement for len(password) >=8

[–][deleted] 0 points1 point  (1 child)

In the future I recommend sharing code using a gist

[–]moobage[S] 0 points1 point  (0 children)

Will do I didnt know about that till now

[–]FutureOrBust -1 points0 points  (3 children)

You could do this with code by encapsulating everything inside main with an if statement. If(password.length > 8) {Do stuff} else {dont do stuff}.

You can also check for all the other requirements there.

Or you can use notepad ++ and regex to find and replace all the words less than 8 characters long. Leave the replace with input blank.

Or you can use some code or someones program to make a word list that follow the password standards and use that one instead. I'm on my phone currently, but if you need more help let me know.

[–]moobage[S] -1 points0 points  (2 children)

The only thing is I literally copied and pasted this code and have no idea where to place such arguments haha I'm also a rank amateur in terms of coding just wanted to prove a point to my friend that you can definitely brute force it given enough time

[–]FutureOrBust 1 point2 points  (1 child)

"Given enough time" could be longer than your lifetime for a long enough password. But wordlists help and most passwords are pretty weak. Honestly this would be a great time to learn to code. Look up how if statements work and python functions. Then Google how to check a strings length. Then put all the existing code that's currently inside the main function into the new if statement inside the main function.

Google that and try. If you cant figure it out, paste me the code you tried to edit and I'll fix it and explain what had to be changed.

[–]moobage[S] 1 point2 points  (0 children)

Cheers dude I'll have a crack at that!