Today I am going to share the knowledge of capturing network packets in local system i.e. localhost.
Using RawCap utility, you can capture the loopback adapter packets which are our localhost packets.
ProcedureDownload the RawCap.exe from Netresec website url
Once you download it
Open command prompt with administrator privileges
You have the following options while running the RawCap.exe
-f <-> Flush each packet without buffering->
RawCap.exe 127.0.0.1 dump.pcap
Note: Ctrl + C to stop the capturing
RawCap.exe -c 1000 127.0.0.1 dump.pcap
After 1000 packets, the capturing will stop
Please send your feedback and comments to firstname.lastname@example.org