1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-09 06:56:35 +00:00
Commit Graph

1651 Commits

Author SHA1 Message Date
patrik
e97a5b9d5a Add http-dlink-backdoor script that detects DLink routers with firmware
backdoor allowing admin access over HTTP interface.
2013-10-17 23:41:12 +00:00
fyodor
9a4d5de988 Update --proxies docs 2013-08-17 20:09:03 +00:00
fyodor
f6fb3a7773 Update CHANGELOG for Nmap 6.40. I didn't realize just how many great improvements were in this release until I had to write them all down :) 2013-08-17 05:46:26 +00:00
david
f372e17877 CHANGELOG for ICMP ID matching. 2013-08-17 02:18:13 +00:00
david
3728ece727 New revision of telnet-brute by nnposter.
http://seclists.org/nmap-dev/2013/q3/249

- Multi-threaded (thanks to nselib/brute.lua)

- Can automatically reduce number of threads if it senses that the
  target supports less than what brute.lua wants to use. Without this
  feature the script tends to bail out because brute.lua default of 10
  threads is too much for a lot of telnet targets. This saves the user
  the trouble of finding out how much the target can take before
  launching the script.

- Uses connection pooling for sending multiple login attempts across
  the same connection. This significantly improves performance.

- Supports password-only logins.

Other changes:

- Fixed support for Windows telnet service.
  Added support for Netgear RM356.

- Improved accuracy of target state detection.

Tested on:

- Cisco IOS
- Linux telnetd
- Windows telnet service
- Digital Sprite 2
- Nortel Contivity
- Netgear RM356
- Hummingbird telnetd
2013-08-15 07:11:08 +00:00
david
1154495aa3 Add a "key" element to the result of ssh1.fetch_host_key.
ssh-hostkey.nse wanted this element to be present, but it was missing
from SSH1 keys. This caused a crash that was reported by Dan Farmer and
Florian Pelgrim.
http://seclists.org/nmap-dev/2013/q3/151
http://seclists.org/nmap-dev/2013/q3/155
2013-08-11 05:36:48 +00:00
henri
853aaff586 Manage expiration times via a heap queue.
This prevents nsock from iterating over the whole list of events at
each runloop, thus improving performance.

It made it necessary to have pointers from the msevents to the event
lists they belong to. The patch therefore also changes gh_list from
autonomous containers to embedded structures.

Added unit tests accordingly and cosmetic changes to make things look
more consistent.
2013-08-10 23:59:30 +00:00
fyodor
71033d2812 o [NSE] Update dns-cache-snoop script to use a new list of top 50
domains rather than a 2010 list. [Nicolle Neulist]
2013-08-09 04:02:41 +00:00
david
4773f745d8 Add qconn-exec script by Brendan Coles.
http://seclists.org/nmap-dev/2013/q3/153
2013-08-09 03:23:40 +00:00
david
4035012050 Remove the "" entry from search_keywords.
Having this entry made it appear as if there was a search criterion
named for the empty string; i.e., a string like ":foobar" would be
parsed as an operator "" with an argument "foobar". There was no match
function defined for the empty string, which led to this crash:

Version: 6.25
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/zenmapGUI/ScanInterface.py", line 247, in filter_hosts
    self.inventory.apply_filter(filter_string)
  File "/usr/lib/python2.7/dist-packages/zenmapCore/NetworkInventory.py", line 502, in apply_filter
    if not self._match_all_args(host, operator, args):
  File "/usr/lib/python2.7/dist-packages/zenmapCore/NetworkInventory.py", line 452, in _match_all_args
    if positive != self.__getattribute__("match_%s" % operator)(host, arg):
AttributeError: 'FilteredNetworkInventory' object has no attribute 'match_'

I did some quick tests and plain keyword searching (with no colon) seems
to still work. I'm not sure why the "" entry was ever present.

Reported by Kris Paernell.
http://seclists.org/nmap-dev/2013/q3/38
2013-07-31 21:12:51 +00:00
fyodor
d6a013dc51 Note that the 6.40 changelog is still incomplete. I hope to finish it today before leaving for Las Vegas tomorrow. 2013-07-29 09:10:34 +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
d33tah
5ff69d478f Mention adding the environment variables in nmap's CHANGELOG. 2013-07-24 18:07:58 +00:00
david
f845bf38c4 CHANGELOG for Nping ICMP ID matching. 2013-07-17 04:48:05 +00:00
paulino
8f543adb62 Added http-adobe-coldfusion-apsa1301.nse 2013-07-15 18:10:12 +00:00
david
76264da093 Consider fec0::/10 private.
This is the site-local prefix deprecated by RFC 3879. Suggested by Marek
Majkowski, who noticed that the prefix was included in Tor's
tor_addr_is_internal_ function.
2013-07-03 06:09:35 +00:00
d33tah
6a9548e147 add the CHANGELOG entry for --lua-exec. 2013-07-02 17:03:31 +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
b415564df9 Sort routes first by netmask, then by metric.
Metric is used to break ties between routes with the same size netmask.
2013-06-30 17:38:15 +00:00
david
1d7e8b338c CHANGELOG for -i in listen mode.
http://seclists.org/nmap-dev/2013/q2/403
2013-06-30 06:08:47 +00:00
david
af8c57a1b8 Don't use htons to unconditionally swap bytes.
htons is a no-op on big-endian architectures. This affected idle scan IP
ID computations.

