1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 06:59:03 +00:00
Commit Graph

8575 Commits

Author SHA1 Message Date
dmiller
c3a165609d A couple minor typos in refguide related to --proxies 2013-08-20 15:01:51 +00:00
fyodor
f2be278c32 Add some items suggested by Henri 2013-08-18 18:44:25 +00:00
sophron
9561155701 Patch by nnposter that improves performance of http-default-accounts
http://seclists.org/nmap-dev/2013/q3/346

For any given fingerprint from http-default-accounts-fingerprints
script http-default-accounts currently tests corresponding default
credentials if at least one  of the probe URLs succeeded, namely
returned with status other than 404.

Some web servers, such as Linksys devices, respond with HTTP/401 even
for non-existent URLs. This causes the script to assume that these URLs
do exist and to test the credentials, while ideally they should be
tested only on those servers where they make sense.

The purpose of the attached patches is to reduce unnecessary credential
guessing by implementing a new optional fingerprint element, function
target_check(), which takes some already collected target information,
including a probe URL response, and returns true or false, indicating
whether the credential guessing should be attempted or not.

All of the current fingerprints have been retrofitted with simple
target validations as follows:

* If the fingerprint uses native HTTP authentication, validate that the
target's realm matches the server type.

* If the fingerprint uses form-based authentication, validate that the
probe URL returned with HTTP/200 (as opposed to perhaps HTTP/401).

When testing against the above-mentioned Linksys the difference was
notable: 14 login attempts before the patch versus 1 attempt after the
patch.

This functionality provides opportunity for further improvement by
being able to match page content to differentiate between real HTTP/200
and a custom error page. (As of now the script completely skips targets
that return HTTP/200 for non-existent pages.)
2013-08-18 01:42:48 +00:00
fyodor
9f0db3819e Add some Nsock proxy todos and note some done tasks 2013-08-17 20:13:00 +00:00
fyodor
85e74c4075 Regen man pages 2013-08-17 20:09:25 +00:00
fyodor
9a4d5de988 Update --proxies docs 2013-08-17 20:09:03 +00:00
henri
179451f485 Document --proxies option. 2013-08-17 11:47:42 +00:00
henri
59e68ddffb Add --proxies to nmap help screen. 2013-08-17 11:46:34 +00:00
sophron
683e83117b [NSE] Convert these values to numeric (for example, when they passed as command line args). 2013-08-17 06:03:45 +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
262c147308 Match icmpid in icmp_probe_match.
Remainder of Chris Johnson's patch from
http://seclists.org/nmap-dev/2013/q3/296.

