sábado, janeiro 17, 2009

Instalação do Honeytrap 1.1.0 via svn e compilação no Debian 4 Testing

aptitude install libclamav-dev libtool libpcap0.8-dev build-essential clamav
svn co https://svn.carnivore.it/honeytrap/trunk honeytrap-svn
cd honeytrap-svn/
autoreconf -i
./configure --with-stream-mon=pcap --with-clamav --with-submit-nebula
make
make check
make install
mv /usr/local/etc/honeytrap /etc
mkdir /var/log/honeytrap
mkdir /var/log/honeytrap/responses
#alterações no arquivo /etc/honeytrap/honeytrap.conf
wget http://aaaleonardo.googlecode.com/files/honeytrap.conf -O /etc/honeytrap/honeytrap.conf
chmod -R 666 /var/log/honeytrap/honeytrap.log
chmod -R 777 /var/log/honeytrap/responses/
mkdir /var/lib/honeytrap
mkdir /var/lib/honeytrap/attacks
mkdir /var/lib/honeytrap/downloads
touch /var/lib/honeytrap/md5sum.sigs
touch /var/lib/honeytrap/spamsum.sigs
chmod -R 777 /var/lib/honeytrap/attacks/ /var/lib/honeytrap/downloads/
chmod -R 666 /var/lib/honeytrap/*.sigs
echo "/usr/local/sbin/honeytrap" > /root/init_honeytrap.sh
chmod +x /root/init_honeytrap.sh
vim /etc/rc.local #include manually 'sh /root/init_honeytrap.sh' one line above of "exit 0".
wget http://aaaleonardo.googlecode.com/files/honeytrap -O /etc/init.d/honeytrap
chmod +x /etc/init.d/honeytrap
honeytrap
# :)

Nenhum comentário: