An interactive or offline packet analyzer with libpcap for Windows and Linux.
Analysys if rtp, stun, rtsp, mqtt, websocket, stun, rtp, rtcp and more to come.
Writes out to a json as a format.
1.Using make:
make Makefile
-
For windows - open
prjsolution file -
Linux - Using
qtcreatorfile or invokeqmakein the root folder of the project.
This program is made with the help of libpcap https://github.com/the-tcpdump-group/libpcap
please read the license agreement of PCAP.
-
If you get linker errors, install
libDbusfor your distro and addLIBS+= -lpthread -ldbus-1to.profile. Also you may recompilelibpcapwith `./configure --enable-dbus=no' -
For
Win32install follow the guide to installNCAPfrom here: https://nmap.org/npcap/#download -
There is a custom script
imake.pythat can build the project without qtcreator or cmake. Callpython3 imake.pyin a console then copy / paste the output and callg++orclangwith the pasted output. It will output thelibnetinexe. Also callpython3 imake.py -dif you want a debug version
- Show devices:
libnetin -l - Analyze a capture
libnetin -p mycapture.pcap - Live mode
sudo libnetin -l <Mydevice>
- Note: when in live mode, press
qorQto stop capturing.
STUNRTPRTCPUDPTL-t38(not fully implemented, artifacts)MQTT- support for facebook [pending].WebSocket- support and demasking (needed forMQTT)RTSP- partial
WhatsappTelegramFacebook(chat & VoIP)Skype
- In order to use live mode you need administrator rules for windows or
sudofor Linux
1.Win32 build can't resolve StunRFC, possible pragma pack(x) needed.
ResolveTCPparsingCreate an appendablejsonbuilder- Resolve
TCPoptions MQTTis buggy, some offset is not good or the crash comes fromWebSocket
pvs-studio.com/en/docs/warnings/ 1 err Help: The documentation for all analyzer warnings is available here: https://pvs-studio.com/en/docs/warnings/.
/home/ilian/gitprojects/libnetin/types.h 33 warn V730 Not all members of a class are initialized inside the constructor. Consider inspecting: value.