How bitbrute/evillimiter works
Project Type and Purpose
• This is a Python-based command-line tool for network manipulation that uses ARP spoofing and traffic shaping.
• Its purpose is to scan the local network, monitor device bandwidth usage, and apply limitations or blocks on network traffic.
Break Down the File Structure into Main Architectural Components
• Executable/Entry Point:
• The top-level bin directory (with the executable “evillimiter”) and the main module in evillimiter/evillimiter.py indicate where the tool starts.
• Console/UI Layer:
• Components in evillimiter/console (banner.py, chart.py, io.py, shell.py) manage user interactions, output formatting, and input handling.
• Menu and Command Parsing:
• The evillimiter/menus folder (main_menu.py, menu.py, parser.py) handles user commands and navigation through the tool’s functionalities.
• Networking Layer:
• The evillimiter/networking folder contains modules (host.py, limit.py, monitor.py, scan.py, spoof.py, watch.py, and utils.py) dedicated to network operations (e.g., scanning hosts, ARP spoofing, traffic limiting, monitoring, and analysis).
• Common Utilities:
• The evillimiter/common directory includes shared code like global configurations or constants (globals.py).
Relationships and Data Flow
• The entry point (the executable and main module) initializes the application and routes to the UI layer (console and menus).
• The UI components receive user commands, which are parsed by the menus module.
• Callbacks from the menus/command parser invoke the appropriate functions in the networking layer to perform operations (scanning, spoofing, limiting, etc.).
• There is a clear separation between the user interaction (CLI, menus) and the core functionality (network operations), reflecting a layered design.
Architectural Patterns and Design Principles
• Modular Design: Each directory (console, menus, networking) encapsulates a specific responsibility.
• Separation of Concerns: The tool clearly distinguishes between user interface, command parsing, and network actions.
• Reusability & Maintainability: Utilities and common configurations are centralized in a common module.
Technologies/Frameworks
• Python 3 is the platform.
• The tool leverages system-level network manipulation (ARP spoofing, traffic shaping) through its networking modules (which likely interface with external utilities such as iptables or tc on Linux).
• Linux is a prerequisite as noted in the README.