http://seclists.org/nmap-dev/2013/q2/529
2013-06-30 02:22:13 +00:00
david
9e82bb6c4e Support chained certificate files with --ssl-cert.
Use the recommended SSL_CTX_use_certificate_chain_file over
SSL_CTX_use_certificate_file.
https://www.openssl.org/docs/ssl/SSL_CTX_use_certificate.html#NOTES

Patch by Greg Bailey.
http://seclists.org/nmap-dev/2013/q2/399
2013-06-29 22:33:56 +00:00
henri
4f36ba9798 Stop parsing TCP options after reaching EOL in libnetutil. Bug reported
by Gustavo Moreira.
2013-06-17 18:19:24 +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
b30aba076a Set the default --max-conns to 60 on Windows.
Suggested by Andrey Olkhin.
http://seclists.org/nmap-dev/2013/q1/390
2013-06-02 09:03:44 +00:00
david
02cb2931aa Fix rt_msghdr padding on NetBSD.
NetBSD uses a fixed 64-bit padding, unlike OS X (32-bit), and unlike
other platforms (sizeof(unsigned long)). There is an RT_ROUNDUP macro
that does the right alignment; use that when available.

http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/lib/libc/net/getifaddrs.c
http://fxr.watson.org/fxr/source/net/route.h?v=NETBSD#L270

Rounding to 4 bytes was breaking with IPv6 addresses, which are 28
bytes. The pointer was being advanced by 28 instead of 32. Compare to
r29739, somewhat similar.

Reported by Fredrik Pettai.
http://seclists.org/nmap-dev/2013/q1/384
2013-06-01 16:28:44 +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
david
5757bfb11b Add a service probe for Erlang distribution nodes from Michael Schierl.
http://seclists.org/nmap-dev/2013/q1/360
2013-05-31 19:59:27 +00:00
henri
4a261dd5f2 Updated libdnet to not SIOCIFNETMASK before SIOCIFADDR on OpenBSD. This was
reported to break on -current as of May 2013. [Giovanni Bechis]
2013-05-17 21:38:08 +00:00
david
5ab1b23bf0 Fix address matching in -PY ping.
Patch by Marin Maržić.
http://seclists.org/nmap-dev/2013/q2/297
2013-05-17 07:56:51 +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
david
a5134555c6 Add Polish translation by Jacek Wielemborek.
http://seclists.org/nmap-dev/2013/q2/292
2013-05-14 18:11:44 +00:00
paulino
36fefe7467 Adds entry about http-coldfusion-subzero 2013-05-10 04:55:32 +00:00
henri
b51a943a48 Added a minimal regression test suite for nsock. 2013-05-08 11:52:28 +00:00
henri
ce206c7631 Changelog for the redis scripts updates. 2013-05-06 21:14:33 +00:00
david
cb32101ae5 CHANGELOG for IPv6 proxy fixes. 2013-05-05 10:45:08 +00:00
dmiller
863a3779e6 New service probe and matchline for Minecraft servers
Lots of good info here. Idea, regex, and debugging provided by Eric
Davisson on IRC.
2013-05-02 18:55:59 +00:00
paulino
fc472edbd1 Updates CHANGELOG to reflect latest changes in hostmap scripts and new script http-vuln-cve2013-0156. 2013-04-30 16:19:50 +00:00
david
f0b2e10664 Add service probe for Hazelcast from Pavel Kankovsky.
http://seclists.org/nmap-dev/2013/q2/7
2013-04-27 08:02:42 +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
henri
2b093d6ada ChangeLog for nsock proxy support. 2013-04-22 19:37:09 +00:00
david
13abd4df8a Restore empty rpc_info field to gnmap port output from r29619.
Patch by Daniel Miller.
2013-04-17 22:48:31 +00:00
david
fac98776b7 Update Zenmap it.po translation.
By Giacomo.
http://seclists.org/nmap-dev/2013/q2/0

Recommitted after recovery from backup.
2013-04-12 17:29:29 +00:00
dmiller
11d34ec9b4 Changelog entry for time-exceeded port reason 2013-03-28 21:11:46 +00:00
patrik
1605b0d219 add CHANGELOG entry for changes in broadcast-listener 2013-03-16 03:18:38 +00:00
dmiller
7a7bd78468 Changelog entry for timespec script-args 2013-03-06 15:20:51 +00:00
david
6d83daa08c Check if an interface is known to pcap before adding its name servers.
Kenneth Frazier reported that sometimes Nmap would use name servers from
inactive interfaces. Let's try checking the interface GUIDs against
those known by libpcap.
http://seclists.org/nmap-dev/2013/q1/292
2013-03-05 06:14:02 +00:00
david
c3d079a584 Namespace subprocess pipes by PID.
Patch by Andrey Olkhin.
http://seclists.org/nmap-dev/2013/q1/210
2013-03-02 07:34:49 +00:00
david
af4f519f10 CHANGELOG for host deferral. 2013-02-26 03:39:26 +00:00
david
801e69e323 Update ip-geolocation-geoplugin.nse for a new data format.
The response seems to be plain JSON now, with nothing extraneous.
Reported by Robin Wood.
http://seclists.org/nmap-dev/2013/q1/232
2013-02-24 02:50:03 +00:00