1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00
Commit Graph

250 Commits

Author SHA1 Message Date
david
12892ad59a Add @output to scripts/popcapa.nse. 2008-11-03 23:50:46 +00:00
david
9d1b588e4b Fix a few little formatting errors in SQLInject.nse. 2008-11-03 21:37:08 +00:00
david
e01984b2f5 Proofread and format the smb-* scripts. This was mostly done by Ron already. 2008-11-03 21:36:07 +00:00
david
78cc76e9f8 Update script.db. 2008-11-03 20:01:11 +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
david
4175c0a930 Give bruteTelnet.nse a less generic name "Telnet brute force" instead of
"bruteforce".
2008-11-03 16:03:17 +00:00
david
f8b4fc4cc1 Fix a couple of duplicate words found with the duplicate-words script. 2008-10-30 17:28:14 +00:00
kris
c51f495a84 o The SSLv2-support NSE script no longer prints duplicate cyphers if
they exist in the server's supported cypher list.
2008-10-29 22:58:06 +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
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
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
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
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
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
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
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
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
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
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
8bd71aaf43 Normalize NSEDoc documentation of scripts.
I made every script follow a standard form: it starts with the id, followed by
the description. The description is contained in [[ ]] delimiters. The
description is in the global description variable, not in a LuaDoc comment.
Other LuaDoc information such as @args and @usage follows the description in a
comment.

The first paragraph of each description is a a short summary of what the script
does. More detailed information, if any, is given in following paragraphs.

I also improved some wording and formatting in a few cases.
2008-10-14 20:52:50 +00:00
batrick
8eb929d868 Fixed documentation error. 2008-10-10 13:17:39 +00:00
sven
809784ed20 use shortport library in ircServerInfo script 2008-10-10 10:45:21 +00:00
sven
375f34f0ca use shortport library in PPTPversion script 2008-10-10 10:41:20 +00:00
sven
ece81da41a add linebreaks to @output section of rpcinfo and SSH-hostkey script 2008-10-10 06:27:10 +00:00
david
2f1898fe49 Whoops, SSH-weak_key.nse isn't a merged script. I just had an unversioned copy in my scripts directory. Remove it from script.db. 2008-10-09 00:45:42 +00:00
david
cb00282519 --update-scriptdb to add SSH-hostkey.nse and SSH-weak_key.nse. 2008-10-08 23:10:33 +00:00
sven
d8714befb1 merging nse_openssl branch 2008-10-08 22:21:41 +00:00
fyodor
840b276b6c From Jason R. DePriest:
Fixed it to normalize the line endings before replacing them with
commas and I have it remove extra spaces.
2008-10-07 03:54:46 +00:00
fyodor
9e4772dc50 Improvements to the nsedoc comments by Arturo 'Buanzo' Busleiman 2008-10-07 00:10:40 +00:00
david
01ca5f9188 Encapsulate the redirect decision rules in showHTMLTitle.nse into their own
function.
2008-10-06 00:03:33 +00:00
david
ac19339d5f o showHTMLTitle.nse can now follow (non-standard) relative redirects,
and may do a DNS lookup to find if the redirected-to host has the
  same IP address as the scanned host. [Jah]
2008-10-05 23:46:22 +00:00
david
ae7455279e Add a new msrpc.lua module, plus new scripts smb-enumdomains.nse,
smb-enumshares.nse, and smb-enumusers.nse. Also enhance the netbios.lua and
smb.lua modules. Remove the smb-enum.nse script. All these changes are from Ron
Bowes.
2008-10-04 21:58:39 +00:00
david
08c98a26e6 Update HTTP_open_proxy.nse to use Google Web Server's changed header field:
"Server: gws" instead of "Server: GWS/". The patch is based on one from Vlatko
Kosturjak. Sven suggested a better portrule.
2008-10-02 16:11:22 +00:00
david
844467d410 Add jah's enhanced ASN.nse that consolidates answers and gives up if the DNS
server is uncooperative.
2008-09-16 17:35:44 +00:00
david
f054d25d1f Adjust the categories of the new SMB scripts. Also fix a couple of
documentation typos.

smb-os-discovery.nse
-categories = {"version","default"}
+categories = {"default", "discovery", "safe"}
 
smb-enum.nse
-categories = {"version","intrusive"}
+categories = {"discovery", "intrusive"}
 
smb-security-mode.nse
-categories = {"version"}
+categories = {"discovery", "safe"}
2008-09-15 18:10:00 +00:00
david
9eff25bbc4 Add Ron Bowes's netbios and smb NSE modules and new scripts that use them. They
were introduced in http://seclists.org/nmap-dev/2008/q3/0827.html.
2008-09-15 17:58:38 +00:00
kris
2123310bf8 Remove comment and bytes=1 from dns-safe-recursion*.nse. The scripts were
sent to nmap-dev before the Comm update to default to bytes=1, but added after
the change.  I tested the scripts out and they still work fine of course.
2008-09-13 17:20:17 +00:00
david
f35d3e9440 Remove a \r\r that could be printed by showSMTPversion.nse. 2008-09-12 21:39:48 +00:00
fyodor
c95a9935bb latest generated files 2008-09-12 08:22:09 +00:00
david
d6e3760151 Add HTTP_open_proxy.nse to the external script category, because it potentially
involves traffic between the target and a third-party host. It's fairly
innocuous because there's no third-party traffic from the scanning computer, so
I left it in the default category.
2008-09-09 17:10:45 +00:00
david
06c7264e2e Put the following scripts in the new "external" category:
ASN.nse
dns-safe-recursion-port.nse
dns-safe-recursion-txid.nse
ripeQuery.nse
whois.nse
2008-09-09 05:13:24 +00:00
david
da312ac02e Remove a debugging statement from brutePOP3.nse. 2008-09-08 19:32:16 +00:00