Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
retoor120641yCool, but why didn't you exit after good result? Now you had to grep logs hoping he cracked it. 5 minutes is not bad since he had to open that program for thousands of times
-
@retoor Now i know the response if the password is right: it starts with OK.
Next time I will optimize the code.
Next time I will not forgot the password. -
hjk10157311yI see your password pattern here 😘
Code can be simplified with another foreach loop and a single call or embedding of the open archive function in the loop body. A function that generates the combinations e.g. combos(string word, int num, string special): array
Makes the inner foreach nice and clean.
Exit codes are a good indicator of success (or failure).
If course that is all over engineering is you just need the damn password as soon as possible without you doing the repetitive task. So good job!
Related Rants
Forgot a keepass password.
Brute force script to find the password.
It worked.
rant
password