david
a2c2863531
Remove "hardmatched" argument from calls to nmap.set_port_version.
...
This is the default and can be omitted. Seeing as the value of this
argument was "hardmatched" in 100% of cases, we're better off pretending
the parameter doesn't exist.
2012-07-30 18:58:32 +00:00
fyodor
f78b11d50e
Give an example license line for folks who want to use a BSD-style license for their scripts
2012-07-19 23:22:24 +00:00
dmiller
3e71473630
Update scripting.xml to reflect Lua 5.2
...
Changed links to Lua reference manual to point to appropriate sections
for 5.2. Books (Reference Manual and Programming in Lua, 2nd ed.) have
not been updated to 5.2 yet, so those were left alone.
Documented the change in API for linking C libs (luaL_newlib and
luaL_Reg vs luaL_register and luaL_reg).
2012-06-28 20:09:36 +00:00
david
b5a9bca6dc
Change the structure of host.os tables.
...
Previously they were a flat list intermixing human-readable names and
CPE strings. Now they reflect the structure that we use to represent
them. In brief:
host.os = {
{
name = "Microsoft Windows XP",
classes = {
{
vendor = "Microsoft",
osfamily = "Windows",
osgen = "XP",
type = "general purpose",
cpe = {
"cpe:/o:microsoft:windows_xp"
}
},
... more classes ...
},
},
... more OS matches ...
}
2012-03-09 02:32:30 +00:00
fyodor
1623bcfa66
Update --script-args to note that many scripts qualify their arguments with the script name, and that you can pass unqualified arguments to affect every script using that name. Also updated scripting.xml to emphasize that instead of using nmap.registry.args directly, scripts should get their arguments with stdnse.get_script_args. Regenerated the nroff too after making these changes to the source XML
2012-03-01 08:56:45 +00:00
patrik
72af4637b0
o [NSE] Added host based registry, which allows scripts to share data between
...
scripts scanning a specific host. [Patrik]
2012-02-22 20:03:15 +00:00
david
60063bbd18
Add a missing DocBook close tag.
2012-01-18 00:26:38 +00:00
henri
487c08ff63
Make gathered CPE codes available to NSE.
...
CPEs are available at host.os (for the ones from OS fingerprinting) and
port.version.cpe (for the version detection ones).
This patch also fix a memory leak that David noticed in
PortList::setServiceProbeResults().
2012-01-13 10:24:19 +00:00
fyodor
bb62bab448
o Added the new --script-args-file option which allows you to specify
...
the name of a file containing all of your desired NSE script
arguments. The arguments may be separated with commas or newlines
and may be overridden by arguments specified on the command-line
with --script-args. [Daniel Miller]
2012-01-03 07:14:20 +00:00
fyodor
9276d6f6fc
More clearly note the cases where the target mac address is available to NSE
2011-12-20 22:57:43 +00:00
fyodor
c255745299
oops, said prerule when I meant portrule
2011-12-19 21:29:37 +00:00
fyodor
59f8b931f1
document new script force feature
2011-12-19 21:07:01 +00:00
david
fd556a76fe
Make dnet:ip_send able to send IPv6.
2011-10-29 19:40:16 +00:00
fyodor
c9d610ccea
Create a new brute category for brute forcing scripts, move the *-brute scripts from auth category to brute. document it. I don't know what to do with dns-brute so I left it alone (it wasn't in auth category either)
2011-09-30 06:18:55 +00:00
david
53f46fd746
Note that bin_ip and bin_ip_src work for IPv6 in scripting.xml.
2011-06-25 02:28:01 +00:00
fyodor
c4f133158b
Add a real-life postrule example now that we have one
2011-03-29 00:01:58 +00:00
david
b9ffdfb9d0
Document new search path procedure in refguide.xml.
2011-03-26 06:48:34 +00:00
fyodor
f0e7b6d3ab
made a couple minor improvements suggested by G.W. Haywood
2011-03-03 07:13:39 +00:00
djalal
f8b55e3253
Make the use of the SCRIPT_TYPE environment variable clearer.
2011-02-14 21:04:52 +00:00
djalal
d1b34654b8
Fix a bug which caused some NSE scripts to fail, due to the absence of
...
the NSE SCRIPT_NAME environment variable when the scripts are loaded.
Reported by Michael Pattrick.
2011-01-30 23:31:57 +00:00
david
8d5edf66c3
Fix some XML syntax errors in scripting.xml.
2011-01-28 18:12:52 +00:00
david
8553cb3157
Merge r22026 through r22063 from /nmap-exp/david/nmap-script-help (new
...
--script-help option).
2011-01-27 21:44:54 +00:00
david
291ab7488d
Document the "broadcast" script category.
2011-01-13 06:21:55 +00:00
fyodor
c72965c3e5
Add a section 'Script Types and Phases' to discuss and distinguish prerule, host, service, and postrule scripts (definitely has room for improvement). Removed some phase content from the front (introduction) page to keep it clean. Added a link to the Nmap NSE video
2010-10-11 23:08:04 +00:00
david
2a409301ff
Rewrite the section on different script rules.
2010-09-14 04:47:38 +00:00
djalal
55d91874bc
Fix a typo in the scripting.xml file.
2010-09-10 21:21:13 +00:00
david
b2350aa947
o [NSE] Host tables now have a host.traceroute member when --traceroute
...
is used. This array contains the IP address, reverse DNS name, and RTT
for each traceroute hop. [Henri Doreau]
2010-08-28 15:50:10 +00:00
kris
57664a51cf
Committing MTU-related changes:
...
* Adding path-mtu.nse for Path MTU Discovery
* Nmap now stores the MTU for interfaces (from SIOCGIFMTU or libdnet)
* Scripts can access the MTU for host.interface via host.interface_mtu
* Nmap prints the MTU for interfaces in --iflist
2010-08-24 01:47:12 +00:00
fyodor
b3bef8f7a2
Fix some syntax errors (mostly misspelled tags and wrongly closed tags) in scripting.xml to get it to compile
2010-08-13 18:49:16 +00:00
djalal
d056a97b10
Merge r19288:r19697 from nmap-exp/djalal/nse-rules-docs. This will update NSE doc to show the new prerules and postrules.
2010-08-13 00:41:54 +00:00
david
919f13738a
Use literal tags around the names of keys of the host.times table.
2010-08-05 02:21:48 +00:00
kris
412fcbcca0
o [NSE] Added a "times" table to the host table passed to scripts.
...
This table contains Nmap's timing data (srtt, the smoothed round
trip time; rttvar, the rtt variance; and timeout), all represented
as floating-point seconds. The ipidseq and qscan scripts were
updated to utilize the host's timeout value instead of the very
conservative guess of 3 seconds for read timeouts. [Kris]
2010-08-05 01:55:05 +00:00
david
b476797753
Use <userinput> in examples to highlight the user's typed text.
2010-07-19 20:26:36 +00:00
david
aa5d360900
Remove indextermst that are two near one another, such that they cause
...
duplicate page numbers to be incldued in the index.
2010-07-19 18:18:42 +00:00
david
14f314327c
Fix duplicate words in documentation.
2010-07-19 16:58:52 +00:00
david
7a4efd455a
Spell-check documentation.
2010-07-19 16:41:57 +00:00
david
156952fbf8
Do index canonicalization in scripting.xml. Remove ".nse" where not
...
needed.
2010-07-18 20:31:32 +00:00
david
121ff5cd2a
Update, review, and edit scripting.xml.
2010-07-18 19:42:01 +00:00
david
a1c7d1f518
Change "Interesting ports on" to "Nmap scan report for" to correspond
...
with r15916.
2010-07-18 16:13:12 +00:00
david
9b69d2aeba
Change the NSE output prefix in examples in scripting.xml from 3 space
...
to 2, to correspond to r16205.
2010-07-18 15:36:35 +00:00
david
d95ee8c15f
In scripting.xml, note that the documentation is stripped down for space
...
reasons. State what additional information is available online.
2010-07-12 17:43:38 +00:00
david
725e6b85ac
Put some indexterms inside certain elements like term and member. Having
...
them outside causes an error, "[warning] unresolved internal
destination" and a broken link in the index.
2010-07-12 03:54:06 +00:00
fyodor
a9a47afe3b
Added a missing sect2 end tag
2010-07-11 07:42:58 +00:00
batrick
0f8946efc9
Update to Implementation section of NSE chapter to account for changes made
...
to NSE (Lua).
2010-07-10 07:38:12 +00:00
batrick
e55589c5cc
Another change to this from r18458 that adds a note to check if you need
...
to escape quotes differently based on which shell you use.
2010-07-07 17:26:48 +00:00
batrick
c43576e5f2
Fix error in documentation.
2010-06-29 17:20:21 +00:00
djalal
75e6d4d5e1
C modules added to NSE must be included in the list of standard libraries in nse_main.cc
2010-05-26 01:43:23 +00:00
david
5ab63a55be
Say that @usage applies to modules. Say that @usage is automatically
...
generated for scripts if omitted.
2010-04-08 05:26:42 +00:00
david
3b34c84de7
Add dns-fuzz script from Michael Pattrick.
2010-04-04 13:41:32 +00:00
david
48654df805
Switch to -sn and -Pn as the new preferred synonyms for -sP and -P0.
...
This establishes a more regular syntax for some options that disable
phases of a scan:
-n no reverse DNS
-Pn no host discovery
-sn no port scan
Also, the -sP was possibly misleading because the 'P' suggests "ping
scan," when you can now do more than just pinging when you disable port
scanning. For example, -sC -sn and -sn -Pn --traceroute make sense.
2010-03-11 01:16:06 +00:00