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

1865 Commits

Author SHA1 Message Date
sophron
b6435bd19b Fixed an argument's name. 2013-08-03 16:10:21 +00:00
david
85b6312590 Use fetchfile to look for GeoLiteCity.dat.
Apparently it only worked before when you were running from an Nmap
source directory, where nselib was in the current directory.

Roy Woods reported the problem.
http://seclists.org/nmap-dev/2013/q3/48
2013-08-01 02:01:09 +00:00
david
3e1334b5de Allow the file open error message to propagate upward.
The error message from io.open includes the file name and strerror.
2013-08-01 01:36:01 +00:00
sophron
d3cb3dfa37 Fixed category's name in the description of http-default-accounts.nse. 2013-07-29 22:19:59 +00:00
fyodor
f79a11aeeb o [NSE] Oops, there was a vulnerability in one of our 437 NSE scripts.
If you ran the (fortunately non-default) http-domino-enum-passwords
  script with the (fortunately also non-default)
  domino-enum-passwords.idpath parameter against a malicious server,
  it could cause an arbitrarily named file to to be written to the
  client system.  Thanks to Trustwave researcher Piotr Duszynski for
  discovering and reporting the problem.  We've fixed that script, and
  also updated several other scripts to use a new
  stdnse.filename_escape function for extra safety.  This breaks our
  record of never having a vulnerability in the 16 years that Nmap has
  existed, but that's still a fairly good run. [David, Fyodor]
2013-07-29 06:19:24 +00:00
fyodor
b01fd55cb6 Change version number to 6.41SVN and regenerate auto-generated files such as man page, script.db, etc. 2013-07-29 06:00:07 +00:00
sophron
7e0ac25756 Added documentation and comments. 2013-07-25 15:42:16 +00:00
sophron
1fb88abed9 Corrected arguments name on the documentation of the script. 2013-07-25 01:59:07 +00:00
sophron
1f6467d8b6 [NSE] Added whois-domain.nse and renamed whois.nse to whois-ip.nse 2013-07-25 00:57:28 +00:00
sophron
42942a3331 [NSE] Added http-referer-checker that informs about cross-domain include of scripts. 2013-07-18 14:55:16 +00:00
sophron
9c6d376bfc Allowed absolute paths to 'hostnames' argument. 2013-07-18 13:51:11 +00:00
sophron
b14d393918 Fixed syntax mistake. 2013-07-18 13:45:53 +00:00
sophron
f5e084197a [NSE] Added http-xssed that searches the xssed.com database for any previously reported vulnerabilities and outputs the result. 2013-07-18 13:31:27 +00:00
paulino
c5b1fe6cf2 -Adds NSE script to exploit APSA13-01 in Adobe Coldfusion. 2013-07-15 16:40:09 +00:00
sophron
ce43922143 [NSE] Added http-stored-xss that identifies potential stored XSS vulnerabilities. 2013-07-06 14:39:47 +00:00
david
4af2a3c24e Add teamspeak2-version script by Marin Maržić.
http://seclists.org/nmap-dev/2013/q2/413.
2013-07-01 09:07:13 +00:00
david
118ee645b1 Run ventrilo-info only once for TCP and UDP.
Patch by Marin Maržić. http://seclists.org/nmap-dev/2013/q2/413.
2013-07-01 09:07:06 +00:00
david
9bd47a0129 Run murmur-version only once for TCP and UDP.
Patch by Marin Maržić. http://seclists.org/nmap-dev/2013/q2/413.
2013-07-01 09:07:01 +00:00
henri
1ebe659bd5 Prevent script from crashing when running against ::1.
This case wasn't properly handled. Simply return nil.

