Quote:
|
Originally Posted by chandan820 I have read in a book that sniffing is done when a lan card or a nic is set to the promiscous mode...
How exactly is this mode set....
i mean, in the socket programming... how to set this thing call promiscous mode...??
some one plz help me out.....
regards,
gc. |
Use the tcpdump method. With the following syntaxes:
tcpdump -s 1600 (take the whole packet size all protocols included) -w filename.pcap -i eth0
This will dump anything into the .pcap file, you can read this file by typeing: string filename.pcap, this will read 'all' readable strings out of the pcap file.