おい, N・T(ニュータイプ)!
実はこのブログは某N・T氏に監視されています. 怖いです. 怖すぎて飯も旨いものしか喉を通りません. 彼は私のTwitter上の裏垢で知り合った古い仲で, 彼はフォローワーの個人情報をテキスト(MarkdownかSQLにしろよと何回も言いましたが)に保存して収集することが趣味というエリート特有の屈折した悪趣味を持つユーザーです.
彼は人格に問題があるものの, 頭のキレる少年で, 文才もありますし, そして下ネタのセンスがずば抜けているので, 個人的には結構好きです.
では, 何故彼が私の個人情報を含む当ブログを知っているかと言いますと, 遡ること2018(厳密には2017年だと思われる)年下旬, 当時私は, 「前進社長野支部をリア垢でフォローした」と裏垢に公開してしまい, これが悲劇の始まりでした. 当時前進社長野支部の公式アカウントはそれほど有名ではなく, フォローワーはせいぜい200人程度でした, しかしこのフォローワー群の中で 本名をフル開示したアカウントは私だけでした
このカキコを発見したN・T氏は水を得た魚の如く, 私に対する特定活動を開始しました. そしてものの見事に特定されてしまいました.
ここで平家物語から引用したいと思います.
おごれる人は久しからず、ただ春の夜の夢のごとし.
という訳で, 皆さんも個人情報管理はおろそかにしないよう心がけましょう.そして,
N・Tは個人情報収集をやめろ
焼き魚が食べたい
もう種類は問わないので焼き魚が食べたいです. というのも, 私の裏垢で親しくなった友人のツイキャス配信の中で, とあるユーザーが「チョコクッキーが食べたい」とコメントを行ったのに端を発します. そこで私の中で何故か「チョコレート」という物と「ポン酢」が動的リンクを起こし, 無性にポン酢を一気飲みしたくなりました. なお冷蔵庫の中にポン酢がなかったので, この衝動に端を発するバカ行動は未遂に終わりました. 危うく肝臓と腎臓をブレイクするところでした.
では何故焼き魚の話をしているかと言いますと, こちらは単純に「ポン酢」と「焼き魚」を連想した為です. 焼き魚の海に溺れたい. それが私の本望です.
ArchLabsでNmapをビルドする
一応形上は京コンの情報工学科に在籍しているので, せめてソースコードは読みたいものです. そしてせっかくなのでビルドします. パッケージ管理システムが広く普及した今どきに, アプリケーションのビルドなどという前時代的な事をする人は, リポジトリに目的のパッケージが含まれていない場合を除いてまず居ないと思いますが.
下準備
まずソースコードを GitHub のリポジトリから落としてきます.
┌ ~/github └> $ git clone https://github.com/nmap/nmap ]Cloning into 'nmap'... remote: Enumerating objects: 126, done. remote: Counting objects: 100% (126/126), done. remote: Compressing objects: 100% (88/88), done. remote: Total 73333 (delta 51), reused 65 (delta 38), pack-reused 73207 Receiving objects: 100% (73333/73333), 86.41 MiB | 4.16 MiB/s, done. Resolving deltas: 100% (56105/56105), done.
次に nmap
ディレクトリに移動します. ここで言う nmap
ディレクトリの位置は $HOME/github/nmap
です.
┌ ~/github └> $ cd nmap
ビルド
configureを使ってMakefileを作成していきます. 古典レベルのプログラムなのか, 途中でアスキーアートが出力される辺りに, 個人的にはハッカーの遊び心を感じました.
┌ ~/github/nmap (master=) └> $ ./configure checking whether NLS is requested... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for inline... inline checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking for __func__... yes checking for strip... /usr/bin/strip checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for stdint.h... (cached) yes checking for linux/rtnetlink.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for net/if.h... yes checking for library containing setsockopt... none required checking for library containing gethostbyname... none required checking if AF_INET6 IPPROTO_RAW sockets include the packet header... yes checking for a Python interpreter with version >= 2.4... python2 checking for python2... /usr/bin/python2 checking for python2 version... 2.7 checking for python2 platform... linux2 checking for python2 script directory... ${prefix}/lib/python2.7/site-packages checking for python2 extension module directory... ${exec_prefix}/lib/python2.7/site-packages checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for BIO_int_ctrl in -lcrypto... yes checking for SSL_new in -lssl... yes checking for EVP_PKEY_get1_EC_KEY in -lcrypto... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for pcap_create in -lpcap... yes checking sys/ioccom.h usability... no checking sys/ioccom.h presence... no checking for sys/ioccom.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking net/bpf.h usability... yes checking net/bpf.h presence... yes checking for net/bpf.h... yes checking if libpcap is suitable... checking whether pcap_get_selectable_fd is declared... yes yes checking for pcap_set_immediate_mode... yes checking pcre.h usability... yes checking pcre.h presence... yes checking for pcre.h... yes checking for pcre_version in -lpcre... yes checking pcre/pcre.h usability... no checking pcre/pcre.h presence... no checking for pcre/pcre.h... no checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for gzread in -lz... yes checking libssh2.h usability... yes checking libssh2.h presence... yes checking for libssh2.h... yes checking for libssh2_version in -lssh2... yes checking for library containing dlopen... -ldl checking lua5.3/lua.h usability... no checking lua5.3/lua.h presence... no checking for lua5.3/lua.h... no checking lua/5.3/lua.h usability... no checking lua/5.3/lua.h presence... no checking for lua/5.3/lua.h... no checking lua.h usability... yes checking lua.h presence... yes checking for lua.h... yes checking for library containing lua_isyieldable... -llua5.3 checking for lua version == 503... yes checking linear.h usability... no checking linear.h presence... no checking for linear.h... no no checking whether byte ordering is bigendian... no checking if struct in_addr is a wacky huge structure (some Sun boxes)... no checking if struct icmp exists... yes checking if struct ip exists... yes checking if struct ip has ip_sum member... yes checking for strerror... yes checking for type of 6th argument to recvfrom()... socklen_t checking for APR... yes checking svn_client.h usability... no checking svn_client.h presence... no checking for svn_client.h... no checking subversion-1/svn_client.h usability... yes checking subversion-1/svn_client.h presence... yes checking for subversion-1/svn_client.h... yes checking for svn_client_create_context in -lsvn_client-1... yes configure: creating ./config.status config.status: creating Makefile config.status: creating libnetutil/Makefile config.status: creating nmap_config.h === configuring in nping (/home/x280/github/nmap/nping) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for inline... inline checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether the compiler is gcc 4 or greater... yes checking for __func__... yes checking for strip... /usr/bin/strip checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for library containing setsockopt... none required checking for library containing gethostbyname... none required checking for library containing dlopen... -ldl checking for library containing nl_handle_alloc... no checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for BIO_int_ctrl in -lcrypto... yes checking for SSL_new in -lssl... yes checking for EVP_sha256... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for pcap_create in -lpcap... yes checking sys/ioccom.h usability... no checking sys/ioccom.h presence... no checking for sys/ioccom.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking net/bpf.h usability... yes checking net/bpf.h presence... yes checking for net/bpf.h... yes checking if libpcap is suitable... checking whether pcap_get_selectable_fd is declared... yes yes checking if sockaddr{} has sa_len member... no checking if sockaddr_in{} has sin_len member... no checking if sockaddr_in6{} has sin6_len member... no checking whether byte ordering is bigendian... no checking if struct in_addr is a wacky huge structure (some Sun boxes)... no checking if struct ip has ip_sum member... yes checking if function signal is accessible... yes checking for strerror... yes configure: creating ./config.status config.status: creating Makefile config.status: creating nping_config.h o o o o o o o o o o o o o o o 888b 888 o o o 8888b 888 o o o 88888b 888 o o o 888Y88b 888 o 888 Y88b888 o 888 Y88888 888 Y8888 888 Y888 --[NPING]-- Configuration complete. Type make (or gmake on some *BSD machines) to compile. === configuring in libdnet-stripped (/home/x280/github/nmap/libdnet-stripped) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for Python... checking for gethostbyname... yes checking for socket... yes checking for putmsg in -lstr... no checking for open_mib in -lnm... no checking for Check... no checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking sys/bufmod.h usability... no checking sys/bufmod.h presence... no checking for sys/bufmod.h... no checking sys/dlpi.h usability... no checking sys/dlpi.h presence... no checking for sys/dlpi.h... no checking sys/dlpihdr.h usability... no checking sys/dlpihdr.h presence... no checking for sys/dlpihdr.h... no checking sys/dlpi_ext.h usability... no checking sys/dlpi_ext.h presence... no checking for sys/dlpi_ext.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/mib.h usability... no checking sys/mib.h presence... no checking for sys/mib.h... no checking sys/ndd_var.h usability... no checking sys/ndd_var.h presence... no checking for sys/ndd_var.h... no checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking sys/sysctl.h usability... yes checking sys/sysctl.h presence... yes checking for sys/sysctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking net/bpf.h usability... yes checking net/bpf.h presence... yes checking for net/bpf.h... yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking net/if_var.h usability... no checking net/if_var.h presence... no checking for net/if_var.h... no checking net/if_arp.h usability... yes checking net/if_arp.h presence... yes checking for net/if_arp.h... yes checking net/if_dl.h usability... no checking net/if_dl.h presence... no checking for net/if_dl.h... no checking net/pfilt.h usability... no checking net/pfilt.h presence... no checking for net/pfilt.h... no checking net/pfvar.h usability... no checking net/pfvar.h presence... no checking for net/pfvar.h... no checking net/radix.h usability... no checking net/radix.h presence... no checking for net/radix.h... no checking net/raw.h usability... no checking net/raw.h presence... no checking for net/raw.h... no checking netinet/in_var.h usability... no checking netinet/in_var.h presence... no checking for netinet/in_var.h... no checking netinet/in6_var.h usability... no checking netinet/in6_var.h presence... no checking for netinet/in6_var.h... no checking net/if_tun.h usability... no checking net/if_tun.h presence... no checking for net/if_tun.h... no checking linux/if_tun.h usability... yes checking linux/if_tun.h presence... yes checking for linux/if_tun.h... yes checking netinet/ip_fw.h usability... no checking netinet/ip_fw.h presence... no checking for netinet/ip_fw.h... no checking linux/ip_fw.h usability... no checking linux/ip_fw.h presence... no checking for linux/ip_fw.h... no checking linux/ip_fwchains.h usability... no checking linux/ip_fwchains.h presence... no checking for linux/ip_fwchains.h... no checking linux/netfilter_ipv4/ipchains_core.h usability... no checking linux/netfilter_ipv4/ipchains_core.h presence... no checking for linux/netfilter_ipv4/ipchains_core.h... no checking ip_fil_compat.h usability... no checking ip_fil_compat.h presence... no checking for ip_fil_compat.h... no checking netinet/ip_fil_compat.h usability... no checking netinet/ip_fil_compat.h presence... no checking for netinet/ip_fil_compat.h... no checking ip_compat.h usability... no checking ip_compat.h presence... no checking for ip_compat.h... no checking netinet/ip_compat.h usability... no checking netinet/ip_compat.h presence... no checking for netinet/ip_compat.h... no checking ip_fil.h usability... no checking ip_fil.h presence... no checking for ip_fil.h... no checking netinet/ip_fil.h usability... no checking netinet/ip_fil.h presence... no checking for netinet/ip_fil.h... no checking hpsecurity.h usability... no checking hpsecurity.h presence... no checking for hpsecurity.h... no checking stropts.h usability... yes checking stropts.h presence... yes checking for stropts.h... yes checking for net/route.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for pid_t... yes checking for size_t... yes checking for sockaddr_in6 struct in <netinet/in.h>... yes checking for sa_len in sockaddr struct... no checking for arp_dev in arpreq struct... yes checking for rt_msghdr struct in <net/route.h>... no checking whether gcc needs -traditional... no checking for socklen_t... yes checking for working memcmp... yes checking for err... yes checking for strlcat... no checking for strlcpy... no checking for strsep... yes checking for Berkeley Packet Filter... no checking for Linux proc filesystem... yes checking whether ETH_P_ALL is declared... yes checking for Linux PF_PACKET sockets... yes checking for SNMP MIB2 STREAMS... no checking for route(7) STREAMS... no checking for arp(7) ioctls... yes checking for raw IP sockets ip_{len,off} host byte ordering... no checking for cooked raw IP sockets... no checking for getkerninfo... no configure: creating ./config.status config.status: creating Makefile config.status: creating dnet-config config.status: creating include/Makefile config.status: creating include/dnet/Makefile config.status: creating src/Makefile config.status: creating include/config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default commands === configuring in nbase (/home/x280/github/nmap/nbase) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for ranlib... ranlib checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for inline... inline checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for strings.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/types.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking for sys/stat.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking for inttypes.h... (cached) yes checking mach-o/dyld.h usability... no checking mach-o/dyld.h presence... no checking for mach-o/dyld.h... no checking whether time.h and sys/time.h may both be included... yes checking for sys/socket.h... (cached) yes checking for net/if.h... yes checking for __attribute__... yes checking if sockaddr{} has sa_len member... no checking whether byte ordering is bigendian... no checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for snprintf... yes checking for vsnprintf... yes checking for nanosleep... yes checking for strerror... yes checking for strcasestr... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for signal... yes checking for vsnprintf... (cached) yes checking for snprintf... (cached) yes checking for asprintf... yes checking for asnprintf... no checking for vasprintf... yes checking for vasnprintf... no checking for getopt... yes checking for getopt_long_only... yes checking for usleep... yes checking for gettimeofday... yes checking for sleep... yes checking for getopt_long_only... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for library containing getaddrinfo... none required checking for library containing gai_strerror... none required checking for library containing getnameinfo... none required checking for gai_strerror... yes checking for inet_pton... yes checking for inet_ntop... yes checking for library containing inet_ntop... none required checking for library containing inet_pton... none required checking for working getaddrinfo... yes checking for library containing inet_addr... none required checking for working getnameinfo... yes checking for sockaddr_in6... yes checking for sockaddr_storage... yes checking for AF_INET6 definition... yes checking for IPv6 support... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes checking for openssl/err.h... yes checking openssl/rand.h usability... yes checking openssl/rand.h presence... yes checking for openssl/rand.h... yes checking for BIO_int_ctrl in -lcrypto... yes checking for SSL_new in -lssl... yes checking for /proc/self/exe... yes configure: creating ./config.status config.status: creating Makefile config.status: creating nbase_config.h === configuring in nsock/src (/home/x280/github/nmap/nsock/src) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for pcap_set_immediate_mode... yes checking linux/version.h usability... yes checking linux/version.h presence... yes checking for linux/version.h... yes checking for Linux epoll(7) interface... yes checking for poll(2)... yes checking for kqueue... no checking for kevent... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for ranlib... ranlib checking for gethostent... yes checking for setsockopt... yes checking for nanosleep... yes checking for ANSI C header files... (cached) yes checking net/bpf.h usability... yes checking net/bpf.h presence... yes checking for net/bpf.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for linux/vm_sockets.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for BIO_int_ctrl in -lcrypto... yes checking for SSL_new in -lssl... yes checking for library containing dlopen... -ldl checking for SSL_set_tlsext_host_name... yes checking for DTLS_client_method... yes checking for SSL_set_alpn_protos... yes configure: creating ./config.status config.status: creating Makefile config.status: creating ../tests/Makefile config.status: creating ../include/nsock_config.h === configuring in ncat (/home/x280/github/nmap/ncat) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for strip... /usr/bin/strip checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking for linux/vm_sockets.h... yes checking whether stat file-mode macros are broken... no checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for dup2... yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for memset... yes checking for mkstemp... yes checking for select... yes checking for socket... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strtol... yes checking for library containing setsockopt... none required checking for library containing gethostbyname... none required checking for library containing dlopen... -ldl checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes checking for openssl/err.h... yes checking openssl/rand.h usability... yes checking openssl/rand.h presence... yes checking for openssl/rand.h... yes checking for BIO_int_ctrl in -lcrypto... yes checking for SSL_new in -lssl... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for pcap_create in -lpcap... yes checking sys/ioccom.h usability... no checking sys/ioccom.h presence... no checking for sys/ioccom.h... no checking for sys/time.h... (cached) yes checking net/bpf.h usability... yes checking net/bpf.h presence... yes checking for net/bpf.h... yes checking if libpcap is suitable... checking whether pcap_get_selectable_fd is declared... yes yes checking for odm_initialize in -lodm... no checking for odm_initialize in -lodm... (cached) no checking for _system_configuration in -lcfg... no checking lua5.3/lua.h usability... no checking lua5.3/lua.h presence... no checking for lua5.3/lua.h... no checking lua/5.3/lua.h usability... no checking lua/5.3/lua.h presence... no checking for lua/5.3/lua.h... no checking lua.h usability... yes checking lua.h presence... yes checking for lua.h... yes checking for library containing lua_isyieldable... -llua5.3 checking for lua version >= 503... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h . . \`-"'"-'/ } 6 6 { ==. Y ,== /^^^\ . / \ ) Ncat: A modern interpretation of classic Netcat ( )-( )/ -""---""--- / / Ncat \_/ ( ____ \_.=|____E Configuration complete. === configuring in nmap-update (/home/x280/github/nmap/nmap-update) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for strip... /usr/bin/strip checking for APR... yes checking for svn_client_create_context in -lsvn_client-1... yes checking for svn_handle_error2 in -lsvn_subr-1... yes checking for apr_pool_destroy in -lapr-1... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking svn_client.h usability... no checking svn_client.h presence... no checking for svn_client.h... no checking subversion-1/svn_client.h usability... yes checking subversion-1/svn_client.h presence... yes checking for subversion-1/svn_client.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h ( ) /\ _ ( \ | ( \ ( \.( ) _____ \ \ \ ` ` ) \ ( ___ / _ \ (_` \+ . x ( .\ \/ \____-----------/ (o) \_ - .- \+ ; ( O \____ (__ +- .( -'.- <. \_____________ ` \ / (_____ ._._: <_ - <- _- _ VVVVVVV VV V\ \/ . /./.+- . .- / +-- - . (--_AAAAAAA__A_/ | (__ ' /x / x _/ ( \______________//_ \_______ , x / ( ' . / . / \___' \ / / / _/ / + | \ / ' (__/ / \/ / \ NMAP IS A POWERFUL TOOL -- USE CAREFULLY AND RESPONSIBLY Configured with: ndiff zenmap nping openssl zlib libssh2 lua ncat nmap-update Configured without: localdirs Type make (or gmake on some *BSD machines) to compile.
個人的にはこのアスキーアートがツボです. これにより Makefile が作成されるので, make でインストールしていきます.
まずは make
でソースコードでコンパイルしていきます. 現段階ではインストールは成されていないので注意が必要です.
┌ ~/github/nmap (master=) └> $ make g++ -MM -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -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 scan_engine_connect.cc scan_engine_raw.cc scan_lists.cc service_scan.cc services.cc Target.cc NewTargets.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_lpeg.cc nse_openssl.cc nse_ssl_cert.cc nse_libssh2.cc nse_zlib.cc > makefile.dep Compiling libnetutil cd libnetutil && make make[1]: Entering directory '/home/x280/github/nmap/libnetutil' g++ -MM -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 ./netutil.cc ./PacketElement.cc ./NetworkLayerElement.cc ./ARPHeader.cc ./PacketElement.cc ./NetworkLayerElement.cc ./TransportLayerElement.cc ./ARPHeader.cc ./EthernetHeader.cc ./ICMPv4Header.cc ./ICMPv6Header.cc ./IPv4Header.cc ./IPv6Header.cc ./TCPHeader.cc ./UDPHeader.cc ./RawData.cc ./HopByHopHeader.cc ./DestOptsHeader.cc ./FragmentHeader.cc ./RoutingHeader.cc ./PacketParser.cc > makefile.dep g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing netutil.cc -o netutil.o In file included from /usr/include/string.h:494, from ../nbase/nbase.h:203, from netutil.cc:138: In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘dnet_collector_route_nfo* sysroutes_dnet_find_interfaces(dnet_collector_route_nfo*)’ at netutil.cc:1680:14, inlined from ‘sys_route* getsysroutes_dnet(int*, char*, size_t)’ at netutil.cc:1746:37, inlined from ‘sys_route* getsysroutes(int*, char*, size_t)’ at netutil.cc:1775:29: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 46 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘dnet_collector_route_nfo* sysroutes_dnet_find_interfaces(dnet_collector_route_nfo*)’ at netutil.cc:1681:14, inlined from ‘sys_route* getsysroutes_dnet(int*, char*, size_t)’ at netutil.cc:1746:37, inlined from ‘sys_route* getsysroutes(int*, char*, size_t)’ at netutil.cc:1775:29: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 46 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing PacketElement.cc -o PacketElement.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing NetworkLayerElement.cc -o NetworkLayerElement.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing TransportLayerElement.cc -o TransportLayerElement.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing ARPHeader.cc -o ARPHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing EthernetHeader.cc -o EthernetHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing ICMPv4Header.cc -o ICMPv4Header.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing ICMPv6Header.cc -o ICMPv6Header.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing IPv4Header.cc -o IPv4Header.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing IPv6Header.cc -o IPv6Header.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing TCPHeader.cc -o TCPHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing UDPHeader.cc -o UDPHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing RawData.cc -o RawData.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing HopByHopHeader.cc -o HopByHopHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing DestOptsHeader.cc -o DestOptsHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing FragmentHeader.cc -o FragmentHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing RoutingHeader.cc -o RoutingHeader.o g++ -c -I../liblinear -I../libdnet-stripped/include -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing PacketParser.cc -o PacketParser.o rm -f libnetutil.a ar cr libnetutil.a netutil.o PacketElement.o NetworkLayerElement.o TransportLayerElement.o ARPHeader.o EthernetHeader.o ICMPv4Header.o ICMPv6Header.o IPv4Header.o IPv6Header.o TCPHeader.o UDPHeader.o RawData.o HopByHopHeader.o DestOptsHeader.o FragmentHeader.o RoutingHeader.o PacketParser.o ranlib libnetutil.a make[1]: Leaving directory '/home/x280/github/nmap/libnetutil' Compiling liblinear make[1]: Entering directory '/home/x280/github/nmap/liblinear' g++ -g -O2 -Wall -Wno-uninitialized -c -o linear.o linear.cpp g++ -g -O2 -Wall -Wno-uninitialized -c -o tron.o tron.cpp cd blas; make OPTFLAGS='-g -O2 -Wall -Wno-uninitialized' CC='gcc'; make[2]: Entering directory '/home/x280/github/nmap/liblinear/blas' gcc -g -O2 -Wall -Wno-uninitialized -c dnrm2.c gcc -g -O2 -Wall -Wno-uninitialized -c daxpy.c gcc -g -O2 -Wall -Wno-uninitialized -c ddot.c gcc -g -O2 -Wall -Wno-uninitialized -c dscal.c ar rcv blas.a dnrm2.o daxpy.o ddot.o dscal.o a - dnrm2.o a - daxpy.o a - ddot.o a - dscal.o ranlib blas.a make[2]: Leaving directory '/home/x280/github/nmap/liblinear/blas' ar rcv liblinear.a linear.o tron.o blas/*.o a - linear.o a - tron.o a - blas/daxpy.o a - blas/ddot.o a - blas/dnrm2.o a - blas/dscal.o ranlib liblinear.a make[1]: Leaving directory '/home/x280/github/nmap/liblinear' Compiling libnbase cd nbase && make make[1]: Entering directory '/home/x280/github/nmap/nbase' gcc -g -O2 -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -c -o snprintf.o snprintf.c gcc -g -O2 -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -c -o nbase_str.o nbase_str.c gcc -g -O2 -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -c -o nbase_misc.o nbase_misc.c gcc -g -O2 -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -c -o nbase_memalloc.o nbase_memalloc.c gcc -g -O2 -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -c -o nbase_rnd.o nbase_rnd.c gcc -g -O2 -Wall -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -c -o nbase_addrset.o nbase_addrset.c rm -f libnbase.a ar cr libnbase.a snprintf.o nbase_str.o nbase_misc.o nbase_memalloc.o nbase_rnd.o nbase_addrset.o ranlib libnbase.a make[1]: Leaving directory '/home/x280/github/nmap/nbase' Compiling libnsock cd nsock/src && make make[1]: Entering directory '/home/x280/github/nmap/nsock/src' gcc -MM -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include error.c filespace.c gh_heap.c nsock_connect.c nsock_core.c nsock_iod.c nsock_read.c nsock_timers.c nsock_write.c nsock_ssl.c nsock_event.c nsock_pool.c netutils.c nsock_pcap.c nsock_engines.c engine_select.c engine_epoll.c engine_kqueue.c engine_poll.c nsock_proxy.c nsock_log.c proxy_http.c proxy_socks4.c > makefile.dep gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall error.c -o error.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall filespace.c -o filespace.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall gh_heap.c -o gh_heap.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_connect.c -o nsock_connect.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_core.c -o nsock_core.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_iod.c -o nsock_iod.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_read.c -o nsock_read.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_timers.c -o nsock_timers.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_write.c -o nsock_write.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_ssl.c -o nsock_ssl.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_event.c -o nsock_event.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_pool.c -o nsock_pool.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall netutils.c -o netutils.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_pcap.c -o nsock_pcap.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_engines.c -o nsock_engines.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall engine_select.c -o engine_select.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall engine_epoll.c -o engine_epoll.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall engine_kqueue.c -o engine_kqueue.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall engine_poll.c -o engine_poll.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_proxy.c -o nsock_proxy.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall nsock_log.c -o nsock_log.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall proxy_http.c -o proxy_http.o gcc -c -I/home/x280/github/nmap/nbase -DHAVE_CONFIG_H -DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -g -O2 -Wall proxy_socks4.c -o proxy_socks4.o rm -f libnsock.a ar cr libnsock.a error.o filespace.o gh_heap.o nsock_connect.o nsock_core.o nsock_iod.o nsock_read.o nsock_timers.o nsock_write.o nsock_ssl.o nsock_event.o nsock_pool.o netutils.o nsock_pcap.o nsock_engines.o engine_select.o engine_epoll.o engine_kqueue.o engine_poll.o nsock_proxy.o nsock_log.o proxy_http.o proxy_socks4.o ranlib libnsock.a make[1]: Leaving directory '/home/x280/github/nmap/nsock/src' Compiling libdnet make[1]: Entering directory '/home/x280/github/nmap/libdnet-stripped' Making all in include make[2]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include' make all-recursive make[3]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include' Making all in dnet make[4]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include/dnet' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include/dnet' make[4]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include' make[4]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include' make[3]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include' make[2]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include' Making all in src make[2]: Entering directory '/home/x280/github/nmap/libdnet-stripped/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o addr-util.lo addr-util.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c addr-util.c -o addr-util.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o addr.lo addr.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c addr.c -o addr.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o blob.lo blob.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c blob.c -o blob.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o ip-util.lo ip-util.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c ip-util.c -o ip-util.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o ip6.lo ip6.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c ip6.c -o ip6.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o rand.lo rand.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c rand.c -o rand.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o strlcat.lo strlcat.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c strlcat.c -o strlcat.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o strlcpy.lo strlcpy.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c strlcpy.c -o strlcpy.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o arp-ioctl.lo arp-ioctl.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c arp-ioctl.c -o arp-ioctl.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o eth-linux.lo eth-linux.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c eth-linux.c -o eth-linux.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o fw-none.lo fw-none.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c fw-none.c -o fw-none.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o intf.lo intf.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c intf.c -o intf.o intf.c: In function ‘intf_set’: intf.c:220:52: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 15 [-Wformat-truncation=] 220 | snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s:%d", | ^~ intf.c:220:48: note: directive argument in the range [1, 2147483647] 220 | snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s:%d", | ^~~~~~~ intf.c:220:3: note: ‘snprintf’ output between 3 and 27 bytes into a destination of size 16 220 | snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s:%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 221 | entry->intf_name, i + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~ intf.c:269:52: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 15 [-Wformat-truncation=] 269 | snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s:%d", | ^~ intf.c:269:48: note: directive argument in the range [1, 2147483647] 269 | snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s:%d", | ^~~~~~~ intf.c:269:3: note: ‘snprintf’ output between 3 and 27 bytes into a destination of size 16 269 | snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s:%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 270 | entry->intf_name, n++); | ~~~~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o ip.lo ip.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c ip.c -o ip.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o route-linux.lo route-linux.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c route-linux.c -o route-linux.o /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c -o tun-linux.lo tun-linux.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -Wall -c tun-linux.c -o tun-linux.o /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -version-info 1:1:0 -o libdnet.la -rpath /usr/local/lib addr-util.lo addr.lo blob.lo ip-util.lo ip6.lo rand.lo strlcat.lo strlcpy.lo arp-ioctl.lo eth-linux.lo fw-none.lo intf.lo ip.lo route-linux.lo tun-linux.lo libtool: link: ar cru .libs/libdnet.a addr-util.o addr.o blob.o ip-util.o ip6.o rand.o strlcat.o strlcpy.o arp-ioctl.o eth-linux.o fw-none.o intf.o ip.o route-linux.o tun-linux.o ar: `u' modifier ignored since `D' is the default (see `U') libtool: link: ranlib .libs/libdnet.a libtool: link: ( cd ".libs" && rm -f "libdnet.la" && ln -s "../libdnet.la" "libdnet.la" ) make[2]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/src' make[2]: Entering directory '/home/x280/github/nmap/libdnet-stripped' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/home/x280/github/nmap/libdnet-stripped' make[1]: Leaving directory '/home/x280/github/nmap/libdnet-stripped' g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing charpool.cc -o charpool.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing FingerPrintResults.cc -o FingerPrintResults.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing FPEngine.cc -o FPEngine.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing -g0 FPModel.cc -o FPModel.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing idle_scan.cc -o idle_scan.o In file included from /usr/include/string.h:494, from ./nbase/nbase.h:203, from libnetutil/PacketElement.h:137, from libnetutil/ApplicationLayerElement.h:136, from libnetutil/npacket.h:140, from idle_scan.cc:161: In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘void initialize_idleproxy(idle_proxy_info*, char*, Target*, const scan_lists*)’ at idle_scan.cc:621:12, inlined from ‘void idle_scan(Target*, u16*, int, char*, const scan_lists*)’ at idle_scan.cc:1441:25: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 255 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 255 equals destination size [-Wstringop-truncation] /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 255 equals destination size [-Wstringop-truncation] In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘void idle_scan(Target*, u16*, int, char*, const scan_lists*)’ at idle_scan.cc:1442:12: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 255 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing MACLookup.cc -o MACLookup.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nmap_dns.cc -o nmap_dns.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nmap_error.cc -o nmap_error.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nmap.cc -o nmap.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nmap_ftp.cc -o nmap_ftp.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing NmapOps.cc -o NmapOps.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing NmapOutputTable.cc -o NmapOutputTable.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nmap_tty.cc -o nmap_tty.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing osscan2.cc -o osscan2.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing osscan.cc -o osscan.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing output.cc -o output.o In file included from /usr/include/string.h:494, from ./nbase/nbase.h:203, from nmap.h:151, from output.cc:137: In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘void printosscanoutput(Target*)’ at output.cc:2019:12: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing payload.cc -o payload.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing portlist.cc -o portlist.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing portreasons.cc -o portreasons.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing protocols.cc -o protocols.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing scan_engine.cc -o scan_engine.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing scan_engine_connect.cc -o scan_engine_connect.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing scan_engine_raw.cc -o scan_engine_raw.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing scan_lists.cc -o scan_lists.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing service_scan.cc -o service_scan.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing services.cc -o services.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing NewTargets.cc -o NewTargets.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing TargetGroup.cc -o TargetGroup.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing Target.cc -o Target.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing targets.cc -o targets.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing tcpip.cc -o tcpip.o In file included from /usr/include/string.h:494, from ./nbase/nbase.h:203, from nmap.h:151, from tcpip.cc:134: In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘int readtcppacket(const u8*, int)’ at tcpip.cc:1244:10: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 16 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘int readudppacket(const u8*, int)’ at tcpip.cc:1320:10: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 16 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing timing.cc -o timing.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing traceroute.cc -o traceroute.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing utils.cc -o utils.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing xml.cc -o xml.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_main.cc -o nse_main.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_utility.cc -o nse_utility.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_nsock.cc -o nse_nsock.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_dnet.cc -o nse_dnet.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_fs.cc -o nse_fs.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_nmaplib.cc -o nse_nmaplib.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_debug.cc -o nse_debug.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_pcrelib.cc -o nse_pcrelib.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_lpeg.cc -o nse_lpeg.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_openssl.cc -o nse_openssl.o nse_openssl.cc: In function ‘int l_rand_pseudo_bytes(lua_State*)’: nse_openssl.cc:268:34: warning: ‘int RAND_pseudo_bytes(unsigned char*, int)’ is deprecated [-Wdeprecated-declarations] 268 | RAND_pseudo_bytes( result, len ); | ^ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bn.h:14, from nse_openssl.cc:9: /usr/include/openssl/rand.h:44:1: note: declared here 44 | DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) | ^~~~~~~~~~~~~~~~~~ nse_openssl.cc:268:34: warning: ‘int RAND_pseudo_bytes(unsigned char*, int)’ is deprecated [-Wdeprecated-declarations] 268 | RAND_pseudo_bytes( result, len ); | ^ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bn.h:14, from nse_openssl.cc:9: /usr/include/openssl/rand.h:44:1: note: declared here 44 | DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) | ^~~~~~~~~~~~~~~~~~ g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_ssl_cert.cc -o nse_ssl_cert.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_libssh2.cc -o nse_libssh2.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing nse_zlib.cc -o nse_zlib.o g++ -c -I./liblinear -I./libdnet-stripped/include -I./nbase -I./nsock/include -DHAVE_CONFIG_H -DNMAP_PLATFORM=\"x86_64-unknown-linux-gnu\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing main.cc -o main.o Compiling nmap rm -f nmap g++ -Wl,-E -Lnbase -Lnsock/src/ -o nmap charpool.o FingerPrintResults.o FPEngine.o FPModel.o idle_scan.o MACLookup.o nmap_dns.o nmap_error.o nmap.o nmap_ftp.o NmapOps.o NmapOutputTable.o nmap_tty.o osscan2.o osscan.o output.o payload.o portlist.o portreasons.o protocols.o scan_engine.o scan_engine_connect.o scan_engine_raw.o scan_lists.o service_scan.o services.o NewTargets.o TargetGroup.o Target.o targets.o tcpip.o timing.o traceroute.o utils.o xml.o nse_main.o nse_utility.o nse_nsock.o nse_dnet.o nse_fs.o nse_nmaplib.o nse_debug.o nse_pcrelib.o nse_lpeg.o nse_openssl.o nse_ssl_cert.o nse_libssh2.o nse_zlib.o main.o -lnsock -lnbase -lpcre -lpcap -lssh2 -lssl -lcrypto -lz libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a ./liblinear/liblinear.a -llua5.3 -ldl cd zenmap && /usr/bin/python2 setup.py build running build running build_py creating build creating build/lib creating build/lib/zenmapCore copying zenmapCore/StringPool.py -> build/lib/zenmapCore copying zenmapCore/NSEDocParser.py -> build/lib/zenmapCore copying zenmapCore/Version.py -> build/lib/zenmapCore copying zenmapCore/UmitConfigParser.py -> build/lib/zenmapCore copying zenmapCore/UmitOptionParser.py -> build/lib/zenmapCore copying zenmapCore/UmitDB.py -> build/lib/zenmapCore copying zenmapCore/I18N.py -> build/lib/zenmapCore copying zenmapCore/ScriptArgsParser.py -> build/lib/zenmapCore copying zenmapCore/NmapOptions.py -> build/lib/zenmapCore copying zenmapCore/Paths.py -> build/lib/zenmapCore copying zenmapCore/UmitLogging.py -> build/lib/zenmapCore copying zenmapCore/NmapParser.py -> build/lib/zenmapCore copying zenmapCore/BasePaths.py -> build/lib/zenmapCore copying zenmapCore/Diff.py -> build/lib/zenmapCore copying zenmapCore/DelayedObject.py -> build/lib/zenmapCore copying zenmapCore/UmitConf.py -> build/lib/zenmapCore copying zenmapCore/SearchResult.py -> build/lib/zenmapCore copying zenmapCore/Name.py -> build/lib/zenmapCore copying zenmapCore/NmapCommand.py -> build/lib/zenmapCore copying zenmapCore/__init__.py -> build/lib/zenmapCore copying zenmapCore/RecentScans.py -> build/lib/zenmapCore copying zenmapCore/TargetList.py -> build/lib/zenmapCore copying zenmapCore/ScriptMetadata.py -> build/lib/zenmapCore copying zenmapCore/NetworkInventory.py -> build/lib/zenmapCore creating build/lib/zenmapGUI copying zenmapGUI/NmapOutputProperties.py -> build/lib/zenmapGUI copying zenmapGUI/ScanInterface.py -> build/lib/zenmapGUI copying zenmapGUI/FilterBar.py -> build/lib/zenmapGUI copying zenmapGUI/ProfileHelp.py -> build/lib/zenmapGUI copying zenmapGUI/BugReport.py -> build/lib/zenmapGUI copying zenmapGUI/ScriptInterface.py -> build/lib/zenmapGUI copying zenmapGUI/ScanNmapOutputPage.py -> build/lib/zenmapGUI copying zenmapGUI/ScanHostsView.py -> build/lib/zenmapGUI copying zenmapGUI/ScanScanListPage.py -> build/lib/zenmapGUI copying zenmapGUI/App.py -> build/lib/zenmapGUI copying zenmapGUI/FileChoosers.py -> build/lib/zenmapGUI copying zenmapGUI/Print.py -> build/lib/zenmapGUI copying zenmapGUI/SearchGUI.py -> build/lib/zenmapGUI copying zenmapGUI/ProfileEditor.py -> build/lib/zenmapGUI copying zenmapGUI/ScansListStore.py -> build/lib/zenmapGUI copying zenmapGUI/NmapOutputViewer.py -> build/lib/zenmapGUI copying zenmapGUI/MainWindow.py -> build/lib/zenmapGUI copying zenmapGUI/TopologyPage.py -> build/lib/zenmapGUI copying zenmapGUI/ProfileCombo.py -> build/lib/zenmapGUI copying zenmapGUI/TargetCombo.py -> build/lib/zenmapGUI copying zenmapGUI/About.py -> build/lib/zenmapGUI copying zenmapGUI/ScanToolbar.py -> build/lib/zenmapGUI copying zenmapGUI/CrashReport.py -> build/lib/zenmapGUI copying zenmapGUI/OptionBuilder.py -> build/lib/zenmapGUI copying zenmapGUI/SearchWindow.py -> build/lib/zenmapGUI copying zenmapGUI/ScanHostDetailsPage.py -> build/lib/zenmapGUI copying zenmapGUI/DiffCompare.py -> build/lib/zenmapGUI copying zenmapGUI/ScanRunDetailsPage.py -> build/lib/zenmapGUI copying zenmapGUI/__init__.py -> build/lib/zenmapGUI copying zenmapGUI/Icons.py -> build/lib/zenmapGUI copying zenmapGUI/ScanOpenPortsPage.py -> build/lib/zenmapGUI creating build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/utils.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higbuttons.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higdialogs.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higentries.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higexpanders.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higprogressbars.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higboxes.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higwindows.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higscrollers.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higlabels.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/gtkutils.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higframe.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higlogindialogs.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/__init__.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higtextviewers.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/hignotebooks.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higspinner.py -> build/lib/zenmapGUI/higwidgets copying zenmapGUI/higwidgets/higtables.py -> build/lib/zenmapGUI/higwidgets creating build/lib/radialnet copying radialnet/__init__.py -> build/lib/radialnet creating build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/expanders.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/labels.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/comboboxes.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/textview.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/boxes.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/windows.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/frames.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/__init__.py -> build/lib/radialnet/bestwidgets copying radialnet/bestwidgets/buttons.py -> build/lib/radialnet/bestwidgets creating build/lib/radialnet/core copying radialnet/core/Interpolation.py -> build/lib/radialnet/core copying radialnet/core/ArgvHandle.py -> build/lib/radialnet/core copying radialnet/core/Info.py -> build/lib/radialnet/core copying radialnet/core/Coordinate.py -> build/lib/radialnet/core copying radialnet/core/__init__.py -> build/lib/radialnet/core copying radialnet/core/Graph.py -> build/lib/radialnet/core copying radialnet/core/XMLHandler.py -> build/lib/radialnet/core creating build/lib/radialnet/gui copying radialnet/gui/HostsViewer.py -> build/lib/radialnet/gui copying radialnet/gui/SaveDialog.py -> build/lib/radialnet/gui copying radialnet/gui/Image.py -> build/lib/radialnet/gui copying radialnet/gui/RadialNet.py -> build/lib/radialnet/gui copying radialnet/gui/Dialogs.py -> build/lib/radialnet/gui copying radialnet/gui/NodeNotebook.py -> build/lib/radialnet/gui copying radialnet/gui/ControlWidget.py -> build/lib/radialnet/gui copying radialnet/gui/__init__.py -> build/lib/radialnet/gui copying radialnet/gui/Application.py -> build/lib/radialnet/gui copying radialnet/gui/Toolbar.py -> build/lib/radialnet/gui copying radialnet/gui/NodeWindow.py -> build/lib/radialnet/gui copying radialnet/gui/LegendWindow.py -> build/lib/radialnet/gui creating build/lib/radialnet/util copying radialnet/util/drawing.py -> build/lib/radialnet/util copying radialnet/util/geometry.py -> build/lib/radialnet/util copying radialnet/util/integration.py -> build/lib/radialnet/util copying radialnet/util/misc.py -> build/lib/radialnet/util copying radialnet/util/__init__.py -> build/lib/radialnet/util running build_scripts creating build/scripts-2.7 copying and adjusting zenmap -> build/scripts-2.7 changing mode of build/scripts-2.7/zenmap from 644 to 755 cd ndiff && /usr/bin/python2 setup.py build running build running build_py creating build creating build/lib copying ndiff.py -> build/lib running build_scripts creating build/scripts-2.7 copying and adjusting scripts/ndiff -> build/scripts-2.7 changing mode of build/scripts-2.7/ndiff from 644 to 755 make[1]: Entering directory '/home/x280/github/nmap/nping' g++ -MM -I../libdnet-stripped/include -I../nbase -I../nsock/include ArgParser.cc common.cc common_modified.cc nping.cc NpingOps.cc utils.cc utils_net.cc output.cc stats.cc NpingTargets.cc NpingTarget.cc EchoHeader.cc EchoServer.cc EchoClient.cc ProbeMode.cc NEPContext.cc Crypto.cc > makefile.dep make nping make[2]: Entering directory '/home/x280/github/nmap/nping' g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 ArgParser.cc -o ArgParser.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 common.cc -o common.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 common_modified.cc -o common_modified.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 nping.cc -o nping.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 NpingOps.cc -o NpingOps.o NpingOps.cc: In member function ‘void NpingOps::validateOptions()’: NpingOps.cc:2434:50: warning: ‘char* pcap_lookupdev(char*)’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 2434 | if ( (dev = pcap_lookupdev(errbuf)) == NULL) | ^ In file included from /usr/include/pcap.h:43, from ../libnetutil/netutil.h:142, from nping.h:145, from NpingOps.cc:135: /usr/include/pcap/pcap.h:326:16: note: declared here 326 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ NpingOps.cc:2434:50: warning: ‘char* pcap_lookupdev(char*)’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 2434 | if ( (dev = pcap_lookupdev(errbuf)) == NULL) | ^ In file included from /usr/include/pcap.h:43, from ../libnetutil/netutil.h:142, from nping.h:145, from NpingOps.cc:135: /usr/include/pcap/pcap.h:326:16: note: declared here 326 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 utils.cc -o utils.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 utils_net.cc -o utils_net.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 output.cc -o output.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 stats.cc -o stats.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 NpingTargets.cc -o NpingTargets.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 NpingTarget.cc -o NpingTarget.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 EchoHeader.cc -o EchoHeader.o In file included from /usr/include/string.h:494, from ../nbase/nbase.h:203, from nping.h:137, from EchoHeader.h:136, from EchoHeader.cc:133: In function ‘char* strncpy(char*, const char*, size_t)’, inlined from ‘int EchoHeader::setErrorMessage(const char*)’ at EchoHeader.cc:916:12: /usr/include/bits/string_fortified.h:106:34: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 80 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 EchoServer.cc -o EchoServer.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 EchoClient.cc -o EchoClient.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 ProbeMode.cc -o ProbeMode.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 NEPContext.cc -o NEPContext.o g++ -c -I../libdnet-stripped/include -I../nbase -I../nsock/include -g -O2 -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DNPING_NAME=\"Nping\" -DNPING_URL=\"https://nmap.org/nping\" -DNPING_PLATFORM=\"x86_64-unknown-linux-gnu\" -D_FORTIFY_SOURCE=2 Crypto.cc -o Crypto.o Compiling nping rm -f nping g++ -o nping ArgParser.o common.o common_modified.o nping.o NpingOps.o utils.o utils_net.o output.o stats.o NpingTargets.o NpingTarget.o EchoHeader.o EchoServer.o EchoClient.o ProbeMode.o NEPContext.o Crypto.o ../nsock/src/libnsock.a ../nbase/libnbase.a ../libnetutil/libnetutil.a -lssl -lcrypto -lpcap ../libdnet-stripped/src/.libs/libdnet.a -ldl Nping compiled successfully! make[2]: Leaving directory '/home/x280/github/nmap/nping' make[1]: Leaving directory '/home/x280/github/nmap/nping' sed -e 's/^#[ \t]*define[ \t]\+NCAT_VERSION[ \t]\+\(".*"\)/#define NCAT_VERSION "7.70SVN"/' ncat/ncat.h > ncat/ncat.h.tmp mv -f ncat/ncat.h.tmp ncat/ncat.h cd ncat && make make[1]: Entering directory '/home/x280/github/nmap/ncat' gcc -MM -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase ncat_main.c ncat_connect.c ncat_core.c ncat_posix.c ncat_listen.c ncat_proxy.c ncat_ssl.c base64.c http.c util.c sys_wrap.c http_digest.c ncat_lua.c > makefile.dep gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_main.c -o ncat_main.o In file included from /usr/include/string.h:494, from /usr/include/sys/un.h:37, from ../nsock/include/nsock.h:82, from ncat_main.c:131: In function ‘strncpy’, inlined from ‘main’ at ncat_main.c:855:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘main’ at ncat_main.c:905:13: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_connect.c -o ncat_connect.o In file included from /usr/include/string.h:494, from /usr/include/sys/un.h:37, from ../nsock/include/nsock.h:82, from ncat_connect.c:131: In function ‘strncpy’, inlined from ‘ncat_connect’ at ncat_connect.c:1065:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_core.c -o ncat_core.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_posix.c -o ncat_posix.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_listen.c -o ncat_listen.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_proxy.c -o ncat_proxy.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_ssl.c -o ncat_ssl.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c base64.c -o base64.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c http.c -o http.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c util.c -o util.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c sys_wrap.c -o sys_wrap.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c http_digest.c -o http_digest.o gcc -DHAVE_CONFIG_H -DNCAT_DATADIR="\"/usr/local/share/ncat\"" -D_FORTIFY_SOURCE=2 -I. -I.. -I../nsock/include/ -I../nbase -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DHAVE_LUA=1 -I../liblua -g -O2 -Wall -c ncat_lua.c -o ncat_lua.o gcc -o ncat -g -O2 -Wall ncat_main.o ncat_connect.o ncat_core.o ncat_posix.o ncat_listen.o ncat_proxy.o ncat_ssl.o base64.o http.o util.o sys_wrap.o http_digest.o ncat_lua.o ../nsock/src/libnsock.a ../nbase/libnbase.a -lssl -lcrypto -lpcap -lm -llua5.3 -ldl make[1]: Leaving directory '/home/x280/github/nmap/ncat' sed -e 's/^#[ \t]*define[ \t]\+DEFAULT_CHANNEL[ \t]\+\(".*"\)/#define DEFAULT_CHANNEL "7.70"/' nmap-update/default_channel.h > nmap-update/default_channel.h.tmp mv -f nmap-update/default_channel.h.tmp nmap-update/default_channel.h cd nmap-update && make make[1]: Entering directory '/home/x280/github/nmap/nmap-update' gcc -MM -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I../nbase nmap-update.c svn_auth.c > makefile.dep gcc -c -o nmap-update.o -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I../nbase -g -O2 -Wall -Wno-deprecated-declarations nmap-update.c gcc -c -o svn_auth.o -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -I../nbase -g -O2 -Wall -Wno-deprecated-declarations svn_auth.c gcc -o nmap-update -g -O2 -Wall -Wno-deprecated-declarations nmap-update.o svn_auth.o ../nbase/libnbase.a -lsvn_client-1 -lsvn_subr-1 -lapr-1 -L/usr/lib -lapr-1 ../nbase/libnbase.a make[1]: Leaving directory '/home/x280/github/nmap/nmap-update'
sudo make install
でコンパイルしたプログラムをインストールします. root 権限が必要です.
┌ ~/github/nmap (master *=) └> $ sudo make install [sudo] password for x280: Compiling libnetutil cd libnetutil && make make[1]: Entering directory '/home/x280/github/nmap/libnetutil' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/x280/github/nmap/libnetutil' Compiling liblinear make[1]: Entering directory '/home/x280/github/nmap/liblinear' make[1]: 'liblinear.a' is up to date. make[1]: Leaving directory '/home/x280/github/nmap/liblinear' Compiling libnbase cd nbase && make make[1]: Entering directory '/home/x280/github/nmap/nbase' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/x280/github/nmap/nbase' Compiling libnsock cd nsock/src && make make[1]: Entering directory '/home/x280/github/nmap/nsock/src' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/x280/github/nmap/nsock/src' Compiling libdnet make[1]: Entering directory '/home/x280/github/nmap/libdnet-stripped' Making all in include make[2]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include' make all-recursive make[3]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include' Making all in dnet make[4]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include/dnet' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include/dnet' make[4]: Entering directory '/home/x280/github/nmap/libdnet-stripped/include' make[4]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include' make[3]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include' make[2]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/include' Making all in src make[2]: Entering directory '/home/x280/github/nmap/libdnet-stripped/src' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/x280/github/nmap/libdnet-stripped/src' make[2]: Entering directory '/home/x280/github/nmap/libdnet-stripped' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/home/x280/github/nmap/libdnet-stripped' make[1]: Leaving directory '/home/x280/github/nmap/libdnet-stripped' Compiling nmap rm -f nmap g++ -Wl,-E -Lnbase -Lnsock/src/ -o nmap charpool.o FingerPrintResults.o FPEngine.o FPModel.o idle_scan.o MACLookup.o nmap_dns.o nmap_error.o nmap.o nmap_ftp.o NmapOps.o NmapOutputTable.o nmap_tty.o osscan2.o osscan.o output.o payload.o portlist.o portreasons.o protocols.o scan_engine.o scan_engine_connect.o scan_engine_raw.o scan_lists.o service_scan.o services.o NewTargets.o TargetGroup.o Target.o targets.o tcpip.o timing.o traceroute.o utils.o xml.o nse_main.o nse_utility.o nse_nsock.o nse_dnet.o nse_fs.o nse_nmaplib.o nse_debug.o nse_pcrelib.o nse_lpeg.o nse_openssl.o nse_ssl_cert.o nse_libssh2.o nse_zlib.o main.o -lnsock -lnbase -lpcre -lpcap -lssh2 -lssl -lcrypto -lz libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a ./liblinear/liblinear.a -llua5.3 -ldl /usr/bin/install -c -d /usr/local/bin /usr/local/share/man/man1 /usr/local/share/nmap /usr/bin/install -c -c -m 755 nmap /usr/local/bin/nmap /usr/bin/strip -x /usr/local/bin/nmap /usr/bin/install -c -c -m 644 docs/nmap.1 /usr/local/share/man/man1/ if [ "yes" = "yes" ]; then \ for ll in de es fr hr hu it ja pl pt_BR pt_PT ro ru sk zh; do \ /usr/bin/install -c -d /usr/local/share/man/$ll/man1; \ /usr/bin/install -c -c -m 644 docs/man-xlate/nmap-$ll.1 /usr/local/share/man/$ll/man1/nmap.1; \ done; \ fi /usr/bin/install -c -c -m 644 docs/nmap.xsl /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 docs/nmap.dtd /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 nmap-services /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 nmap-payloads /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 nmap-rpc /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 nmap-os-db /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 nmap-service-probes /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 nmap-protocols /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 nmap-mac-prefixes /usr/local/share/nmap/ /usr/bin/install -c -d /usr/local/share/nmap/scripts /usr/bin/install -c -d /usr/local/share/nmap/nselib (cd /usr/local/share/nmap/scripts && rm -f anonFTP.nse ASN.nse asn-to-prefix.nse brutePOP3.nse bruteTelnet.nse chargenTest.nse daytimeTest.nse dns-safe-recursion-port.nse dns-safe-recursion-txid.nse dns-test-open-recursion.nse domino-enum-passwords.nse echoTest.nse ftpbounce.nse HTTPAuth.nse HTTP_open_proxy.nse HTTPpasswd.nse HTTPtrace.nse iax2Detect.nse ircServerInfo.nse ircZombieTest.nse mac-geolocation.nse MSSQLm.nse MySQLinfo.nse netbios-smb-os-discovery.nse nfs-acls.nse nfs-dirlist.nse popcapa.nse PPTPversion.nse promiscuous.nse RealVNC_auth_bypass.nse ripeQuery.nse robots.nse showHTMLTitle.nse showHTTPVersion.nse showOwner.nse showSMTPVersion.nse showSSHVersion.nse skype_v2-version.nse smb-enumdomains.nse smb-enumsessions.nse smb-enumshares.nse smb-enumusers.nse smb-serverstats.nse smb-systeminfo.nse SMTPcommands.nse SMTP_openrelay_test.nse smtp-check-vulns.nse SNMPcommunitybrute.nse SNMPsysdescr.nse SQLInject.nse SSH-hostkey.nse SSHv1-support.nse SSLv2-support.nse strangeSMTPport.nse UPnP-info.nse xamppDefaultPass.nse zoneTrans.nse db2-info.nse db2-brute.nse html-title.nse robots.txt.nse xmpp.nse sql-injection.nse http-robtex-reverse-ip.nse http-vuln-zimbra-lfi.nse http-vuln-0-day-lfi-zimbra.nse whois.nse db2-discover.nse http-crossdomainxml.nse http-email-harvest.nse http-wordpress-plugins.nse http-wp-plugins.nse smb-check-vulns.nse) /usr/bin/install -c -c -m 644 nse_main.lua /usr/local/share/nmap/ /usr/bin/install -c -c -m 644 scripts/script.db scripts/*.nse /usr/local/share/nmap/scripts /usr/bin/install -c -c -m 644 nselib/*.lua nselib/*.luadoc /usr/local/share/nmap/nselib /usr/bin/install -c -d /usr/local/share/nmap/nselib/data for f in `find nselib/data -name .svn -prune -o -type d -print`; do \ /usr/bin/install -c -d /usr/local/share/nmap/$f; \ done for f in `find nselib/data -name .svn -prune -o -type f -print`; do \ /usr/bin/install -c -c -m 644 $f /usr/local/share/nmap/$f; \ done /usr/bin/install -c -d /usr/local/bin /usr/local/share/man/man1 cd zenmap && /usr/bin/python2 setup.py --quiet install --prefix "/usr/local" --force /usr/bin/install -c -c -m 644 docs/zenmap.1 /usr/local/share/man/man1/ if [ ! -f /usr/local/bin/nmapfe -o -L /usr/local/bin/nmapfe ]; then \ ln -sf zenmap /usr/local/bin/nmapfe; \ fi ln -sf zenmap /usr/local/bin/xnmap cd ncat && make make[1]: Entering directory '/home/x280/github/nmap/ncat' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/x280/github/nmap/ncat' cd ncat && make install make[1]: Entering directory '/home/x280/github/nmap/ncat' Installing Ncat ../shtool mkdir -f -p -m 755 /usr/local/bin /usr/local/share/man/man1 /usr/bin/install -c -c -m 755 ncat /usr/local/bin/ncat /usr/bin/strip -x /usr/local/bin/ncat if [ -n "certs/ca-bundle.crt" ]; then \ ../shtool mkdir -f -p -m 755 /usr/local/share/ncat; \ /usr/bin/install -c -c -m 644 certs/ca-bundle.crt /usr/local/share/ncat/; \ fi /usr/bin/install -c -c -m 644 docs/ncat.1 /usr/local/share/man/man1/ncat.1 make[1]: Leaving directory '/home/x280/github/nmap/ncat' cd nmap-update && make make[1]: Entering directory '/home/x280/github/nmap/nmap-update' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/x280/github/nmap/nmap-update' cd nmap-update && make install make[1]: Entering directory '/home/x280/github/nmap/nmap-update' ../shtool mkdir -f -p -m 755 /usr/local/bin /usr/local/share/man/man1 /usr/bin/install -c -c -m 755 nmap-update /usr/local/bin /usr/bin/strip -x /usr/local/bin/nmap-update /usr/bin/install -c -c -m 644 ../docs/nmap-update.1 /usr/local/share/man/man1/ make[1]: Leaving directory '/home/x280/github/nmap/nmap-update' cd ndiff && /usr/bin/python2 setup.py install --prefix "/usr/local" running install running build running build_py running build_scripts running install_lib copying build/lib/ndiff.py -> /usr/local/lib/python2.7/site-packages byte-compiling /usr/local/lib/python2.7/site-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 '/home/x280/github/nmap/nping' make nping make[2]: Entering directory '/home/x280/github/nmap/nping' make[2]: 'nping' is up to date. make[2]: Leaving directory '/home/x280/github/nmap/nping' make[1]: Leaving directory '/home/x280/github/nmap/nping' cd nping && make install make[1]: Entering directory '/home/x280/github/nmap/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 '/home/x280/github/nmap/nping' NMAP SUCCESSFULLY INSTALLED
nmap -v
を走らせてインストールされたかを確かめます. このようなテキストが出力されればインストール完了です.
┌ ~ └> $ nmap -v Starting Nmap 7.70SVN ( https://nmap.org ) at 2019-07-18 18:07 JST Read data files from: /usr/local/bin/../share/nmap WARNING: No targets were specified, so 0 hosts scanned. Nmap done: 0 IP addresses (0 hosts up) scanned in 0.05 seconds
Nmap はターゲットのOSタイプの割り出しから, ポートスキャナ独特のアクセスを隠蔽する形で, ネットワーク管理者に感知されにくようステルススキャン機能等を実現し得るオフェンシブなプログラムです. ですので悪用は厳禁です.
注文していたThinkPad X280が届きました
今朝に届きました。外面、梱包共に問題なし。キーボードも押しやすくしっかり押した感があるのでタイプミスも防げそうです。OSは同然ながらWindows10が入っており、早速目玉のWSL(openSUSE)を使ってみました。使ってみたところ普通に使いやすいLinuxで細部までエミュレートしている印象を受けました。
そして長らくWindows系を使ってこなかったせいか一番驚いたのは、ChromeのUIが大幅に変わっていたことです。訳あって卒業した高校に出向いてPCを触ったときからUIが変わったことは知っていましたが、やっぱり変わっていました。はい。なお現時点ではLinux用Chromeに大きな変更はないようです。
剛性についてですが、IBMが製造していた時よりかは低い印象を受けました。と言ってもIBM製のThinkPadを触ったのが14年ぐらい前で、当時4~5歳だっただけに記憶が曖昧なので何とも言えませんが。
Fedora28にインストールしたmozcで変換候補を選んでいたらフリーズ
紙に書いて無くしたら困るので、とりあえずブログにメモ。一昨日入れたmozcで変換候補を選んでいる内にフリーズ。インプットメソッドをkkcに戻す。しかし、ひらがなとカタカナしか打てなくなってしまったので取り敢えず再起動、復帰後キーを確かめてみるとキーボードレイアウトがUSになっていたので
sudo vim /usr/share/ibus/component/kkc.xml
を実行し、20行目のdefaultを
<layout>default</layout>
jpに書き換え再起動。再起動後は正常に昨日した。
<layout>jp</layout>
Fedora28上で動作するFirefox61の動作がおかしい
昨日openSUSEからFedora28に乗り換えてみて、確かに以前よりかは落ち着いたけど、その特性上やっぱり不安定だった。まずは一つの画像を見てもらいたい。
これはFedora28上で動かしているFirefox28でTwitterに画像のアップロードを試みた際のスクリーンショットで、まず色々とおかしい。なぜ/
homeや/bootがファイルブラウザからアンマウントできるようになっているのかも釈然としないし、ダウンロードディレクトリ以外に移動できないのもわからない。
とりあえずFirefoxのリフレッシュと.mozilla以下の設定ファイルの削除も行ったものの改善の気配はなかった。うーんどうしたものか。しばらくはChromeとVivaldiを使うことになりそう。