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

549 Commits

Author SHA1 Message Date
david
ce18e4bb54 Make http-methods.nse merge the contents of the Allow and Public
headers, as suggested by Patrik Karlsson.
2010-03-02 20:27:08 +00:00
david
8112f5d03f Add some further improvements to smtp-open-relay.nse from Duarte Silva,
checking for EOF and TIMEOUT errors.
2010-03-01 23:05:22 +00:00
david
e89094261d Add json.lua, couchdb-databases.nse, and couchdb-stats.nse, all by
Martin Holst Swende.
2010-02-28 21:25:01 +00:00
david
ffb34b2259 Make sure port.service exists before passing it to string.match. This
bug was reported by Brandon.
2010-02-27 00:16:29 +00:00
kris
a42ea72a97 Merge through r16884 from /nmap-exp/kris/nse-rawip plus the following changelog
entries:

o [NSE] Raw packet sending at the IP layer is now supported, in addition to
  the Ethernet sending functionality.  Packets to send start with an IPv4
  header and can be sent to arbitrary hosts. [Kris]

o [NSE] Added the ipidseq script to classify a host's IP ID sequence numbers
  in the same way Nmap does.  This can be used to test hosts' suitability for
  Nmap's Idle Scan (-sI), i.e. check if a host is an idle zombie.  This is
  the first script to use the new raw IP sending functionality in NSE. [Kris]

o [NSE] Added the function nmap.is_privileged() to tell a script if, as far
  as Nmap's concerned, it can do privileged operations.  For instance, this
  can be used to see if a script should be able to open a raw socket or
  Ethernet interface. [Kris]

o [NSE] Added the function nmap.get_ports() to allow a script to iterate
  over a host's port tables matching a certain protocol and state. [Kris,
  Patrick]
2010-02-26 20:42:10 +00:00
david
84a388aeb9 Give datafiles.lua the ability to parse nmap-mac-prefixes, and use it in
nbstat.nse to look up the MAC vendor string.
2010-02-26 00:27:30 +00:00
david
bf612ba7c9 o [NSE] Added the ssl-enum-ciphers script from Mak Kolybabi. This
script lists the ciphers and compressors supported by an SSL/TLS
  server.
2010-02-24 01:33:16 +00:00
david
e603eadd96 Remove TRACE from the http-methods.nse "uninteresting" set on a
recommendation from Daniel Roethlisberger. TRACE is interesting because
it can be used to get cookies or authentication data in a cross-site
scripting attack. See http://www.owasp.org/index.php/Cross_Site_Tracing.
2010-02-22 21:42:47 +00:00
david
a67be3d7d1 Take smtp-open-relay.nse out of {"demo"} and into {"discovery",
"intrusive", "external"} following some improvements by Duarte Silva.
2010-02-22 17:52:13 +00:00
patrik
08063ebd32 Added dependency for ldap-brute to ldap-rootdse.nse 2010-02-21 08:56:10 +00:00
patrik
42da3e0ba0 o [NSE] Added a new library for LDAP and two new scripts:
- ldap-brute uses the unpwdb library to guess credentials for LDAP
  - ldap-rootdse retrieves the LDAP root DSA-specific Entry (DSE)
