Debian - nmap - компиляция другой версии
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Debian 7 - nmap - компиляция другой версии
В примере - Debian 7.9:
# cat /etc/debian_version 7.9
#cd /root/ # wget -c https://nmap.org/dist/nmap-6.47.tar.bz2 # bzip2 -cd nmap-* | tar xvf - # cd nmap-* # ./configure # make && make install Makefile:434: makefile.dep: No such file or directory g++ -MM -I./liblinear -I./liblua -I./libdnet-stripped/include -I./libpcre -I./libpcap -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\" -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 charpool.cc FingerPrintResults.cc FPEngine.cc FPModel.cc idle_scan.cc MACLookup.cc main.cc nmap.cc nmap_dns.cc nmap_error.cc nmap_ftp.cc NmapOps.cc NmapOutputTable.cc nmap_tty.cc osscan2.cc osscan.cc output.cc payload.cc portlist.cc portreasons.cc protocols.cc scan_engine.cc service_scan.cc services.cc Target.cc TargetGroup.cc targets.cc tcpip.cc timing.cc traceroute.cc utils.cc xml.cc nse_main.cc nse_utility.cc nse_nsock.cc nse_dnet.cc nse_fs.cc nse_nmaplib.cc nse_debug.cc nse_pcrelib.cc nse_binlib.cc nse_bit.cc > makefile.dep /bin/sh: 1: g++: not found make: *** [makefile.dep] Error 127
# make && make install
Концовка:
copying build/lib.linux-x86_64-2.7/ndiff.py -> /usr/local/lib/python2.7/dist-packages byte-compiling /usr/local/lib/python2.7/dist-packages/ndiff.py to ndiff.pyc running install_scripts copying build/scripts-2.7/ndiff -> /usr/local/bin changing mode of /usr/local/bin/ndiff to 755 running install_data copying docs/ndiff.1 -> /usr/local/share/man/man1 running install_egg_info make[1]: Entering directory `/root/nmap-6.47/nping' /usr/bin/install -c -d /usr/local/bin /usr/local/share/man/man1 /usr/bin/install -c -c -m 755 nping /usr/local/bin/nping /usr/bin/strip -x /usr/local/bin/nping /usr/bin/install -c -c -m 644 docs/nping.1 /usr/local/share/man/man1/ NPING SUCCESSFULLY INSTALLED make[1]: Leaving directory `/root/nmap-6.47/nping' NMAP SUCCESSFULLY INSTALLED
Проверяем:
# nmap -sS google.com
Исходники nmap: