How oaksat/dictionary-attack-demo works
This educational Flask demo exposes a vulnerable login API and two ways to try candidate passwords: a command-line script that sends HTTP requests, and a live server-side visual demo that streams results. The browser login page and welcome page are rendered by Flask. The credential store is a hard-coded in-memory mock. The live demo’s templates were not sampled, so their client-side behavior and any links between pages are not represented; documented capabilities and visible server-side calls inform the graph.
Main entry points: app.py Flask routes · demo.py CLI attack · pass_strings.txt Password list · login.html Login page
Components 11
Web interface
- Login page
app/templates/login.html - Welcome page
app/templates/welcome.html
Login service
- Flask routes
app/app.py - Login API
app/app.py - Mock credentials
app/app.py
Attack demonstrations
- CLI attack
demo.py - Live attack
app/app.py - Password list
pass_strings.txt
Other components
- Visitor
- Browser
- Local HTTP service
Connections 13
- Visitor → Browser: uses
README.md - Browser → Flask routes: requests pages
README.md - Flask routes → Login page: renders
app/app.py - Flask routes → Welcome page: renders
app/app.py - Browser → Login API: submits login
- Login API → Mock credentials: checks credentials
app/app.py - CLI attack → Password list: loads candidates
demo.py - CLI attack → Local HTTP service: posts attempts
demo.py - Local HTTP service → Login API: routes requests
README.md - Live attack → Password list: reads candidates
app/app.py - Live attack → Mock credentials: checks candidates
app/app.py - Flask routes → Live attack: starts attack
app/app.py - Live attack → Browser: streams results
app/app.py