2010-02-21 08:52:44 +00:00
ron
3a3535e07c Fixed a couple formatting bugs in the smb-* libraries that come up when debugging/verbose is disabled 2010-02-20 15:03:11 +00:00
david
29efe81bf1 Add http-methods.nse to the default category. Make it silent if the only
methods it discovers are in (GET, HEAD, POST, OPTIONS, TRACE). In
verbose mode, or if any other method is discovered, it prints all
methods (and optionally retests them). See
http://seclists.org/nmap-dev/2010/q1/401.
2010-02-19 05:42:36 +00:00
david
752fd5331b Use http.generic_request in http-iis-webdav-vuln.nse. 2010-02-19 05:03:00 +00:00
david
650e639f1f Rewrite http-methods.nse to use the http.generic_request function
instead of doing its own socket handling. Also make the output more
concise.
2010-02-19 04:55:38 +00:00
david
ffd7a6dba5 Do some cleanup and shortening of http-methods.nse. 2010-02-19 02:34:45 +00:00
ron
811ebc1e44 Updated script.db with http-vmware-path-vuln.nse 2010-02-16 18:25:30 +00:00
ron
1421838d94 Added http-vmware-path-vuln.nse, a script that checks for a path-traversal vulnerability in VMWare (CVE-2009-3733) 2010-02-16 14:42:10 +00:00
patrik
feb6a47767 Updated the script.db to include recently added scripts. 2010-02-16 10:00:32 +00:00
patrik
d2e54f0bf2 o [NSE] Added a new library for ASN.1 parsing and adapted the SNMP library to
make use of it. Added 5 scripts that use the new libraries:
  - snmp-netstat shows listening and connected sockets
  - snmp-processes shows process information including name, pid, path and 
    parameters
  - snmp-win32-services shows the names of running Windows services
  - snmp-win32-shares shows the names and path of Windows shares
  - snmp-win32-software shows a list of installed Windows software
  - snmp-win32-users shows a list of local Windows users
2010-02-16 09:15:38 +00:00
david
be9e0265f6 Remove the nmap_service.exe helper for smb-psexec.nse. Add a message to
the script indicating where to download it if it is not available. Make
the script check whether the file is the normal binary from 5.20 or
before, or the XOR-encoded binary from 5.21.
2010-02-12 20:17:06 +00:00
david
a3a7d79b5f Update some SecLists URLs. 2010-02-11 17:43:02 +00:00
david
ba5f5644cb Remove some non-NSEDoc markup that was breaking a link. 2010-02-11 05:05:44 +00:00
david
45a75f35eb Update the link for the Python checker for MS08-067. 2010-02-11 03:13:54 +00:00
patrik
85d9401ff5 Replaced incorrect try/catch statements in dns-service-discovery that would attempt to close a non-existing socket 2010-02-01 19:42:23 +00:00
david
6643fd3422 o [NSE] Added the script http-methods from Bernd Stroessenreuther.
This script sends an HTTP OPTIONS request to get the methods
  supported by the server, and optionally tests each method to see if
  they are restricted by IP address or something similar.
2010-02-01 19:13:55 +00:00
david
d5934cef9e Fix a typo in http-favicon.nse. 2010-02-01 04:05:44 +00:00
david
cb82f95ae1 Make mongodb-info and mongodb-databases default as they're fast, safe,
and give good information.
2010-01-29 22:29:56 +00:00
david
ec1b16f7d7 o [NSE] Added two new scripts for the MongoDB database from Martin
Holst Swende. mongodb-info gets information like the version number,
  memory use, and operating system. mongodb-databases lists the
  databases and their size on disk.
2010-01-29 22:23:06 +00:00
patrik
048b3ad931 Add lexmark-config.nse see
http://seclists.org/nmap-dev/2010/q1/6

