david
2f627728a5
Fix a typo in scripting.xml: newsocket -> new_socket.
2008-10-27 21:26:35 +00:00
david
49843daf56
Update some code excerpts in docs/scripting.xml. Make small changes to
...
scripts/showOwner.nse for the purpose of better presentation. Remove the subtle
bug in the portrule example. We shouldn't put bad examples in print.
2008-10-27 17:52:50 +00:00
david
f32ed8acfe
Remove an ineffectual setting of port.version.fingerprint to nil in
...
scripts/PPTPversion.nse.
2008-10-27 17:16:53 +00:00
david
9ff7acfe0e
Put empty parens after a few function names in scripting.xml; I think that's
...
the style we use.
2008-10-27 16:24:09 +00:00
david
0cba98422c
Remove a space that was causing another spurious blank line in a programlisting.
2008-10-27 16:21:41 +00:00
david
3f678cee17
Move the section on NSEDoc of C modules from its own section to a paragraph in
...
the section where the examples of NSEDoc are shown. Reword some things. Mention
that @name as well as @class is needed to document tables.
2008-10-27 16:19:16 +00:00
david
6ecda0239c
Improve idnexing in "Script Documentation Writing."
2008-10-27 15:45:41 +00:00
david
aac3a4e0ad
Polish some markup in scripting.xml. Index ".luadoc".
2008-10-27 15:31:38 +00:00
david
f742c50008
Move some <programlisting> tags to the first column to avoid spurious blank
...
lines at the end. Expand tabs to spaces in the "Version Detection Using NSE"
example; otherwise tabs become single spaces in PDF output.
2008-10-27 15:21:33 +00:00
david
e24e94c251
Add a workaround in NmapParser.py for a bug in PyXML, an add-on Python
...
XML library. We say
if attrs.has_key("nmap_output"):
rather than
if "nmap_output" in attrs:
because at least some versions of PyXML don't implement the __contains__
method. See http://mail.python.org/pipermail/xml-sig/2006-December/011627.html .
2008-10-27 15:05:19 +00:00
batrick
9d45c24835
Updated NSEDoc C module documentation. Merged David's paragraph on the topic
...
with mine.
2008-10-25 03:58:52 +00:00
david
df2ac77764
Small nselib proofreading changes.
2008-10-25 03:35:00 +00:00
david
84afa54d3a
Update and proofread documentation of all the scripts, with the exception of
...
nbstat.nse and smb-*.nse, which Ron is going to do.
2008-10-25 03:11:25 +00:00
david
879b33ad75
Replace showHTTPVersion.nse in scripting.xml with skype_v2-version.nse, a
...
better example of a version-detection script. I made a few small changes to the
script: shortening long lines and removing some non-functional ones. See
http://seclists.org/nmap-dev/2008/q4/0311.html .
2008-10-25 01:20:04 +00:00
david
578449da23
Remove the unused "confidence" member of the Port class. This is not the same
...
as the "name_confidence" member of a service match. I grepped the whole source
tree and couldn't find any reference to "confidence" besides its declaration
and initialization; it builds fine without it.
2008-10-25 00:24:32 +00:00
david
99de55975c
Add an introductory paragraph to the "NSE Scripts" section of scripting.xml
...
explaining that the docs are generated with NSEDoc and pointing to the online
documentation for the latest.
2008-10-24 22:11:02 +00:00
david
15d0add1fe
Remove RealVNC_auth_bypass.nse from the "malware" category. It doesn't have to
...
do with any malware, just a security vulnerability. It remains in "default" and
"vuln". I think it was in "malware" because it used to be in the old "backdoor"
category.
2008-10-24 22:04:30 +00:00
david
7c59faa380
Fix a syntax error in smb.lua. (My fault, it happened while I was testing
...
documentation markup.)
2008-10-24 22:02:22 +00:00
david
58389ab64b
Remove a reference to running --script without any arguments. --script requires
...
an argument:
# nmap target --script >/dev/null
nmap: option `--script' requires an argument
You can use --script= but that's weird enough not to need to be mentioned.
2008-10-24 21:10:42 +00:00
david
07fc9a963b
Fix a parameter list in openssl.luadoc.
2008-10-24 20:58:52 +00:00
david
af4497669b
Proofread and update documentation of pop3, shortport, snmp, ssh1, ssh2,
...
strbuf, tab, unpwdb, and url.
2008-10-24 20:12:36 +00:00
david
d0e545b49c
Proofread and update documentation of nmap, openssl, packet, and pcre.
2008-10-24 19:08:27 +00:00
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