FreeBSDでportsからnmapをインストールする方法について説明します。
nmapはポートスキャナーです。
% whereis nmap
nmap: /usr/ports/security/nmap
% cd /usr/ports/security/nmap
% sudo make install clean
===> Installing for nmap-4.68
===> Generating temporary packing list
===> Checking if security/nmap already installed
./shtool mkdir -f -p -m 755 /usr/local/bin /usr/local/man/man1 /usr/local/share/nmap
./shtool install -c -m 755 nmap /usr/local/bin/nmap
/usr/bin/strip -x /usr/local/bin/nmap
./shtool install -c -m 644 docs/nmap.1 /usr/local/man/man1/
./shtool install -c -m 644 docs/nmap.xsl /usr/local/share/nmap/
./shtool install -c -m 644 docs/nmap.dtd /usr/local/share/nmap/
./shtool install -c -m 644 nmap-services /usr/local/share/nmap/
./shtool install -c -m 644 nmap-rpc /usr/local/share/nmap/
./shtool install -c -m 644 nmap-os-db /usr/local/share/nmap/
./shtool install -c -m 644 nmap-service-probes /usr/local/share/nmap/
./shtool install -c -m 644 nmap-protocols /usr/local/share/nmap/
./shtool install -c -m 644 nmap-mac-prefixes /usr/local/share/nmap/
./shtool mkdir -f -p -m 755 /usr/local/share/nmap/scripts
cp -f scripts/script.db scripts/*.nse /usr/local/share/nmap/scripts
./shtool mkdir -f -p -m 755 /usr/local/share/nmap/nselib
cp -f nselib/*.lua /usr/local/share/nmap/nselib
./shtool mkdir -f -p -m 755 /usr/local/libexec/nmap/nselib-bin
cp -f nselib-bin/*.so /usr/local/libexec/nmap/nselib-bin
NMAP SUCCESSFULLY INSTALLED
===> Compressing manual pages for nmap-4.68
===> Registering installation for nmap-4.68
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/bin/nmap
If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.
For more information, and contact details about the security
status of this software, see the following webpage:
http://nmap.org/
===> Cleaning for libdnet-1.11_2
===> Cleaning for lua-5.1.3_3
===> Cleaning for nmap-4.68
2008年9月4日木曜日
nmapをインストールする
登録:
コメントの投稿 (Atom)
0 コメント:
コメントを投稿