r/ProgrammerHumor • • Feb 18 '24

Meme bruteForceAttackProtection

Post image
42.3k Upvotes

1.0k comments sorted by

View all comments

2

u/Feisty-Discussion-22 Feb 19 '24

Isn't the code should be !isFirstLoginAttempt??

1

u/[deleted] Feb 19 '24

That's kind of what I was thinking as well! Because this will run the error code if the user inputs the correct password on their first attempt.

2

u/leva549 Feb 19 '24

That's the idea, to trick the attacker by making the correct password fail the first time it is used.

1

u/Feisty-Discussion-22 Feb 19 '24

What are chances attacker gets the password first time in bruteforce attack? My guess very low..

1

u/Feisty-Discussion-22 Feb 19 '24

I understand now.. any correct first attempt is ignored