What do we have in this session?
The WinPcap and Windows XP Pro SP2
For Windows users installing Snort binaries the only requirements is WinPcap. Installing the base Snort system requires two components: the WinPcap packet capture library, and the Snort IDS program itself. In the following sections we configure and install both WinPcap and Snort.
WinPcap (Windows Packet Capture Library) is a packet-capture driver. Functionally, this means that WinPcap grabs packets from the network wire and pitches them to Snort. WinPcap is a Windows version of libpcap, which is used for running Snort with Linux. The WinPcap driver performs the following functions for Snort:
WinPcap Download and Installation
The installation and configuration of WinPcap is very easy and require no intervention by you. Firstly, download the latest installation executable file from download winpcap. The current version is 4.1.1 and you may want to do the MD5 or SHA1 checksum.
Double-click the executable installation file and follow the instructions on the screen. WinPcap installs itself where it belongs.
--------------------------------------------------------
------------------------------------------------------------------
The installation applet will automatically detect the operating system and install the correct drivers. From the last screenshot, the WinPcap-based applications are now ready to work. To remove WinPcap from the system, go to the Control Panel, click on "Add/Remove programs" and then select "WinPcap" or launch the Uninstall wizard from the Start menu as shown in the following screenshot.
Verifying WinPcap Installation
To verify whether WinPcap is currently running on my Win2K/XP/2k3 machine, click on the Start button and then on run. Type msinfo32 (or Start > All Programs > Accessories > System Tools > System Information menu) and the System Information panel should show up. Choose Software Environment, then System Drivers. The entry NPF should appear there. If you launched a WinPcap application previously, the state should be running. Remember that WinPcap should have been run at least one time in order to appear in this list.
Snort calls WinPcap directly on any of the functions to grab and analyze network packets. If the driver did not install properly, Snort does not function. Please refer to The WAN/PPP packet capture for capturing traffic on different network connection, mainly the dial-up line, USB and wireless.
Windows Network Monitor Capture Utility (Netcap)
It is advisable for you to install the Windows Network Monitor Capture Utility (Netcap). For Win XP Pro SP2, when we type Netcap at the Windows command prompt, the driver was installed automatically, then we can see the WAN (PPP/SLIP) interface which is normally invisible.
You may also find that WinDump tool will also be very useful. WinDump tool is the Windows version of the TcpDump found in any Linux/Unix system.
Barnyard: Alternative Snort Output System
Barnyard is an output system for Snort. Snort creates a special binary output format called "unified". Barnyard reads this file, and then resends the data to a database back-end. Unlike the database output plugin, Barnyard manages the sending of events to the database and stores them when the database temporarily cannot accept connections. You can download Barnyard here. However there are no binary for Windows system. So, forget it, it is just an optional for Snort and we think that Snort’s Unified should be good enough which supported by BASE (we will install BASE later on).