Skip to content

Bishal-Kumar-Baishya/Brute-force-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brute Force Simulator

A brute force simulator is made with python

How to run

  • Start the server first:- python target_app.py
  • In another terminal, run:- python brute_force.py --url http://127.0.0.1:5000/login --username light --wordlist wordlist.txt --delay 0.5

CLI Arguments

  • --url - targets login url
  • --username - username to use for all attempts
  • --wordlist - path to the wordlist .txt file
  • --delay - float value for each delay between brute force attempts

About the tool

  • v1: This tool performs repeated login attempts in a flask server trying every possible passwords from a wordlist file for a username.
  • v2: Added --delay to avoid rate limiter, and for each failed attempts it logs in a file with info like IP, username, password and timestamp. The log file format is compatible with Log Analyzer project.
  • v3: Added lockout mechanism which locks the account after 5 attempts. It can lockout legitimate users too, and real implementations use temporary lockouts or CAPTCHA instead.

Technically this is a dictionary attack — it tries passwords from a wordlist rather than every possible combination.

Built with

  • Python 3
  • flask module
  • argparse module
  • requests module
  • logging module
  • time module

Purpose

This tool demonstrates understanding of authentication attacks from defensive perspective - can show how to detect and mitigate them. It teaches about HTTP requests, wordlist iteration, rate limiting and how defenders can spot this pattern.

About

A Python-based brute force simulator with a target Flask app, wordlist attack, delay evasion, server-side logging, and IP lockout mechanism — built for offensive and defensive security learning.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages