dkindlund / honeyclient

MITRE HoneyClient Project
http://www.honeyclient.org
GNU General Public License v2.0
8 stars 4 forks source link

Add Support For Programmatic Network Packet Capture #151

Open dkindlund opened 14 years ago

dkindlund commented 14 years ago

Rather than performing out-of-band bulk packet captures, configure the Manager to automatically capture relevant network traffic from each clone, in order to detect when a compromise occurs. This data should be in PCAP format and should be eventually provided to the Drone web service, referenced by the fingerprint generated.

Net::Packet::Dump looks promising, but currently has a hardcoded snaplen of 1514. I'm trying to contact the author to make this snaplen configurable (65535).

Here's a possible (untested) patch to Dump.pm (Net::Packet::Dump v3.25) {{{

!patch

--- Dump.pm 2006-11-23 17:52:16.000000000 -0500 +++ Dump.pm-new.pm 2008-03-24 16:57:11.137005061 -0400 @@ -35,6 +35,7 @@ noLayerWipe mode keepTimestamp

+=item B + +If you want to capture a different snaplen, set it a number. Default to 1514. + =item B

This attribute tells which datalink type is used for .pcap files. @@ -829,6 +836,8 @@

promisc: 0

+snaplen: 1514 + timeoutOnNext: 3

isRunning: 0 }}}