Skip to content

Swordship/softnet_guard_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SoftNet-Guard β€” Setup & Run Guide

Velalar College of Engineering and Technology | Department of IT


βœ… Quick Setup (5 minutes)

Step 1 β€” Install Python dependencies

Open Command Prompt and run:

pip install flask scapy requests pandas scikit-learn

Step 2 β€” (Optional but recommended) Install Npcap

Npcap allows live packet capture on Windows. Download from: https://npcap.com/

  • During install, check βœ… "Install Npcap in WinPcap API-compatible Mode"

πŸš€ Running the Project

Option A β€” Demo Mode (works WITHOUT Npcap)

Best for showing your guide quickly. Uses real ARP scan + simulated traffic.

python main.py --simulate

Then open: http://127.0.0.1:5000

Option B β€” Real Scan Only (no dashboard)

python main.py --scan

Option C β€” Full System with Dashboard

python main.py

Then open: http://127.0.0.1:5000

Option D β€” Live Packet Capture (needs Npcap + Admin rights)

Right-click Command Prompt β†’ "Run as Administrator", then:

python main.py --capture

πŸ“ Project Structure

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 Coverage

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

πŸ” What the Guide Will See

  1. Real device discovery β€” the system scans your network and lists every device with IP, MAC, hostname, and vendor
  2. Traffic data β€” packets counted per device with protocol breakdown
  3. Security alerts β€” new device detection raises an alert automatically
  4. Live dashboard β€” http://127.0.0.1:5000 shows all data in real-time

⚠️ Troubleshooting

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/

About

πŸ§ͺ Test suite and dataset for softnet_guard β€” evaluating security model performance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors