Friday, May 1, 2009

Nepenthes 0.2.2 build for source

This is how i install nepenthes 0.2.2 on newly installed Ubuntu 8.04. And the current ubuntu repository only got v0.2.0. So i build from source.


1. (Error) /usr/bin/ld: crt1.o: No such file: No such file or directory
Solution $sudo apt-get install libc6-dev

2. (Error) configure: error: libcurl curl-config was not found in PATH

Solution $sudo apt-get install libcurl4-gnutls-dev libcurl4-openssl-dev

3. (Error) configure: error: libpcre is missing - install it please)

Solution $sudo apt-get install libpcre3-dev

4. (Error) configure: error: libmagic is missing - install it please
Solution $sudo apt-get install libmagic-dev

5. (Error) configure: error: at least one dnsresolver has to work
Solution $sudo apt-get install libadns1-dev

In short

$ sudo aptp-get install libc6-dev libcurl4-gnutls-dev libcurl4-openssl-dev libpcre3-dev libmagic-dev libadns1-dev libtool g++

$sudo make

$sudo make install

Without any configuration, I straight away

gento@localhost:/opt/nepenthes/bin$ sudo ./nepenthes -u nepenthes

Nepenthes Version 0.2.2
Compiled on Linux/x86 at Apr 30 2009 19:32:57 with g++ 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Started on gento running Linux/i686 release 2.6.24-19-generic

[ info mgr ] Loaded Nepenthes Configuration from "/opt/nepenthes/etc/nepenthes/nepenthes.conf".
[ info sc module ] Loading signatures from file var/cache/nepenthes/signatures/
[ debug info fixme ] Logfile var/log/nepenthes.log ownership is now 1001:0 (nepenthes:root)
[ info mgr ] The process 24754 was given capabilities = cap_setgid,cap_setuid,cap_net_bind_service,cap_net_admin,cap_net_raw,cap_sys_chroot+eip

For testing, i browse my Mozilla Firefox with http://localhost

[ warn dia ] Unknown IIS 351 bytes State 2
[ warn dia ] Unknown IIS 351 bytes State 2
[ warn dia ] Unknown IIS 332 bytes State 2

Bingo! Next, get exposed to external network! Adrelina level up. Wooot.

No comments:

Post a Comment