1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 23:19:03 +00:00
Commit Graph

4399 Commits

Author SHA1 Message Date
fyodor
ddb5829dcf minor syntax updates to the help screen text 2008-10-24 19:07:39 +00:00
batrick
09f1bae240 Added C module NSEDoc generation documentation. 2008-10-24 17:35:01 +00:00
david
3ee17ecb5c Fix NSEDoc error messages, except for some "documenting undefined parameter"
that happen when one function is defined to be another by assignment.
2008-10-24 17:05:40 +00:00
david
a2ca60092c Remove module and object prefixes from function names in .luadoc files, as
suggested by jah in http://seclists.org/nmap-dev/2008/q4/0232.html. This makes
@see cross-references to functions in these files work from other modules.
2008-10-24 15:57:11 +00:00
david
d20ee8dbbc Proofread and update documentation of match. 2008-10-24 15:14:03 +00:00
fyodor
8532de4a49 apply a bunch of proofreading suggestions from Dan Henage 2008-10-24 08:55:17 +00:00
david
bf635081c3 Proofread and update documentation of http, ipOps, and listop. 2008-10-24 04:59:36 +00:00
david
114e1420bb Proofread and update documentation format in base64, bin, bit, comm, datafiles,
and dns.
2008-10-24 03:56:55 +00:00
kris
98ee3211f2 Fixing port numbers in output. The "%hi" conversion modifier was being used
which treats port numbers as signed shorts, and this caused high ports numbers
to wrap around and be shown as negative.
2008-10-24 00:48:19 +00:00
david
7e15f259a4 Standardize the @copyright fields of NSE modules; change "See nmaps COPYING for
license" to "Same as Nmap--See http://nmap.org/book/man-legal.html" like
scripts commonly use. I added the field to some modules I know to be under the
Nmap license: bin, datafiles, dns, nmap, unpwdb. I left alone bin, bit, pcre,
and url, which come from outside sources.
2008-10-24 00:44:22 +00:00
david
efed9cf1a8 Update the documentation for some scripts and modules that I used in the NSEDoc
section of scripting.xml.
2008-10-24 00:23:46 +00:00
david
1cf11d305c Update scripting.xml to document new NSE documentation markup. Include some
more examples. Note that using the special NSE documentation variables is
prefereable to using documentation comment tags in scripts.
2008-10-24 00:20:47 +00:00
david
2762f91169 Reformat docs in stdnse.lua. 2008-10-23 18:31:00 +00:00
david
8b08de8e65 Remove a reference to the deleted echoTest.nse script from the documentation.
Replace it with SSH-hostkey.nse, another "safe" category script.
2008-10-23 17:11:49 +00:00
david
295ff830a3 Reformat ASN.nse using new markup. \n is now usually unnecessary. The three
main uses of \n are now done differently: paragraph breaks are now signaled by
a blank line, lists are done with the "* " syntax, and preformatted code should
be delimited with <code></code> tags.
2008-10-22 23:49:44 +00:00
david
b03230218d Commit a few NSE documenation changes I made while testing the new markup
parser; they work now.
2008-10-22 23:31:47 +00:00
david
20137202d9 Change nmap.luadoc to use Unix line endings. 2008-10-21 22:35:10 +00:00
david
eb5a40dc81 Use <code> markup in nselib/smb.lua. 2008-10-21 22:19:52 +00:00
david
8e695065b3 Fix a little typo in msrpc.lua. 2008-10-21 18:46:02 +00:00
david
e487dac7a3 Remove an HTML anchor from nselib/ipOps.lua. 2008-10-21 17:25:08 +00:00
david
837c1e95ca Make a few script documentation whitespace changes. 2008-10-20 23:45:33 +00:00
fyodor
f6fb4d971c o Removed some unecessary "demo" category NSE scripts: echoTest,
chargenTest, showHTTPVersion, and showSMTPVersion.nse.  Moved
  daytimeTest from the "demo" category to "discovery".  Removed
  showHTMLTitle from the "demo" category, but it remains in the
  "default" and "safe" categories. This leaves just showSSHVersion and
  SMTP_openrelay in the undocumented "demo" category. [Fyodor]
