diff --git a/docs/refguide.xml b/docs/refguide.xml
index 3f5d563f0..faad53518 100644
--- a/docs/refguide.xml
+++ b/docs/refguide.xml
@@ -120,7 +120,7 @@ Nmap finished: 2 IP addresses (2 hosts up) scanned in 88.392 seconds
The newest version of Nmap can be obtained from . The newest version of the man
-page is available from .
diff --git a/docs/scripting.xml b/docs/scripting.xml
index 1ecf1deeb..79a991fdf 100644
--- a/docs/scripting.xml
+++ b/docs/scripting.xml
@@ -52,14 +52,7 @@
When a new vulnerability is discovered, you often want
to scan your networks quickly to identify vulnerable systems
before the bad guys do. While Nmap isn't a
- comprehensive
-
-vulnerability scanner,
-
-vulnerability scanner,
-
-
- we plan to distribute scripts for some very severe or common vulnerabilities and misconfigurations.
+ comprehensive vulnerability scanner, we plan to distribute scripts for some very severe or common vulnerabilities and misconfigurations.
@@ -376,10 +369,7 @@ extension does not have to be nse.
Nmap scripts are stored in a scripts
subdirectory of the Nmap data directory
-(see )
-(see the
-option)
-by default. Scripts are indexed in a database stored in
+(see ) by default. Scripts are indexed in a database stored in
scripts/script.db. The database lists all of the
scripts in each category. A single script may be in several
categories.
@@ -623,8 +613,8 @@ that.
Lua was designed with a small feature set to ease embedding. So
we have added extensions to support more specialized
- functionality. These basically are
- Lua modules written either in Lua itself, or where needed in C. This
+ functionality. These are basically
+ Lua modules written either in Lua itself, or in C. This
NSE library is the third part of the NSE.
@@ -680,7 +670,7 @@ that.
modules are compiled and installed along with
Nmap. They have their own directory, nselib, which
is installed in the configured datadir. Scripts need only
-
+ require the default modules in order to use them.
The default modules are described in the following sections.
@@ -1789,9 +1779,7 @@ if(s) code_to_be_done_on_match end
product, version, extrainfo, hostname, ostype, devicetype
- These five variables are described in
- .
- the versioninfo section of our version scanning documentation.
+ These five variables are described in .
@@ -1803,8 +1791,7 @@ if(s) code_to_be_done_on_match end
service_fpThe service fingerprint, if any, is provided in this value. This is described in
-.
-our version detection documentation.
+.
@@ -2314,7 +2301,7 @@ nmap.get_port_state({ip="127.0.0.1"}, {number="80", protocol="tcp"})
receive_buf takes two arguments.
The first one is either a string or a function. If it is
- a string it gets passed to Lua's string.find function as the (second) pattern
+ a string it gets passed to Lua's string.find function as the (second) pattern
parameter, with the buffer data being searched. If it is a function
it is expected to take exactly one parameter (the buffer) and its
return values have to be like those of string.find
@@ -2602,7 +2589,7 @@ error_message describes the occurred error.
Returns a function that works on a mutex for the object passed.
This object can be any
-
+
Lua data type
except nil,
booleans, and numbers.
@@ -3022,7 +3009,7 @@ end
description = "Demonstration of a version detection NSE script. It checks \
and reports the version of a remote web server. For real life purposes it is \
better to use Nmap version detection (-sV)."
-author = "Diman Todorov <diman.todorov@gmail.at>
+author = "Diman Todorov <diman.todorov@gmail.at>"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
id = "HTTP version"
@@ -3342,14 +3329,14 @@ end
The package library (namespace:
package)—Lua's
- package-lib provides (among others) the require function, used to load modules from the
+ package-lib provides (among others) the require function, used to load modules from the
nselib.
The table library (namespace:
table)—The
- table manipulation library contains many functions used
+ table manipulation library contains many functions used
to operate on tables—Lua's central data
structure.
@@ -3357,13 +3344,13 @@ end
The I/O library (namespace:
io)—The
- Input/Output library offers functions such as reading files and reading the output from programs you execute.
+ Input/Output library offers functions such as reading files and reading the output from programs you execute.
The OS library (namespace:
os)—The
- Operating System lib provides facilities of the operating
+ Operating System lib provides facilities of the operating
system, including filesystem operations (renaming/removing files,
creating of temporary filenames) and access to the environment.
@@ -3371,7 +3358,7 @@ end
The string library (namespace:
string)—The
-
+
string library helps you with functions used to manipulate
strings inside Lua. Functions include: printf-style
string formating, pattern matching using Lua-style patterns,
@@ -3382,14 +3369,14 @@ end
The math library (namespace:
math)—Since usually numbers in Lua correspond
to the double C-type, the
- math library gives you access to rounding functions,
+ math library gives you access to rounding functions,
trigonometric functions, random number generation, and many more.
The debug library (namespace:
debug)—The
- debug library provides you with a somewhat lower level API
+ debug library provides you with a somewhat lower level API
to the Lua-interpreter. Through it you can access functions along
the execution stack, get function closures and object metatables,
etc.
@@ -3491,7 +3478,7 @@ passed to mainloop where the real work begins.
nselib modules written in C (or C++) to Nmap's build system, since
this has shown to be sometimes tedious. Writing C modules is
described at length in
-Programming in Lua, Second Edition.
+Programming in Lua, Second Edition.Programming in Lua, Second Edition.
Basically C modules consist of the
functions they provide to Lua, which have to be of type lua_CFunction. Additionally they have to contain a function
diff --git a/docs/zenmap.xml b/docs/zenmap.xml
index 7d4f081be..f8c0cfe7a 100644
--- a/docs/zenmap.xml
+++ b/docs/zenmap.xml
@@ -37,7 +37,7 @@
Saved scan results can be compared with one another to see how they differ.
The results of recent scans are stored in a searchable database.
- This man page only describes the few Zenmap command-line options and some critical notes. A much more detailed Zenmap User's Guide is available at . Other documentation and information is available from the Zen web page at .
+ This man page only describes the few Zenmap command-line options and some critical notes. A much more detailed Zenmap User's Guide is available at . Other documentation and information is available from the Zen web page at .