1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29:03 +00:00
Commit Graph

160 Commits

Author SHA1 Message Date
ron
158423041a Fixed some minor bugs in smb.lua (functions returned the wrong value in some cases) 2008-11-19 00:27:35 +00:00
jah
fece92c4f7 Add http-alt and https-alt to the services handled by html-title.nse
Modified http.request() to connect using ssl for the https-alt service.
html-title.nse can now deal with a redirect which changes the url scheme
as long as a port is present in the url and it is the port being scanned.
2008-11-17 22:06:58 +00:00
ron
b53edf3d62 Merging in change to how SMB mutexes are handled (should improve speed significantly for parallel scans) 2008-11-16 16:53:08 +00:00
david
6bd949abb0 Add a little bit about POP3 capabilities to the pop3-capabilities.nse script. 2008-11-15 01:43:10 +00:00
jah
c38aa90312 Fix http.lua which ignores port.protocol and assumes it to be 'tcp' even if it is 'udp'.
Now http.request() returns nil if port.protocol is not 'tcp'.
Changed the portrule in html-title.nse to accept only TCP ports.

Fixed a redirect rule in html-title.nse which was comparing the string url.port with
the number port.number - which would always be false.
2008-11-10 22:55:08 +00:00
ron
82ce5f2a92 Merge from /nmap-exp/ron/ms08-067-test 2008-11-10 16:23:12 +00:00
david
5f166e19ec Don't use empty parentheses when referring to functions by name in NSE
documentation.
2008-11-07 22:49:49 +00:00
david
854b3460b5 Fix an inaccuracy in the documentation for the nmap.receive_lines and
nmap.receive_bytes functions. It claimed that if you don't get all the
lines/bytes you request before a timeout, then a "TIMEOUT" error happens. In
reality you get back data as long as at least one byte was received before the
timeout. From nsock_readlines:

/* Read up to nlines lines (terminated with \n, which of course
   inclues \r\n), or until EOF, or until the timeout, whichever comes
   first.  Note that NSE_STATUS_SUCCESS will be returned in the case
   of EOF or tiemout if at least 1 char has been read.  Also note that
   you may get more than 'nlines' back -- we just stop once "at least"
   'nlines' is read */
2008-11-04 22:39:07 +00:00
david
e0a3c5c64f Abbreviate the summaries of the smb and msrpc modules. 2008-11-04 00:20:22 +00:00
david
5fffad15eb Canonicalize script args in smb.lua. Canonicalize @copyright lines in
netbios.lua, smb.lua, and msrpc.lua.
2008-11-03 23:47:22 +00:00
david
5e6e7151e9 Fix a few small NSEDoc errors. 2008-11-03 20:26:16 +00:00
david
cc7a58cd7a Merge from /nmap-exp/ron/nmap-smb. This adds the new scripts
smb-serverstats.nse, smb-enumsessions.nse, and smb-enumshares.nse.
2008-11-03 20:00:24 +00:00
david
2cceb5184c Separate the first paragraph from the rest of the description with a blank
line, not "\n\n", in the SMB and MSRPC scripts and modules. There are newer
versions of these files pending review, so this is just a quick measure to let
me use first paragraphs as summaries rather than first sentences.
2008-11-03 16:17:07 +00:00
sven
e9dd88b8a9 remove bignum_set_negative and bignum_is_negative because those functions are not available in older openssl versions 2008-10-30 13:10:01 +00:00
david
df2ac77764 Small nselib proofreading changes. 2008-10-25 03:35:00 +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
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
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
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
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
2762f91169 Reformat docs in stdnse.lua. 2008-10-23 18:31:00 +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
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
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
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
3ff15bf16d Document the socket, pcap, and dnet functions in nselib/nmap.luadoc. 2008-10-16 20:33:23 +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
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
david
6dde8008d7 Add
module "bit"
to nselib/bit.luadoc. That makes it show up in the generated documentation.
2008-10-16 02:59:51 +00:00
david
f58f559b81 Reformat and merge documentation for stdnse, shortport, strbuf, snmp, ssh1,
ssh2, smb, pop3, and msrpc.
2008-10-16 00:38:53 +00:00
david
a31f0890d5 Document the packet NSE module. 2008-10-15 23:09:51 +00:00
david
12e34eb5b0 Reformat and merge documentation for some NSE modules: comm, datafiles, dns,
http, ipOps, listop, and match. This is mainly merging the best documentation
from the module source and scripting.xml into the module, with the aim of
making the source code the canonical source for module documentation.
2008-10-15 22:03:14 +00:00
batrick
4b17b36913 Added unpwdb library documentation. 2008-10-15 20:36:24 +00:00
sven
5d12eb7a3d add missing local reference to error() to stdnse 2008-10-12 18:39:00 +00:00