- Notifications
You must be signed in to change notification settings - Fork0
Goofisded/netsniff
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- Real-time network traffic monitoring
- Port scan detection & threat alerts
- DNS query logging & analysis
- Protocol breakdown (TCP/UDP/ICMP)
- Connection tracking & statistics
- Cross-platform support (Windows/Linux/macOS)
- Customizable whitelists & thresholds
- Python 3.8+
- Npcap (Windows) / libpcap (Linux)
# Clone repositorygit clone https://github.com/Goofisded/netsniff.gitcd netsniff# Install dependenciespip install -r requirements.txt
# Install libpcapsudo apt-get install libpcap-dev# Run with privilegessudo python3 netsniff.py -i eth0
- InstallNpcap
- Run Command Prompt as Admin:
python netsniff.py -i"Ethernet"
Basic command structure:
sudo python3 netsniff.py -i [interface]
Example with common interface names:
# Linux wireless interfacesudo python3 netsniff.py -i wlp2s0# Windows Ethernetpython netsniff.py -i"Ethernet 2"
Edit theCONFIG
section in the code:
CONFIG= {"CHECK_INTERVAL":5,# Stats refresh rate (seconds)"SCAN_THRESHOLD":15,# SYN packets/min for alerts"DNS_THRESHOLD":50,# DNS queries/min limit"WHITELISTED_IPS": [],# Trusted IP addresses"LOG_FILE":"netsniff.log"# Log file path}
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit changes:
git commit -m'Add amazing feature'
- Push to branch:
git push origin feature/amazing-feature
- Open a Pull Request
Distributed under MIT License. See LICENSE for more information.
Made with ❤️ by Goofisded | 🛡️ Happy Monitoring!