Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RawCap sniffer results in empty pcap file

So... I'm attempting to use RawCap to capture traffic to localhost When I run rawcap, it reports packets in the cmd prompt - but the dump file is always empty.

Any ideas (I've tried running with admin privs)

like image 571
iasksillyquestions Avatar asked Jan 17 '13 20:01

iasksillyquestions


2 Answers

You should terminate RawCap with ctrl+c and not by just closing the window.

for more information here: http://www.netresec.com/?page=Blog&month=2011-10&post=Automatic-Flushing-in-RawCap

like image 73
geniaz1 Avatar answered Oct 12 '22 19:10

geniaz1


Set the -f flag to flush the data to the file after each package.

rawcap -f 127.0.0.1 my_loopback.pcap

Then as geniaz1 said, stop capture with ctrl + c

like image 34
Shaun Luttin Avatar answered Oct 12 '22 18:10

Shaun Luttin