Welcome to http://snippy.sourceforge.net/
update 14/01/2002
|
All trademarks
and copyrights on this page are properties of their respective owners.
Forum comments are owned by the poster. The rest is copyright ©1999-2000
VA Linux Systems, Inc. |
SNIPPY a network analyzer in ethereal's style, written in python
by paolo bastiancich
email: b.paolo@tiscalinet.it
download: http://sourceforge.net/projects/snippy
install pylibpcap-02.tar.gz
libpcap must be installed and would be if tcpdump is present
1) i change the Makefile in this way (using Mandrake8.1)
2) copied pcap.h and pcap-namedb.h in /usr/include/pcap
SWIG=/usr/bin/swig
C=gcc -g
PYTHON_INCLUDES=-I/usr/include/python2.1
PCAP_INCLUDES=-I/usr/include
OBJS= pcap.o exception.o
error.o
all: pcapcmodule.so
pcapcmodule.so:
pcap_wrap.o $(OBJS)
$(CC) -shared pcap_wrap.o $(OBJS) -L../libpcap -lpcap -o $@
#
$(CC) -shared pcap_wrap.o $(OBJS) -lpcap -o $@
.c.o:
$(CC) $(CFLAGS) $(PYTHON_INCLUDES) $(PCAP_INCLUDES) -c $<
pcap_wrap.c: pcap.i
$(SWIG) -python -shadow pcap.i
clean:
rm -f *.o *.pyc pcap_wrap.* pcapcmodule.so core
3) do: 'make -f ./Makefile'
inside the directory where you unzip pylibpcap-0.2.tar.gz and you will
have the shared library :
pcapcmodule.so
4) copy it and pcap.py inside snippy's directory
install xstructmodule
1) unzip xstruct.tar.gz
it need mymath.h and Python.h
i found mymath.h from Python1.5 version
so (i use pyton2.1) i copied it in /usr/include/python-2.1
so, from inside the directory where a unzip xtruct.tar.gz,
type:
2) gcc xstructmodule.c -g
-I/usr/include/python2.1 -fpic -shared -o xstuct.so
3) now you have to copy the xstruct.so shared library in
snippy's directory
start snippy
loggin as root
type inside snippy directory: python . /main.py
or make main.pl executable and type : . /main.py