This doc describes the installation of Scapy under OpenBSD 3.8 You need to have python installed : # pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/python-2.4.1p0.tgz Then, you'll need a recent libpcap : download it from http://www.tcpdump.org/release/libpcap-0.9.4.tar.gz, then : $ tar zxf libpcap-0.9.4.tar.gz $ cd libpcap-0.9.4 $ ./configure $ make $ gcc -Wl,-soname,libpcap.so -shared -f -o libpcap.so.0.9.4 *.o # make install # install -c -m 644 ./libpcap.so.0.9.4 /usr/local/lib/libpcap.so.0.9.4 # ln -s /usr/local/lib/libpcap.so.0.9.4 /usr/lib/libpcap.so.9.4 $ cd .. Now, python-libpcap : download it from http://prdownloads.sourceforge.net/pylibpcap/pylibpcap-0.5.1.tar.gz, then : # pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/swig-1.3.24p0 $ tar zxf pylibpcap-0.5.1.tar.gz $ cd pylibpcap-0.5.1 $ mv setup.py setup.py.orig $ sed 's#include_dirs = \[ \]#include_dirs = \[ "/usr/local/include" \]#' setup.py.orig > setup.py $ python ./setup.py build # python ./setup.py install $ cd .. Last mandatory lib : libdnet. Get it via cvs : $ cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/libdnet login $ cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/libdnet co libdnet $ cd libdnet $ ./configure $ make # make install $ cd python $ python ./setup.py build # python ./setup.py install $ cd ../.. Not required, but might be usefull : - crypto lib for python : # pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/py-crypto-2.0 # ln -s ../../python2.3/site-packages/Crypto /usr/local/lib/python2.4/site-packages/ - gnuplot (you need to install this one using the ports, since there is no packages) & py-gnuplot $ cd /usr/ports/math/gnuplot $ make # make install # pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386/py-gnuplot-1.7.tgz # ln -s ../../python2.3/site-packages/Gnuplot /usr/local/lib/python2.4/site-packages # ln -s ../../python2.3/site-packages/Numeric /usr/local/lib/python2.4/site-packages # ln -s ../../python2.3/site-packages/Numeric.pth /usr/local/lib/python2.4/site-packages - /etc/ethertypes : # wget http://pierre.droids-corp.org/scapy/ethertypes -O /etc/ethertypes - PyX : Download it from : http://prdownloads.sourceforge.net/pyx/PyX-0.8.1.tar.gz, then : $ cd PyX-0.8.1 $ python ./setup.py build # python ./setup.py install Now, download the "scapy.py" file and install it : $ wget http://www.secdev.org/projects/scapy/files/scapy.py # install -c -m 755 ./scapy.py /usr/local/lib/python2.4/site-packages/ # ln -s /usr/local/lib/python2.4/site-packages/scapy.py /usr/local/bin/scapy Scapy should run correctly now. You might have a look here: http://pierre.droids-corp.org/scapy/ for some extra-not-yet-implemented features.