Nodejs-NetworkMonitor is a Node.js application that monitors local network traffic in real-time. It captures and displays information about your local network, Newly detected devices on the WiFi and local network, and network packets. The application uses several technologies including pcap for packet capture, node-arp for ARP scanning, and Socket.IO for real-time updates to the frontend.
- WiFi Network Scanning: Detects and displays available WiFi networks, including SSID, signal strength, and security details.
- New Device Alerts: Sends real-time alerts when new devices are detected on the WiFi or local network.
- Packet Capturing: Captures network packets and displays key details such as source and destination IP addresses, ports,and protocols.
- Local Network Monitoring: Lists all devices on the local network with their IP and MAC addresses.
- Real-Time Updates: Uses Socket.IO to send real-time updates to the frontend when new devices are detected or packets are captured.
- Event-Driven Architecture:
- The server listens for specific events (startWifiScan, startPacketCapture, startLocalNetworkMonitoring) and starts the respective processes only when requested by the client.
- Efficient Resource Usage:
- By starting scans and monitoring processes only when needed, this setup conserves server resources and avoids unnecessary processing.
- Real-Time Updates:
- The client receives real-time updates as data becomes available.
- Error Handling:
- Ensure that any errors during scans or monitoring are properly handled and communicated to the client if necessary.
- Node.js
- Express
- Socket.IO
- Pcap
- Node-arp
- Mode-Wifi
- Net-ping
- HTML/CSS
- JavaScript
- Nodemon
git clone https://github.com/rbrown29/Nodejs-NetworkMonitor
cd Nodejs-NetworkMonitor
npm install
npm start
or
npm run dev (for development - uses nodemon)
- Node.js
- npm
- Elevated privileges for network scanning and packet capturing
Use this tool responsibly and only on networks you own or have permission to monitor. Unauthorized network scanning and packet capturing may be illegal in some regions.