From b476797753b764bf99bc18ea8b0fcb5568649565 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 19 Jul 2010 20:26:36 +0000 Subject: [PATCH] Use in examples to highlight the user's typed text. --- docs/nmap-install.xml | 56 +++++++++++++++++++++---------------------- docs/refguide.xml | 5 ++-- docs/scripting.xml | 2 +- 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/docs/nmap-install.xml b/docs/nmap-install.xml index f7fbbe0ef..df9ce442a 100644 --- a/docs/nmap-install.xml +++ b/docs/nmap-install.xml @@ -32,7 +32,7 @@ you should see output similar to that in -felix~>nmap --version +felix~> nmap --version Nmap version 4.76 ( http://nmap.org ) felix~> @@ -139,7 +139,7 @@ linkend="ex-check-gpg-keys" xrefstyle="select: label nopage"/>. Verifying the Nmap and Fyodor PGP Key Fingerprints -flog~> gpg --fingerprint nmap fyodor +flog~> gpg --fingerprint nmap fyodor pub 1024D/33599B5F 2005-04-24 Key fingerprint = BB61 D057 C0D7 DCEF E730 996C 1AF6 EC50 3359 9B5F uid Fyodor <fyodor@insecure.org> @@ -168,7 +168,7 @@ linkend="ex-gpg-verify-nmap-release-bad" xrefstyle="select: label nopage"/>. Verifying PGP key fingerprints (Successful) -flog> gpg --verify nmap-4.76.tar.bz2.asc +flog> gpg --verify nmap-4.76.tar.bz2.asc gpg: Signature made Fri 12 Sep 2008 02:03:59 AM PDT using DSA key ID 6B9355D0 gpg: Good signature from "Nmap Project Signing Key (http://www.insecure.org/)" @@ -176,7 +176,7 @@ gpg: Good signature from "Nmap Project Signing Key (http://www.insecure.org/)" Detecting a bogus file -flog> gpg --verify nmap-4.76.tar.bz2.asc nmap-4.76-hacked.tar.bz2 +flog> gpg --verify nmap-4.76.tar.bz2.asc nmap-4.76-hacked.tar.bz2 gpg: Signature made Fri 12 Sep 2008 02:03:59 AM PDT using DSA key ID 6B9355D0 gpg: BAD signature from "Nmap Project Signing Key (http://www.insecure.org/)" @@ -202,7 +202,7 @@ linkend="ex-digest-file-verify" />. A typical Nmap release digest file -flog> cat sigs/nmap-4.76.tgz.digest.txt +flog> cat sigs/nmap-4.76.tgz.digest.txt nmap-4.76.tgz: MD5 = 54 B5 C9 E3 F4 4C 1A DD E1 7D F6 81 70 EB 7C FE nmap-4.76.tgz: SHA1 = 4374 CF9C A882 2C28 5DE9 D00E 8F67 06D0 BCFA A403 nmap-4.76.tgz: RMD160 = AE7B 80EF 4CE6 DBAA 6E65 76F9 CA38 4A22 3B89 BD3A @@ -220,12 +220,12 @@ nmap-4.76.tgz: SHA512 = 826CD89F 7930A765 C9FE9B41 1DAFD113 2C883857 2A3A9503 Verifying Nmap hashes -flog> gpg --print-md sha256 nmap-4.76.tgz +flog> gpg --print-md sha256 nmap-4.76.tgz nmap-4.76.tgz: 0E960E05 53EB7647 0C8517A0 038092A3 969DB65C BE23C03F D6DAEF1A CDCC9658 -flog> sha1sum nmap-4.76.tgz +flog> sha1sum nmap-4.76.tgz 4374cf9ca8822c285de9d00e8f6706d0bcfaa403 nmap-4.76.tgz -flog> md5sum nmap-4.76.tgz +flog> md5sum nmap-4.76.tgz 54b5c9e3f44c1adde17df68170eb7cfe nmap-4.76.tgz @@ -324,9 +324,9 @@ in the decompression command. Successful configuration screen - ./configure -checking build system type... x86_64-unknown-linux-gnu + +flog~/nmap> ./configure +Installing Nmap from binary RPMs -# rpm -vhU http://nmap.org/dist/nmap-4.68-1.i386.rpm +# rpm -vhU http://nmap.org/dist/nmap-4.68-1.i386.rpm Retrieving http://nmap.org/dist/nmap-4.68-1.i386.rpm Preparing... ########################################### [100%] 1:nmap ########################################### [100%] -# rpm -vhU http://nmap.org/dist/zenmap-4.68-1.noarch.rpm +# rpm -vhU http://nmap.org/dist/zenmap-4.68-1.noarch.rpm Retrieving http://nmap.org/dist/zenmap-4.68-1.noarch.rpm Preparing... ########################################### [100%] 1:zenmap ########################################### [100%] @@ -571,13 +571,13 @@ Preparing... ########################################### [100%] Building and installing Nmap from source RPMs -> rpmbuild --rebuild http://nmap.org/dist/nmap-4.68-1.src.rpm +> rpmbuild --rebuild http://nmap.org/dist/nmap-4.68-1.src.rpm [ hundreds of lines cut ] Wrote: /home/fyodor/rpmdir/RPMS/i386/nmap-4.68-1.i386.rpm [ cut ] -> su +> su Password: -# rpm -vhU /home/fyodor/rpmdir/RPMS/i386/nmap-4.68-1.i386.rpm +# rpm -vhU /home/fyodor/rpmdir/RPMS/i386/nmap-4.68-1.i386.rpm Preparing... ########################################### [100%] 1:nmap ########################################### [100%] # @@ -626,9 +626,9 @@ linkend="ex-nmap-install-from-yum" xrefstyle="select: label nopage" />. You can packages in the repository. Installing Nmap from a system Yum repository - +flog~# yum install nmap + Running transaction check @@ -925,10 +925,10 @@ on the computer (user should be a member of the administratorsStart -> Run and type cmd<enter>. Opening a Cygwin window (if you installed it) by clicking on the Cygwin icon on the desktop works too, although the necessary commands differ slightly from those shown here. Change to the directory you installed Nmap into. Assuming you used the default path, type the following commands. - -c: -cd "\Program Files\Nmap" - + +c: +cd "\Program Files\Nmap" + Execute nmap.exe. is a screen shot showing a simple example. @@ -1319,11 +1319,11 @@ uninstall. Alternatively, you can simply delete all the Nmap-related files. If you used a default source install of Nmap versions 4.50 or higher, the following commands remove it. -# cd /usr/local -# rm -f bin/nmap bin/nmapfe bin/xnmap -# rm -f man/man1/nmap.1 man/man1/zenmap.1 -# rm -rf share/nmap -# ./bin/uninstall_zenmap +# cd /usr/local +# rm -f bin/nmap bin/nmapfe bin/xnmap +# rm -f man/man1/nmap.1 man/man1/zenmap.1 +# rm -rf share/nmap +# ./bin/uninstall_zenmap You may have to adjust the above commands slightly if you specified or other install-path option when diff --git a/docs/refguide.xml b/docs/refguide.xml index 97143c65b..483e8775b 100644 --- a/docs/refguide.xml +++ b/docs/refguide.xml @@ -96,7 +96,7 @@ A representative Nmap scan example of -# nmap -A -T4 scanme.nmap.org +# nmap -A -T4 scanme.nmap.org Nmap scan report for scanme.nmap.org (64.13.134.52) Host is up (0.045s latency). @@ -179,7 +179,8 @@ between 192.168.10.0 (binary: 11000000 10101000 00001010 00000000) and 192.168.10.255 (binary: 11000000 10101000 00001010 11111111), -inclusive. 192.168.10.40/24 would scan exactly the same targets. Given +inclusive. +192.168.10.40/24 would scan exactly the same targets. Given that the host scanme.nmap.orgscanme.nmap.org is at the IP address 64.13.134.52, the specification diff --git a/docs/scripting.xml b/docs/scripting.xml index 9877fdd57..6499a6c03 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -150,7 +150,7 @@ The reference manual is also Typical NSE outputexample of -# nmap -sC -p22,111,139 -T4 localhost +# nmap -sC -p22,111,139 -T4 localhost Starting Nmap ( http://nmap.org ) Nmap scan report for flog (127.0.0.1)