PCAP-Programming WhiteHatSchool PCAP Programming Source Code. Compile Command ⚙️ gcc -o Packet_Sniffer Packet_Sniffer.c -lpcap Execute File Change Interface Name. (Reference ifconfig result) execute file with admin permission. sudo ./Packet_Sniffer