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

4399 Commits

Author SHA1 Message Date
david
87fbf1df1e Recognize NT_STATUS_INVALID_PARAMETER as a known error code when testing
if a share is writable (along with NT_STATUS_ACCESS_DENIED). I got this
code from a printer share.
2010-02-12 23:14:37 +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
kris
fd7f981bc5 update ip_is_reserved() again: 050/8 and 107/8 allocated 2010-02-12 18:05:29 +00:00
david
6cd5b248db Add the favicon sent by sslstrip to the favicon-db. This one never
appeared in the Internet surveys, but because of its nature it's not
likely to appear in that sort of scan, and this is a good one to know
about.
2010-02-12 05:29:17 +00:00
fyodor
32d726667f note that the -v and -d arguments should take the same syntax. 2010-02-12 01:46:36 +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
489eff2a38 Fix or remove broken links in the translated man pages. 2010-02-11 05:05:04 +00:00
david
c19ee91120 Run nmap-man-ro.xml through
tidy -xml -utf8 -indent -w 80

Almost all the content had been smashed into a few super-long lines.
2010-02-11 05:00:47 +00:00
david
2a9f389fcc Make the module declaration in citrixxml.lua match the file name. It was
"citrix" and not "citrixxml".
2010-02-11 03:51:05 +00:00
david
2bc80c4075 Fix an idlescan link in the Chinese translation of the man page. It was
using U+3002 instead of an ASCII dot.
2010-02-11 03:15:55 +00:00
david
45a75f35eb Update the link for the Python checker for MS08-067. 2010-02-11 03:13:54 +00:00
david
f94e871385 Change a reference to smb-pwdump to smb-psexec. 2010-02-11 02:46:35 +00:00
fyodor
4b3c5eaf96 latest TODO changes 2010-02-10 22:45:49 +00:00
batrick
8200787f7a Fixed wrong variable names that were interpreted as globals. 2010-02-08 02:48:07 +00:00
batrick
470b013612 Fixed return of incorrect variable name (should have been one of the locals,
was interpreted as a global).
2010-02-08 02:46:28 +00:00
batrick
9ac3c5057a Added dummy locals '_' to be saved to rather than global '_'. 2010-02-08 02:36:11 +00:00
batrick
2038337907 Fixed a global variable being set. I believe the intent was to set
response.body and not result.body.
2010-02-08 02:35:17 +00:00
batrick
ec79a3b59b Use defines for library names "nmap" and "stdnse.c" 2010-02-06 00:59:33 +00:00
fyodor
78b440b978 Update from weekly chat w/David 2010-02-03 00:53:53 +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
4dd04a32a5 Make stdnse.format_output return nil when passed an empty table. Before
it was returning an empty string, causing blank output entries for
scripts with no output:

80/tcp    open   http
|_citrix-enum-apps-xml:
|_citrix-enum-servers-xml:
| http-headers:
|   Date: Sun, 31 Jan 2010 19:28:13 GMT
|   Server: Apache/2.2.3 (CentOS)
|   Accept-Ranges: bytes
|   Content-Length: 739
|   Connection: close
|   Content-Type: text/html; charset=UTF-8
|
|_  (Request type: HEAD)
|_http-date: Sun, 31 Jan 2010 19:28:14 GMT; +1s from local time.
|_html-title: Go ahead and ScanMe!
2010-01-31 19:38:13 +00:00
david
2455b4dc89 Use the Quake 2 and Quake 3 server status probes as UDP payloads. 2010-01-30 04:41:25 +00:00
david
f269adcabc Remove hostname matches in the Quake probes. The fields I was using
don't look like they really contain hostnames.
2010-01-30 04:40:37 +00:00
david
f4530d9ae4 Add Quake 2 and Quake 3 game server probes from Mak Kolybabi. 2010-01-30 04:18:19 +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
3cd9c64405 Added CHANGELOG entry for db2-das-info NSE script 2010-01-29 10:51:20 +00:00
david
0b6f99affd Add to CHANGELOG:
o [Ncat] Added support for HTTP Digest authentication of proxies, as
  both client and server. Previously only the less secure Basic was
  supported. [Venkat, David]
