learning-it by example

Back to the video

5 Password Attacks and the Defence for Each

Brute force: 6 of 6 guesses through, then 2 of 6 once the lockout was on.

Video #282 ยท How it works, by example

Steps in the video

  1. 0:00 Six of six, then two of six
  2. 0:36 The idea
  3. 1:09 Setup
  4. 1:30 The fake clock
  5. 1:50 The toy data and the store
  6. 2:18 The defences, one flag at a time
  7. 2:52 The spray and the stolen table
  8. 3:27 Run it
  9. 4:07 What this does not show
  10. 4:49 Mistakes to avoid
  11. 5:22 My take and next steps
  12. 5:56 Recap

Files

  • attacks.py (51 lines)
  • login.py (41 lines)
  • run.py (24 lines)
  • server.py (28 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

Every user, password and list is a made-up toy for defence teaching; thresholds and hash cost are toy values, far below real guidance.

Sources

Learning IT by Example.