2008-10-20 22:54:43 +00:00
fyodor
7ead36a64e remove demo category from showHTMLTitle 2008-10-20 21:47:24 +00:00
david
60870aee2b Remove
--@output
-- TODO
from smb-enumusers.nse and smb-enumshares.nse to keep it from showing up in
printed output.
2008-10-20 19:05:35 +00:00
david
b80804c311 Take nse-modules and nse-scripts out of variablelist containers; they are
rendered more like sections now.
2008-10-20 18:56:57 +00:00
david
ca933f1cbb Use explicit line breaks in the @usage section of scripts/whois.nse. This keeps
the lines from getting too long when rendered verbatim.
2008-10-20 18:53:46 +00:00
david
5a34d64f8e Fix a test condition in the ICMP response checking code for ping scans. A test
that should have fired whenever !USI->ptech.rawprotoscan wrongly had the
additional condition && o.debugging, meaning that it worked properly only when
debugging was enabled. See http://seclists.org/nmap-dev/2008/q4/0130.html and
http://seclists.org/nmap-dev/2008/q4/0206.html for problem reports.
2008-10-20 16:52:42 +00:00
david
02d35294c3 Change the Zenmap keyboard shortcut for "Save to Directory" from Ctrl+v to
Ctrl+Alt+s so as not to conflict with the usual paste shortcut. Suggestion by
Michael, patch by Jah.
2008-10-20 02:56:10 +00:00
david
7c32907cac Make Nmap quit when it gets a "backwards" port range like -p 20-10. 2008-10-20 01:58:58 +00:00
david
976a27755d Add line breaks to the code example in openssl.luadoc. 2008-10-19 00:38:02 +00:00
jah
eacb951209 Fixed typos for some nsedoc tag names:
INFO processing file `nselib/datafiles.lua'
ERROR undefined handler for tag `type'
INFO processing file `nselib/dns.lua'
ERROR undefined handler for tag `result'
ERROR undefined handler for tag `result'
INFO processing file `nselib/netbios.lua'
ERROR undefined handler for tag `returns'
INFO processing file `nselib/snmp.lua'
ERROR undefined handler for tag `result'
INFO processing file `scripts/SSLv2-support.nse'
ERROR undefined handler for tag `ouput'

Removed a @see tag which refers to Lua's string.format rather than to NSE docs:
INFO generating file `docs/modules/stdnse.html'
ERROR unresolved reference to symbol `string.format'
2008-10-18 20:49:00 +00:00
david
f6c4c7d653 Add containers for the auto-generated lists of NSE modules and scripts to
scripting.xml.
2008-10-18 01:36:31 +00:00
fyodor
2c650269ec o Fixed a bug which caused Nmap to infer an improper distance against
some hosts when performaing OS detection against a group whose
  distance varies between members. [David, Fyodor]
2008-10-17 21:20:52 +00:00
david
6e69be898a Small NSE documentation fixes: "nmap-protocol" -> "nmap-protocols" in
datafiles.lua, and remove not-too-relevant vulnerability IDs from
dns-test-open-recursion.nse.
2008-10-17 19:22:06 +00:00
david
dafa60743b Break description summaries in http.lua into their own paragraphs. 2008-10-16 23:37:54 +00:00
david
9568b22e68 Make some NSEDoc updates in scripts/whois.nse. Use <> instead of &lt;&gt; and
use the @field tag in table documentation comments.
2008-10-16 23:29:25 +00:00
david
33fa3914d4 Mention that scripts matching a hostrule get only a host table, and script
matching a portrule get both a host and a port table. I didn't find that
documented anywhere else.
2008-10-16 23:09:18 +00:00
david
dfbbbf9e9a Write a short overview of connect-style I/O and include an example. Rewrite the
section on raw sockets in NSE.
2008-10-16 23:04:50 +00:00
david
c1b3ea6db3 Remove a line of dead code. 2008-10-16 22:54:37 +00:00
david
06b661f2ef Fix the documentation for nmap.new_try, because it was incorrect. The result of
nmap.new_try is not a function accepting another function, it is a function
taking a variable number of arguments, assumed to be the return value of some
function. In other words, the returned try function is not responsible for
running other functions, it only sees their return values.
2008-10-16 22:21:08 +00:00
david
aa87f1db15 Fix the creation of an exception handler in anonFTP.nse. I changed
nmap.new_try(err_catch())
to
	nmap.new_try(err_catch)
The first statement calles new_try with the result of calling the err_catch
function, which is nil, when what is wanted is to call new_try with the
function itself as an argument.
2008-10-16 21:58:59 +00:00
david
3ff15bf16d Document the socket, pcap, and dnet functions in nselib/nmap.luadoc. 2008-10-16 20:33:23 +00:00
fyodor
3415425322 applied a bunch of spelling/typo fixes sent in by Armin Mueller 2008-10-16 20:24:38 +00:00
david
77374fb284 Merge and format documentation for functions in nselib/nmap.luadoc. A lot of
functions are missing, notable the socket methods. I'll add those next.
2008-10-16 17:28:12 +00:00
david
16052f05e5 Add an example of testing for the availability of the openssl module in
nselib/openssl.luadoc.
2008-10-16 17:04:06 +00:00
sven
1f726dd386 do not use try() in ssh1 and ssh2 library because a network error occurring in the library would otherwise stop the complete script 2008-10-16 11:05:52 +00:00
david
0ec5373496 Add a period at the end of the first paragraph in nselib/pcre.luadoc. This
makes the current summarizer extract just that for the summary.
2008-10-16 04:17:18 +00:00
david
2ab20dcd4b Remove a cross reference from scripting.xml that was broken since the module
documentation was removed.
2008-10-16 04:15:54 +00:00
david
c30776fec7 Add luadoc files for openssl and pcre. That finishes the modules in the section
"Lua Extensions", which is now just a stub.
2008-10-16 04:08:53 +00:00
david
99c30b1d1b Merge documetation for unpwdb, url, bit, tab, base64, and bin. 2008-10-16 03:18:03 +00:00