Updated the mysql entries in the CHANGELOG
2010-01-29 21:04:25 +00:00
tomsellers
1135590980 Modified portrule to restrict the script to port 523 instead of 523 OR ibm-db2
in order to keep the script from running against the actual database instances.
Also modified the debugging output so that the bulk of the information is 
generated at -d 4 or higher.
2010-01-29 00:51:55 +00:00
tomsellers
9f9ce26425 Add a new script, db2-das-info.nse, that connects to the IBM DB2 Administration Server (DAS)
on TCP or UDP port 523 and exports the server profile.  No authentication is required for 
this request. The script will also set the port product and version if a version scan is
requested. [Patrik Karlsson, Tom Sellers]
2010-01-28 00:48:29 +00:00
fyodor
6cf3b33924 Update version number to 5.21 to reflect the latest Nmap user (even though technically the 5.21 release is coming from the /nmap-exp/stable-5.2 branch 2010-01-27 02:51:09 +00:00
fyodor
d85c8d3603 Typo fix: reponses -> responses 2010-01-27 02:05:01 +00:00
patrik
0bc8e65811 Add the scripts
mysql-brute
  mysql-datatabase
  mysql-empty-password
  mysql-users
  mysql-variables
and the mysql module
2010-01-26 09:40:38 +00:00
patrik
f53635148c Documented the daap_item_limit that limits the output of the daap-get-library script. Add changelog entries for r16568 2010-01-26 07:33:55 +00:00
patrik
54b977e6b2 Add daap-get-library.nse see
http://seclists.org/nmap-dev/2010/q1/164.
2010-01-25 23:51:44 +00:00
ron
13f8f95a5f nmap_service.exe is now encoded locally by xor'ing each byte by 0xFF. It is decoded in line before it is uploaded. This is to prevent antivirus false positives from picking it up. 2010-01-23 16:56:49 +00:00
ron
49d8db7ba5 Fixed a bug in smb-enum-sessions discovered by Brandon Enright -- most error conditions would cause a nil-pointer exception. 2010-01-23 16:55:54 +00:00
ron
00b2c842e2 smb-brute now checks the hosts lockout policy before starting. If accounts can be locked out, it bails with an error message telling the user how to force it to run. 2010-01-23 16:31:40 +00:00
david
a066cd7bdc Add the missing dirname function to http-favicon.nse. I missed this when
I copied parse_url_relative from favicon-survey.nse. Ron Meldau reported
that this error is raised:
  http-favicon.nse:141: variable 'dirname' is not declared
It happens when a web page specifies a relative icon URL in a link
element. (dirname is used to absolutize the URL.)

Also, I changed to code to be sure to pass a plain string and number for
the host and port to parse_url_relative. Otherwise parse_url_relative
may return the tables that it receives and complicate the matching code
to decide if a URL should be followed.
2010-01-22 18:45:04 +00:00
kris
c6508cceb6 Fix http-enum.nse so it uses the full pathname for the fingerprints file (from
fetchfile) so it doesn't throw an error and quit running.

Reported by Ron Meldau and Brandon:

http://seclists.org/nmap-dev/2010/q1/222
2010-01-22 18:38:46 +00:00
ron
354eaca0ff Re-wrote smb-enum-domains.nse to be more generic and rely on library functions. Ultimately, I want to use these same functions in smb-brute to trim out impossible passwords and figure out account lockout policies before the bruteforce starts. It'll make smb-brute a little cleaner after the changes. 2010-01-22 04:43:51 +00:00
ron
d8bd5c399e Fixed a bug in smb-brute that wouldn't detect properly if an account became locked out, and would proceed to lock out every account. It was a totally braindead mistake on my part, I don't know how I did it, but I got a condition backwards. It's fixed now, though\! 2010-01-22 03:25:22 +00:00
david
ad0a63deef Add dns-service-discovery.nse from Patrik Karlsson. See
http://seclists.org/nmap-dev/2010/q1/87 for more information.
2010-01-21 01:53:46 +00:00
david
a105f13975 afp script updates from Patrik Karlsson. 2010-01-20 23:47:04 +00:00
david
69000c63f0 Add afp.lua and afp-showmount.nse from Patrik Karlsson. See
http://seclists.org/nmap-dev/2010/q1/97.
2010-01-20 21:49:30 +00:00
fyodor
88cbb875ce Another canonicalization fix (making the author line the same for scripts written by the same author -- among other minor benefits, makes it easy to count how many scripts each person has written) 2010-01-19 08:32:26 +00:00
fyodor
785126a4a9 Some minor canonicalization of the author fileds in NSE scripts 2010-01-19 08:28:30 +00:00
david
19c2d93903 Merge from /nmap-exp/david/nselib-http. This is an overhaul of HTTP
parsing mostly. Response parsing is centralized, and fewer operations
are done on raw HTTP data.

The biggest user-visible change is that http.request goes back to
returning a parsed result table, not raw HTTP data. I believe this is
how the function worked in the past; it's what the NSEDoc for the
function says. The only thing that used http.request was citrixxml.lua,
and this commit alters it to match the new expectations.

The other change is that the http.pipeline function no longer accepts
the "raw" option. The only script that used that was sql-injection.nse,
and this commit modifies that script as well.
2010-01-13 02:53:13 +00:00