Xem mẫu

Nmap 375 Directory and file names: —prefix=PREFIX PREFIX —exec-prefix=EPREFIX EPREFIX —bindir=DIR —sbindir=DIR [EPREFIX/sbin] —libexecdir=DIR —datadir=DIR DIR —sysconfdir=DIR [PREFIX/etc] —sharedstatedir=DIR DIR —localstatedir=DIR [PREFIX/var] —libdir=DIR —includedir=DIR —oldincludedir=DIR [/usr/include] —infodir=DIR —mandir=DIR —srcdir=DIR install architecture-independent files in [/usr/local] install architecture-dependent files in [same as prefix] user executables in DIR [EPREFIX/bin] system admin executables in DIR program executables in DIR [EPREFIX/libexec] read-only architecture-independent data in [PREFIX/share] read-only single-machine data in DIR modifiable architecture-independent data in [PREFIX/com] modifiable single-machine data in DIR object code libraries in DIR [EPREFIX/lib] C header files in DIR [PREFIX/include] C header files for non-gcc in DIR info documentation in DIR [PREFIX/info] man documentation in DIR [PREFIX/man] find the sources in DIR [configure dir or ..] —program-prefix=PREFIX prepend PREFIX to installed program names —program-suffix=SUFFIX append SUFFIX to installed program names —program-transform-name=PROGRAM Host type: —build=BUILD —host=HOST —target=TARGET Features and packages: —disable-FEATURE FEATURE=no) —enable-FEATURE[=ARG] —with-PACKAGE[=ARG] —without-PACKAGE —x-includes=DIR —x-libraries=DIR run sed PROGRAM on installed program names configure for building on BUILD [BUILD=HOST] configure for HOST [guessed] configure for TARGET [TARGET=HOST] do not include FEATURE (same as —enable- include FEATURE [ARG=yes] use PACKAGE [ARG=yes] do not use PACKAGE (same as —with-PACKAGE=no) X include files are in DIR X library files are in DIR —enable and —with options recognized: —with-libpcap[=DIR] —with-libnbase=DIR Look for pcap include/libs in DIR Look for nbase include/libs in DIR [root@NIX1 nmap-2.54BETA34]# Complete this step by issuing the configure command, shown here: 376 Chapter 12 # ./configure [root@NIX1 nmap-2.54BETA34]# ./configure loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc L/usr/local/lib) works... yes checking whether the C compiler (gcc -I/usr/local/include - -I/usr/local/include - L/usr/local/lib) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking host system type... i686-pc-linux-gnu checking for main in -lm... (cached) yes checking for gethostent... (cached) yes checking for setsockopt... (cached) yes checking for nanosleep... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for pcap.h... (cached) no checking for ANSI C header files... (cached) yes checking for string.h... (cached) yes checking for getopt.h... (cached) yes checking for strings.h... (cached) yes checking for memory.h... (cached) yes checking for sys/param.h... (cached) yes checking for sys/sockio.h... (cached) no checking for netinet/if_ether.h... (cached) yes checking for bstring.h... (cached) no checking for sys/time.h... (cached) yes checking for pwd.h... (cached) yes checking for unistd.h... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes ———————————— Snipped for brevity ———————————— checking for gcc... (cached) gcc checking whether the C compiler (gcc checking whether the C compiler (gcc ) works... yes ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gtk-config... (cached) /usr/bin/gtk-config checking for GTK - version >= 1.0.0... yes creating ./config.status creating Makefile [root@NIX1 nmap-2.54BETA34]# NOTE You’ll need root privileges to complete the installation. If you’ve logged in with a user account, simply issue the su command and enter the root pass-word to grant these privileges. Nmap 377 Step 6. Build and install the package by issuing the make command, shown here: # make all [root@NIX1 nmap-2.54BETA34]# make all Compiling libpcap make[1]: Entering directory ’/home/nmap-2.54BETA34/libpcap-possiblymodified’ gcc -I. -O2 -DHAVE_CONFIG_H -c ./pcap-linux.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./pcap.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./inet.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./gencode.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./optimize.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./nametoaddr.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./etherent.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./savefile.c rm -f bpf_filter.c ln -s ./bpf/net/bpf_filter.c bpf_filter.c gcc -I. -O2 -DHAVE_CONFIG_H -c bpf_filter.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./bpf_image.c gcc -I. -O2 -DHAVE_CONFIG_H -c ./bpf_dump.c gcc -I. -O2 -DHAVE_CONFIG_H -c scanner.c gcc -I. -O2 -DHAVE_CONFIG_H -Dyylval=pcap_lval -c grammar.c sed -e ‘s/.*/char pcap_version[] = “&”;/’ ./VERSION > version.c gcc -I. -O2 -DHAVE_CONFIG_H -c version.c ar rc libpcap.a pcap-linux.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o scanner.o grammar.o version.o ranlib libpcap.a make[1]: Leaving directory ’/home/nmap-2.54BETA34/libpcap-possiblymodified’ Compiling libnbase cd nbase; make make[1]: Entering directory ’/home/nmap-2.54BETA34/nbase’ gcc -I/usr/local/include -Wall -g -DHAVE_CONFIG_H - DNCRACK_VERSION=\”\” -DHAVE_CONFIG_H=1 -c -o snprintf.o snprintf.c gcc -I/usr/local/include -Wall -g -DHAVE_CONFIG_H -DNCRACK_VERSION=\”\” -DHAVE_CONFIG_H=1 -c -o nbase_str.o nbase_str.c gcc -I/usr/local/include -Wall -g -DHAVE_CONFIG_H -DNCRACK_VERSION=\”\” -DHAVE_CONFIG_H=1 -c -o nbase_misc.o nbase_misc.c Compiling libnbase rm -f libnbase.a ar cr libnbase.a snprintf.o nbase_str.o nbase_misc.o ranlib libnbase.a make[1]: Leaving directory ’/home/nmap-2.54BETA34/nbase’ gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o main.o main.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” 378 Chapter 12 -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o nmap.o nmap.c nmap.c: In function ’parse_scanflags’: nmap.c:69: warning: implicit declaration of function ’strcasestr’ gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o targets.o targets.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o tcpip.o tcpip.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o nmap_error.o nmap_error.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o utils.o utils.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o idle_scan.o idle_scan.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o osscan.o osscan.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o output.o output.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o scan_engine.o scan_engine.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o timing.o timing.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase Nmap 379 -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o charpool.o charpool.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o services.o services.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o protocols.o protocols.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o nmap_rpc.o nmap_rpc.c gcc -g -I/usr/local/include -Wall -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\”2.54BETA34\” -DNMAP_NAME=\”nmap\” -DNMAP_URL=\”www.insecure.org/nmap/\” -DNMAP_PLATFORM=\”i686-pc-linux-gnu\” -DNMAPDATADIR=\”/usr/local/share/nmap\” -Ilibpcap-possiblymodified -c -o portlist.o portlist.c Compiling nmap rm -f nmap gcc -Llibpcap-possiblymodified -L/usr/local/lib -Lnbase -o nmap main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o output.o scan_engine.o timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o -lm -lnbase -lpcap FAILURES HERE ARE OK — THEY JUST MEAN YOU CANNOT USE nmapfe cd nmapfe; test -f Makefile && make VERSION=0.2.54BETA34 STATIC=; make[1]: Entering directory ’/home/nmap-2.54BETA34/nmapfe’ gcc -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -I../nbase -DVERSION=\”0.2.54BETA34\” -DHAVE_CONFIG_H=1 -I. -c nmapfe.c gcc -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -I../nbase - DVERSION=\”0.2.54BETA34\” -DHAVE_CONFIG_H=1 -I. -c nmapfe_sig.c gcc -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -I../nbase -DVERSION=\”0.2.54BETA34\” -DHAVE_CONFIG_H=1 -I. -c nmapfe_error.c gcc -g -O2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -I../nbase -DVERSION=\”0.2.54BETA34\” -DHAVE_CONFIG_H=1 -I. -L../nbase -o nmapfe nmapfe.o nmapfe_sig.o nmapfe_error.o -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lnbase make[1]: Leaving directory ’/home/nmap-2.54BETA34/nmapfe’ END OF SECTION WHERE FAILURES ARE OK [root@NIX1 nmap-2.54BETA34]# ... - tailieumienphi.vn
nguon tai.lieu . vn