A sleek, nice network packet capture and analysis tool with real-time scanning capabilities
|
|
# Ubuntu/Debian
sudo apt update && sudo apt install qt6-base-dev libqt6widgets6 libpcap-dev nmap
# Arch Linux
sudo pacman -S qt6-base libpcap nmap
# Fedora/RHEL
sudo dnf install qt6-qtbase-devel libpcap-devel nmapgit clone https://github.com/Nytso2/PacketAnalyzer.git
cd PacketAnalyzer
qmake6 && make
sudo ./PacketAnalyzer # Root required for packet captureMost users won't need to edit anything - the tool auto-detects your network. But if network scanning doesn't find devices, you may need to adjust these lines:
// In the scanNetwork() function - edit if needed:
if (localIP.startsWith("172.16.")) {
networkRange = "172.16.0.0/23"; // ← Change this number if needed
} else if (localIP.startsWith("192.168.")) {
QStringList parts = localIP.split('.');
networkRange = parts[0] + "." + parts[1] + "." + parts[2] + ".0/24"; // ← Usually fine
} else if (localIP.startsWith("10.")) {
networkRange = "10.0.0.0/8"; // ← Change this number if needed
} else {
// Fallback for other networks
QStringList parts = localIP.split('.');
networkRange = parts[0] + "." + parts[1] + "." + parts[2] + ".0/24";
}🔍 How to Check Your Network:
ip route | grep default- Network scan finds 0 devices but you know there are devices You're on a corporate network with custom IP ranges Your router uses non-standard subnets
- Qt 6.0+ - Modern C++ GUI framework
- libpcap - Low-level packet capture
- nmap - Network discovery tool
- Linux/Windows - Cross-platform support
- Root/Admin - Required for packet capture
- This project is licensed under the MIT License - see the LICENSE file for details.
- This tool is designed for educational purposes and authorized network analysis only. Users must ensure compliance with all applicable laws and regulations.