Network Monitor with sniff&scapy

I wrote a network monitor that can queries port protocol and only when its UDP or TCP code can show port number . Also code checks IP addresses in each packet. If the source IP is my computer, it is outgoing (OUT). If the destination IP is my computer, it is incoming (IN). If neither, it is OTHER

--THE CODE AND OUTPUT ->>

--CPU USSAGE TEST --> I have test it for 2 pc (i5 and i7)

İ 7 WHAT ?

I now his is shouldent be that much , its becouse the monitor that connected the pc , its huge . So CPU cant reach it :/

i 5

Okey this is what has to be normally its can be reach %40 but stabilizied %20....


Revision #1
Created 2026-03-21 17:36:31 UTC by Warlock
Updated 2026-03-25 16:42:59 UTC by Warlock