Velalar College of Engineering and Technology | Department of IT
Open Command Prompt and run:
pip install flask scapy requests pandas scikit-learn
Npcap allows live packet capture on Windows. Download from: https://npcap.com/
- During install, check β "Install Npcap in WinPcap API-compatible Mode"
Best for showing your guide quickly. Uses real ARP scan + simulated traffic.
python main.py --simulate
Then open: http://127.0.0.1:5000
python main.py --scan
python main.py
Then open: http://127.0.0.1:5000
Right-click Command Prompt β "Run as Administrator", then:
python main.py --capture
softnet_guard/
β
βββ main.py β Entry point (run this)
βββ database.py β SQLite storage (Module 2 - Storage Layer)
βββ device_scanner.py β ARP/Ping device discovery (Module 2 - Collection)
βββ traffic_analyzer.py β Scapy packet capture (Module 2 - Processing)
βββ app.py β Flask web dashboard (Module 4 preview)
βββ requirements.txt β Python dependencies
β
βββ templates/
βββ dashboard.html β Web UI
| Module | Component | File | Status |
|---|---|---|---|
| Module 1 | Domain Knowledge & Requirements | (PPT Slides) | β Complete |
| Module 2 | Data Collection β Device Scanner | device_scanner.py |
β Complete |
| Module 2 | Data Collection β Traffic Analyzer | traffic_analyzer.py |
β Complete |
| Module 2 | Data Storage β SQLite | database.py |
β Complete |
| Module 4 | Web Dashboard (preview) | app.py, dashboard.html |
β Preview Ready |
- Real device discovery β the system scans your network and lists every device with IP, MAC, hostname, and vendor
- Traffic data β packets counted per device with protocol breakdown
- Security alerts β new device detection raises an alert automatically
- Live dashboard β http://127.0.0.1:5000 shows all data in real-time
| Problem | Fix |
|---|---|
ModuleNotFoundError: flask |
Run pip install flask |
Permission denied on capture |
Run CMD as Administrator |
| No devices shown | Use --simulate flag or check your network connection |
| Scapy error on Windows | Install Npcap from https://npcap.com/ |