1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00
Commit Graph

4571 Commits

Author SHA1 Message Date
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
bb2e8c439b Factor out common code for HTTP request building. Replace the two-step
buildGet/buildRequest with a one-step build_request. Provide a new
function generic_request that can do a request for any given method
(get, head, and post are now defined in terms of this function).
2010-02-19 04:54:28 +00:00
david
7f892c1563 Don't pass the cookies table as a parameter, but as a member of the
options table, in http functions. It was unreasonable that this
yet-unused feature was given a more prominent place than even the header
and request body, both of which are in the options table.

This change doesn't affect any other scripts or libraries because none
of them use cookies. In the cases, like http.get, where cookies was an
optional final parameter, I just removed it. Where it was not the final
parameter, as in http.post and http.pGet, I left the parameter in place
but documented that it is ignored for backwards compatibility.
2010-02-19 03:25:57 +00:00
david
ffd7a6dba5 Do some cleanup and shortening of http-methods.nse. 2010-02-19 02:34:45 +00:00
david
9632670762 o The -v and -d options are now handled in the same way. The three
forms are equivalent:
    -v -v -v    -vvv    -v3
    -d -d -d    -ddd    -d3
  Formerly, the -ddd and -v3 forms didn't work. Mak Kolybabi submitted
  a patch.
2010-02-17 19:12:15 +00:00
david
d14f12d2f1 Add more pending NSE review to TODO. 2010-02-17 17:56:57 +00:00
david
6a2598772a Add to CHANGELOG:
o Nping, the packet generation program by Luis MartinGarcia, is now
  included in the Nmap distribution.
2010-02-17 01:59:05 +00:00
david
a669c3a39f Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping
into the standard distribution.
2010-02-17 01:46:34 +00:00
david
fca2f90143 Add a couple more pending script reviews to TODO. 2010-02-17 00:49:47 +00:00
fyodor
e7c3022fea updates to TODO 2010-02-16 23:06:07 +00:00
ron
811ebc1e44 Updated script.db with http-vmware-path-vuln.nse 2010-02-16 18:25:30 +00:00
patrik
2ed728a6f1 Corrected incorrect match line for SqueezeCenter CLI and added song count 2010-02-16 16:09:54 +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
3f36981440 Qualify an assertion to allow zero-byte writes in Nsock. The assertion
checked that the internal buffer was not empty before a send; I changed
it to have an effect only when at least one byte has been written
already.

Formerly, zero-byte sends such as socket:send("") in NSE would crash
Nmap, for both UDP and TCP. I tested this change on Linux, and for UDP
it sends a zero-byte datagram, and for TCP it sends nothing at all.
2010-02-15 20:21:29 +00:00
patrik
cd0e6496c6 Added a service probe for Logitech SqueezeCenter command line interface 2010-02-15 18:59:29 +00:00
patrik
fe8074c836 Improved PostgreSQL match lines by matching the line of the error to a specific version. 2010-02-13 08:15:58 +00:00
david
3a11dafeaa o Added a mac_addr_next_hop member to the host tables used in NSE.
[Michael Pattrick, kx].
2010-02-13 01:48:59 +00:00
kris
003cc98eab nmap.luadoc typos 2010-02-12 23:41:56 +00:00
david
69235612bd Add to CHANGELOG:
o Removed the nmap_service.exe helper program for smb-psexec, as it
  was still being flagged by malware detection even after the
  bit-flipping in the next release. You can now download it from
  http://nmap.org/psexec/nmap_service.exe. (The script will remind you
  if it's not installed.)
2010-02-12 23:19:26 +00:00
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