It could also return 127.0.0.1 or 127.0.0.0/8 instead
of early exit though I doubt it makes that much sense
for user.
2013-06-29 18:36:24 +00:00
henri
b45f3e89f5 Indentation fix. 2013-06-29 18:36:16 +00:00
dmiller
0a8463b77a Remove undefined NSEdoc tag @xml-output from hostmap-ip2hosts 2013-06-26 16:54:54 +00:00
david
e7f22c5aed Actually show the error message from ReceivePacket failure. 2013-06-19 23:53:37 +00:00
dmiller
18bbf3e714 Update script.db for new http scripts 2013-06-18 18:14:32 +00:00
david
83c8e1a9d0 Retab ssl-cert.nse. 2013-06-18 03:58:47 +00:00
sophron
1614b7f594 [NSE] Added http-comments-displayer that extract HTML comments from HTTP responses. 2013-06-18 00:48:01 +00:00
sophron
9b4368e253 [NSE] Added http-fileupload-exploiter that exploits insecure file upload forms in web applications using various techniques. 2013-06-18 00:42:59 +00:00
david
8a01ce5a57 Allow "/" netmask syntax in dns-ip6-arpa-scan.nse.
Based on a patch like Indula Nayanamith.
http://seclists.org/nmap-dev/2013/q2/218
2013-06-13 03:53:40 +00:00
david
8be62726e5 Add http-phpmyadmin-dir-traversal by Alexey Meshcheryakov.
http://seclists.org/nmap-dev/2013/q1/372
2013-05-31 19:59:30 +00:00
dmiller
ba4097af38 os.date format string cleanup
Removed some non-ANSI-C strftime format strings ("%F") and
locale-dependent formats ("%c") from NSE scripts and libraries.
C99-specified %F was noticed by Alex Weber
(http://seclists.org/nmap-dev/2013/q2/300)
2013-05-16 14:59:48 +00:00
henri
76db6d8de3 Indentation fixes. 2013-05-10 07:59:43 +00:00
paulino
ea4c589f54 - Adds http-coldfusion-subzero.nse. This exploit grabs the credentials file, version and install path of vulnerable Coldfusion 9 and 10. 2013-05-10 04:52:02 +00:00
dmiller
612b1c11ea Structured output for address-info 2013-05-07 15:56:41 +00:00
dmiller
0622eb4d03 Structured output for sslv2, s/cypher/cipher/ 2013-05-07 02:01:27 +00:00
dmiller
2cb0cfc936 @xmloutput NSEdoc sections for wdb-version and xmpp-info 2013-05-06 21:40:02 +00:00
dmiller
1ff56f08f8 Structured XML output for irc-info 2013-05-06 21:40:00 +00:00
henri
2a03c65519 Fixes (tested against redis v2.9.9) 2013-05-06 21:11:44 +00:00
henri
a25a1824d6 Redis (at least v2.9.9) returns -NOAUTH to unauthenticated commands. 2013-05-06 21:00:45 +00:00
dmiller
0f47a16746 Structured XML output for wdb-version
Also added a call to WDB_TARGET_DISCONNECT, recommended by @hdm because
some agents will continue sending data until they receive this call or
reboot.
2013-05-06 20:47:02 +00:00
dmiller
3abd1232da Structured XML output for xmpp-info
This involves some reordering and renaming of fields from the previous
output, but hopefully more readable (less vertical whitespace). This
commit depends on the changes to stdnse.output_table to ignore assigning
new keys to nil and to use the __call metamethod to mean has_contents()
2013-05-06 18:39:55 +00:00
dmiller
dbbf2671ba XML output for rpcinfo.nse 2013-05-04 23:12:36 +00:00
dmiller
47eaecef5a XML output for socks-open-proxy
Also fixed some spelling and documentation issues.

Script now notifies if proxy is 1. open, 2. redirecting, or 3. allowing
SOCKS clients but not matching expected patterns.
2013-05-04 21:26:49 +00:00
dmiller
4063944775 Fix socks-open-proxy invalid HTTP GET
socks-open-proxy was sending requests like this:

GET http://www.google.com HTTP/1.0
Host: www.google.com

Which is appropriate for HTTP proxies, but not for SOCKS. Changed to
more appropriate "GET / HTTP/1.0" and it works.
2013-05-04 01:13:28 +00:00
paulino
151657012d -Adds hostmap-ip2hosts.nse. This script lists domain names pointing to the same IP address. 2013-04-30 01:56:29 +00:00
paulino
fd5f8e5180 -updates markup to extract domains ( it was broken )
-adds xml structured output
-updates documentation and adds @xmloutput tag
2013-04-30 01:53:32 +00:00
paulino
2e30c468f4 -Adds xml structured output support and the corresponding @xmloutput tag. 2013-04-30 01:24:10 +00:00
dmiller
93eee124c2 Fix usage of nmap.fetchfile in several scripts
Discussion thread: http://seclists.org/nmap-dev/2013/q2/121

Existing behavior preserved and preferred, but absolute and local paths
should also work now. Notably, smb-psexec's locate_file function claimed
to check current directory but did not.
2013-04-26 12:14:44 +00:00
dmiller
a606766d88 Allow dns-brute.hostlist to be a relative path 2013-04-26 12:14:40 +00:00
david
8a8be1e9f9 Revision of telnet-brute by nnposter.
http://seclists.org/nmap-dev/2013/q2/101

- Changed line termination from \r\0 to \r\n.

- Changed response to the telnet server ECHO "will" / "will not" from
  outright "do not" to an agreement with whatever the server proposes
  to make the script work with some daemons.

- Removed use of receive_lines(), which was causing either time-outs or
  unnecessary connection tear-downs due to waiting on a line
  termination. This change improved the script success rate and/or
  performance (5x in some cases).

- Exposed the connection time-out value as a configurable parameter
  (telnet-brute.timeout). It defaults to 5s.

- Improved handling of connection errors, which were occassionally
  causing credential combinations to be skipped.

- Updated the logged-in status detection logic to make the script work
  with some daemons.

- Avoided overlapping connections to make the script work with daemons
  that allow only one connection at a time.

- Replaced a locally defined routine with stdnse.string_or_blank() for
  printing out credentials. Changed printing of tested credentials in
  the debug output to be consistent with script results.

- Script will now report if it senses password-only authentication.

- Implemented detailed debug messages (e.g. "Sending password") at
  debug level 3 (configurable).

- Expanded the script documentation.
2013-04-26 05:23:12 +00:00
paulino
70dfe708e9 Adds http-vuln-cve2013-0156.nse: Detects Ruby on Rails servers vulnerable to object injection, remote
command executions and denial of service attacks. (CVE-2013-0156)
2013-04-25 03:15:33 +00:00
david
f43f163ec2 Remove http-robtex-reverse-ip script because it pretty much does the same thing as our newer hostmap-robtex
Originally committed by fyodor but recommitted by david after recovery
from backup.
2013-04-12 17:29:24 +00:00