2010-01-29 05:58:10 +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
david
80f90e4d5f Fix a typo in a comment. 2010-01-28 19:12:11 +00:00
david
0ed416b8fd Fix these compiler warnings with a patch from Solar Designer:
ncat_proxy.c: In function `ncat_http_server':
ncat_proxy.c:163: warning: dereferencing type-punned pointer will break strict-aliasing rules

nmap_dns.cc: In function `void parse_resolvdotconf()':
nmap_dns.cc:951: warning: unsigned int format, different type arg (arg 4)

traceroute.cc: In member function `void TracerouteState::read_replies(long int)':
traceroute.cc:1031: warning: 'header_len' might be used uninitialized in this function
2010-01-28 18:55:08 +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
9a7b977b2a Update CHANGELOG to reflect the 5.21 branch 2010-01-27 02:48:02 +00:00
fyodor
d85c8d3603 Typo fix: reponses -> responses 2010-01-27 02:05:01 +00:00
david
b1e62c573f Add to CHANGELOG:
o [NSE] Restored the ability of http.head to return a body if the
  server returns one. This was lost in the http.lua overhaul from
  5.20. [David]

o [NSE] Fixed the use of our strict.lua library on distributions that
  install their own strict.lua. The error message was
    nse_main.lua:97: attempt to call a boolean value
  It was reported by Onur K. [Patrick]

o [NSE] Corrected a behavior change in http.request that was
  accidentally made in 5.20: it could return nil instead of a table
  indicating failure. [David]

o [NSE] Fixed the use of an undefined variable in smb-enum-sessions,
  reported by Brandon. [Ron]

o Fixed a compiler error when --without-liblua is used. [Brandon]

o [NSE] Did some simple bit-flipping on the nmap_service.exe program
  used by the smb-psexec script, to avoid its being falsely detected
  as malware. [Ron]

o [NSE] Fixed an error with running http-enum.nse along with the
  --datadir option. The script would report the error
    http-enum.nse:198: bad argument #1 to 'lines'
      (nselib/data/http-fingerprints: No such file or directory)
  The error was reported by Ron Meldau and Brandon. [Kris]
2010-01-27 01:52:26 +00:00
david
d04e2e825a Use a bigger buffer to read IP addresses from /etc/resolv.conf (to
acommonate IPv6 addresses) and make the sscanf format size match the
buffer size (to avoid smashing the stack). The format string is
constructed dynamically to the size of the buffer with Snprintf. Gunnar
Lindberg reported this problem; discussion starts at
http://seclists.org/nmap-dev/2010/q1/250.
2010-01-27 01:16:14 +00:00
david
5f4409ebc2 Add a workaround for Python packaging difficulties on Ubuntu. Specifically, cache the value of self.prefix before calling install.finalize_options, which on Ubuntu modifies self.prefix. Without this change, the path definitions in the installed Paths.py are wrong. (They refer to /usr/share/zenmap when they should refer to /usr/local/share/zenmap.) 2010-01-27 00:37:17 +00:00
fyodor
21e6e7d6fe some TODO updates after weekly review w/David 2010-01-27 00:00:30 +00:00
david
549dc85ad3 Change PortList::getPortState to return the default port state if the
port is unknown, instead of -1. This makes it a better fit with the
other accessor functions. For those callers that need to know whether a
port is in the default state or not, add PortList::portIsDefault.

Having getPortState return -1 for ports in the default state would cause
the slightly wrong

Discovered unknown port 88/udp on 192.168.0.190 is actually open

to be printed instead of

Discovered open|filtered port 88/udp on 192.168.0.190 is actually open
2010-01-26 20:46:26 +00:00
david
1f6c6d1aac Only change the port state to PORT_OPEN during service scan if it is not
already open. Rob Nicholls pointed out that setting the state
unconditionally results in multiple messages per port:

Discovered open port 3389/tcp
Discovered open port 3389/tcp
Discovered open port 3389/tcp
Discovered open port 3389/tcp

This is because setPortState has the side effect of printing a message.
2010-01-26 20:14:29 +00:00
david
6804b8d435 Change our match line for "Mac OS X Kerberos" to "MIT Kerberos" because
of new fingerprints from Matt Selsky. Also add a match line for MIT
Kerberos 1.2 from Matt.

The susec field of the response may be represented as an encoded string
of 3, 2, or (rarely) 1 bytes. I adjusted the Kerberos matches to be
specific about how other fields may change when this one does.
2010-01-26 19:40:44 +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
david
3c09069ee4 Show a nicer error message in Ndiff when an input file can't be opened. 2010-01-25 23:07:16 +00:00