Previously, Nmap could match replies that came in response to an
original probe, with one of the retransmissions of the probe. One effect
was that latency would be measured to be smaller than it should. Chris
Johnson summarized the problem and showed how to reproduce it at
http://seclists.org/nmap-dev/2013/q3/113.
2013-08-17 02:18:09 +00:00
david
4b47eae996 Store ICMP ID in ICMP probes.
Part of Chris Johnson's patch from
http://seclists.org/nmap-dev/2013/q3/296.
2013-08-17 02:18:07 +00:00
david
f49e3435f8 Factor out icmp_probe_match.
Part of Chris Johnson's patch from
http://seclists.org/nmap-dev/2013/q3/296.
2013-08-17 02:18:05 +00:00
fyodor
fefb410a72 Sort nmap-os-db 2013-08-17 00:39:44 +00:00
fyodor
796c90ee0e Minor updates to the descriptions of some new scripts 2013-08-17 00:38:27 +00:00
david
1c0e86596e Split Windows/POSIX implementations of ncat_openlog.
O_BINARY doesn't exist on POSIX.
2013-08-16 21:33:41 +00:00
sophron
8477e0586a [NSE] Updated parse_form function to support double quotes and return more attributes. 2013-08-16 20:04:12 +00:00
david
f43781f3d9 XFAIL Unix domain socket tests on Windows. 2013-08-16 17:09:06 +00:00
david
b01285b8f3 Automatically XFAIL SCTP tests on Windows. 2013-08-16 17:09:03 +00:00
david
a6dafe881c Put test filehandles into binary mode. 2013-08-16 17:08:55 +00:00
david
ec311d78c5 Open log files in binary mode.
This avoids CRLF translation on Windows.
2013-08-16 17:08:46 +00:00
david
343e09c2fa Push c_ins so that they aren't automatically closed. 2013-08-16 08:03:22 +00:00
david
48058be247 Typo. 2013-08-16 08:03:20 +00:00
david
e373fd5a5c Must connect to "localhost" to match server cert. 2013-08-16 08:03:18 +00:00
david
91cce4c3d2 Connect to ::1 when -6 appears in the options. 2013-08-16 08:03:16 +00:00
david
623b3b9ae4 Close some sockets that ncat-test.pl open itself.
I was getting intermittent "address already in use" errors.
2013-08-16 08:03:14 +00:00
david
43f364de1a Typos. 2013-08-16 08:03:12 +00:00
david
70e96fb8ee Use 127.0.0.1 or ::1 where it counts. 2013-08-16 08:03:10 +00:00
david
b76967c325 Don't use a listen address by default. 2013-08-16 08:03:08 +00:00
david
1baf716fd0 Don't wait on server that doesn't listen. 2013-08-16 08:03:06 +00:00
david
02a7dc917f Clear up some more localhost/127.0.0.1 confusion. 2013-08-16 08:02:58 +00:00
david
f9f8937057 Remove hardcoded delay in favor of waiting for a LISTEN message. 2013-08-16 08:02:57 +00:00
david
f1cfaba9e2 Output a LISTEN test message when do_listen is successful. 2013-08-16 08:02:55 +00:00
david
e2f4833fd1 Add logtest function. 2013-08-16 08:02:52 +00:00
david
68dc04479d Add --test option.
This will be used to control the printing of test messages that say when
a connection is ready to use, to reduce delays in ncat-test.
2013-08-16 08:02:50 +00:00
david
70b7203d3f Listen on IPv4 by default explicitly. 2013-08-16 08:02:49 +00:00
david
929ade0b11 Autoflush ncat-test.pl output. 2013-08-16 01:34:39 +00:00
david
bbde6ff4b2 Consistency. 2013-08-16 01:34:37 +00:00
sophron
d93a4a21fe Replace the concatenation with a more uniform function call. 2013-08-15 17:36:21 +00:00
sophron
af81f31573 Correctly handle cases where the basepath consists of a single character other than "/". 2013-08-15 17:32:39 +00:00
david
1f372aa911 Make format string specifiers better match types.
Suggested by Gisle Vanem.
http://seclists.org/nmap-dev/2013/q3/269
2013-08-15 08:07:26 +00:00
david
4961ebf047 8-byte display for SCTP checksum. 2013-08-15 08:07:24 +00:00
david
ed237e8e19 Use %lu instead of %ul.
Discovered by Gisle Vanem.
http://seclists.org/nmap-dev/2013/q3/269
2013-08-15 08:07:21 +00:00
david
784b1ef4e8 Swap SCTP vtag and csum in HIGH_DETAIL output.
Discovered by Gisle Vanem.
http://seclists.org/nmap-dev/2013/q3/269
2013-08-15 08:07:14 +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
d33tah
c46f8f0ca4 Fix coding style in my code. 2013-08-13 19:54:09 +00:00
henri
61f6696ae3 Wrong inclusion path. 2013-08-13 17:55:36 +00:00
henri
456430c676 Windows compatibility fix.
Initialize winsock before starting nsock test suite.
Initial patch from Gisle Vanem.
2013-08-13 12:36:28 +00:00
henri
0054b3ff4f Windows compatibility fix.
Initialize winsock in ncat addrset test.
Initial patch from Gisle Vanem.
2013-08-13 12:36:19 +00:00