Saturday, February 3, 2007

install nmap di FreeBSD

download versi terbaru dari: http://insecure.org/nmap/download.html
parameter configure gue:
./configure \
--prefix=/usr/local \
--with-localdirs \
--without-nmapfe \
--with-openssl=/usr/local \
--with-libpcap=/usr/local \
--with-libpcre=/usr/local
ingat, sesuaikan dgn sistem anda, karena ga pake X, jadi pake ``--without-nmapfe''. terus OpenSSL sama libpcap installnya custom dari source code, dan punya PCRE. so tolongdiperhatikan sistem masing2 gimana.
buat parameter yg lain di ./configure... silahkan cek dgn
./configure --help
nah sekarang sebelum ``gmake'' ato ``make'', edit file: ``output.cc''cari baris:
#ifdef WIN32
apcopy = ap;
#else
va_copy(apcopy, ap); /* Needed in case we need to so a second vnsprintf */
#endif
ubah jadi:
apcopy = ap;
soalnya jika tidak nanti kita akan ketemu error ini:
output.cc: In function `void log_vwrite(int, const char *, char *)':
output.cc:748: implicit declaration of function `int va_copy(...)'gmake: *** [output.o] Error 1;)
beres, sekarang jalankan
``gmake clean all'' terus ``gmake installclean''...
test :
``nmap -sT -vv ''
good luck

No comments: