1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-19 05:59:01 +00:00
Commit Graph

3493 Commits

Author SHA1 Message Date
ithilgore
89c46b7401 Fixed slight man page typo. 2009-07-31 22:08:36 +00:00
venkat
3771a6da75 Removed the repeated time related macros from nsock_utils.h of nsock and
utils.h of nmap and put them as one copy in nbase.h.
2009-07-30 17:11:18 +00:00
david
69e888bc4f Add to CHANGELOG:
o [Ncat, Ndiff] The exit codes of these programs now reflect whether
  they succeeeded. For Ncat, 0 means the connection was successful, 1
  indicates a network error, and 2 indicates any other error. For
  Ndiff, 0 means the scans were equal, 1 means they were different,
  and 2 indicates a runtime error. [David]
2009-07-30 14:43:16 +00:00
david
05e5348b57 Normalize the Ndiff exit codes.
0 if the scans are equal,
	1 if they differ, and
	2 for runtime errors.
Add tests and man page documentation.
2009-07-30 14:40:46 +00:00
joao
24b5c338b6 New lib to deal with proxies from scripts.
This lib is being used on the proxy detection scripts, but can also be used to deal with proxy handshaking.
2009-07-30 02:11:21 +00:00
joao
c24c728b5d Scripts now use fallback requests when valid codes are received but pattern was not found.
Scripts now use the lib proxy.lua to perform similar tasks
2009-07-30 02:08:55 +00:00
fyodor
928de03d3d more updates from NSE meeting, plus a way to further de-bloat the Nmap tarball 2009-07-29 19:04:22 +00:00
david
8c9b905682 Fix o.current_scantype management for traceroute. If you were scanning
only one host it used to be unset, so the ScanProgressMeter would say
"Host Discovery" or something rather than "Traceroute".
2009-07-29 16:20:07 +00:00
david
47bbcc165f Use ICMP echo for traceroute if no other responsive probe is known. This
can happen with -PN against a filtered host or with -PN -sP against any
host.

This works as expected when the remote host actually responds to the
ping probes, but takes a long time when the remote host ignores it. Take
this for example:

nmap -PN -sP --traceroute www.microsoft.com -n
TRACEROUTE (using proto 1/icmp)
HOP RTT   ADDRESS
1   0.77  192.168.0.1
2   38.76 206.81.73.81
3   38.65 206.81.73.82
4   39.28 66.54.149.185
5   39.73 63.211.250.17
6   39.15 4.68.107.190
7   40.05 4.69.132.37
8   59.33 4.69.132.106
9   54.55 4.69.145.208
10  ...
11  ...
    [Lots more lines]
49  ...
50  ...
! maximum TTL reached (50)
Nmap done: 1 IP address (1 host up) scanned in 2201.79 seconds

The traceroute can't stop, as it normally does, when it gets a response
from the target because no such response is forthcoming. So it keeps
going until it hits its own limit. The same trace against www.google.com
takes only about 30 seconds.
2009-07-29 16:06:03 +00:00
fyodor
7a8942eff2 some changes from NSE meeting today 2009-07-29 07:36:31 +00:00
david
f39df29350 Update an obsolete traceroute comment and fix some indentation. 2009-07-29 01:29:55 +00:00
david
7194d27631 Fix a logic error in getinterfaces_siocgifconf. The check for increasing
the capacity of the list of interfaces was off by one. This caused a
crash on initialization for systems with more than 16 network
interfaces.
2009-07-28 22:34:48 +00:00
fyodor
d29a3b7c36 TODO changes from chat w/David 2009-07-28 22:33:40 +00:00
venkat
15e2997e66 Added entry for wildcard SSL certificate support to Ncat 2009-07-27 23:44:07 +00:00
david
eac15cb919 Apply a patch by Dmitry Levin that uses a network interface's full name,
including alias extension, in several places to avoid this error message
when an alias has an IP address but the primary interface doesn't:
Failed to lookup subnet/netmask for device (venet0): venet0: no IPv4 address assigned
The patch also considers an interface alias if the primary interface
does not appear in the list of interfaces (perhaps because it does not
have an IP address assigned) when building the table of routes.
2009-07-27 19:01:58 +00:00
david
6192fbdd31 Make the Ncat options --ssl-cert, --ssl-key, and --ssl-trustfile imply
--ssl.
2009-07-27 03:13:56 +00:00
venkat
55f72ba7b9 Added entry for ssl version fallback patch 2009-07-25 21:07:20 +00:00
batrick
cf9ed0d411 [NSE] --script-args may now have whitespace in unquoted strings (but
surrounding whitespace is ignored). Here is a simple example for clarity:
  --script-args 'greeting = This is a greeting'
  Becomes: { ["greeting"] = "This is a greeting" }
2009-07-25 19:45:05 +00:00
fyodor
7ae8aaaf97 portable ncat/nmap/nping/ndiff ideas -- including portable Winpcap task idea 2009-07-25 08:17:53 +00:00
david
9aebba220c Merge from svn://svn.insecure.org/nmap-exp/daniel/{nmap,ncat,nsock}-sctp.
This adds SCTP support (including SSL over SCTP) to Nsock and Ncat.
2009-07-25 00:03:48 +00:00
joao
53cefe9de0 Included Rob Nicholl's http-enum.nse script 2009-07-24 09:18:34 +00:00
joao
6218ce14a5 Added POST and HEAD support to http.lua 2009-07-24 08:00:32 +00:00
david
5003d2096e In http-date.nse, don't pad the minutes with a 0 if there are no hours
before it.
2009-07-23 23:17:00 +00:00
josh
588b510945 Updated the changelog to reflect the merging of the new zenmap-filter code
into the trunk.
2009-07-23 05:44:24 +00:00
david
25e77a8535 Add <refmiscinfo source="..."> and <refmiscinfo manual="..."> to
ndiff.xml to avoid FIXME errors in ndiff.1.
2009-07-23 03:41:30 +00:00
david
e801b1b341 Fix a memory leak in nse_pcrelib.cc. A string was being copied with
strdup before being handed to lua_pushstring. That was excessive because
lua_pushstring already makes its own internal copy of the string. This
was found by Coverity.
2009-07-23 02:59:57 +00:00
venkat
f673eff211 added entry for ncat stats 2009-07-22 21:52:08 +00:00
david
9a13866a7a Apply a format string vulnerability patch by Dmitry Levin. The code in
question had already been made safe by Guillaume Rousse in r14432, but
Dmitry's patch also gets rid of a temporary buffer.
2009-07-22 16:01:23 +00:00
david
d04076d602 Change some digits in the ARP filter comment to avoid possible
confusion.
2009-07-22 15:30:43 +00:00
david
a76689b17f The ARP host discovery scan now filters ARP packets based on their
target address address field, not the destination address in the
enclosing ethernet frame. Some operating systems, including Windows
7 and Solaris 10, are known to at least sometimes send their ARP
replies to the broadcast address and Nmap wouldn't notice them. The
symptom of this was that root scans wouldn't work ("Host seems
down") but non-root scans would work. Thanks to Mike Calmus and
Vijay Sankar for reporting the problem, and Marcus Haebler for
suggesting the fix.
2009-07-22 15:13:48 +00:00
jah
d0179addd1 Changed the handling of the values returned from dns.query() (changed in r14493) 2009-07-22 10:12:45 +00:00
jah
26709f8b3b Changed the handling of the values returned from dns.query() (changed in r14493) 2009-07-22 10:12:17 +00:00
jah
3bb8e6a7c0 Changed the handling of the values returned from dns.query() (changed in r14493) 2009-07-22 10:10:42 +00:00
jah
fe186c5500 Normalised the return values from dns.query() (and consequently
dns.findNiceAnswer() and associated answerFetcher functions).
(see http://seclists.org/nmap-dev/2009/q3/0253.html )

Improved the handling of MX records.
2009-07-22 10:04:41 +00:00
fyodor
185aa2d402 Bump up SVN version number to 5.05BETA1 to reduce confusion, also regen scripts.db 2009-07-22 00:38:58 +00:00
fyodor
1cd311c016 changes from NSE meeting w/David, Patrick, and Joao 2009-07-22 00:37:03 +00:00
david
c30888e04e Make -fno-strict-aliasing unconditional when using GCC. It was intended
to be enabled when the GCC major version was greater than or equal to 4,
but the test was backwards to it was in effect for for versions less
than or equal to 4. So it was in effect already unconditional.
-fstrict-aliasing is supported all the way back in 2.95.2, and I suppose
-fno-strict-aliasing is too.
2009-07-22 00:32:57 +00:00
batrick
cadc08047f [NSE] Add the filename and runlevel globals to scripts when loaded via
Script.new. Because of the new strict.lua library being added, scripts
would look for the absent filename global at load-time and fail due to an
error (ssh-hostkey.nse).
2009-07-21 22:21:48 +00:00
fyodor
80c7b8af1b TODO updates after chat w/David 2009-07-21 21:29:04 +00:00
fyodor
e6490b856b Add an ncat idea which is worth thinking about but may or may not be worth implementing 2009-07-21 20:16:08 +00:00
david
264c3e2302 Slightly expand an OS fingerprint based on a followup report. 2009-07-21 14:01:15 +00:00
david
9cb6dd338d Use logical rather than bitwise or in NmapOps::RawScan to avoid a compiler
warning about mixing int and bool types.
2009-07-20 23:06:26 +00:00
david
a88bda3d78 Make it a warning, not a fatal error, when we can't get the hardware address
for an interface, and skip the interface. The warning looks like

Warning: Unable to get hardware address for interface %s -- skipping it.

This happens when a FireWire interface (fw*) has an address configured on Mac
OS X. Previously Nmap would die in getinterfaces so it wasn't even possible to
scan over the other interfaces.
2009-07-20 18:59:58 +00:00
david
00ae29389a Remove an unused variable from scan_engine.cc. 2009-07-20 15:35:52 +00:00
fyodor
1736dde56c Applied patch:
o Fixed a log_write call and a pfatal call to use a syntax which is
  safer from format strings bugs.  This allows Nmap to build with the
  gcc -Wformat -Werror=format-security options. [Guillaume Rousse]
2009-07-19 07:23:32 +00:00
fyodor
e4c5e1e6d4 generate latest nmap-mac-prefix from 7/18/09 IEEE oui.txt 2009-07-19 06:26:07 +00:00
david
d6c9e19a2c Add -Pn and -sn synonyms for -PN and -sP respectively. 2009-07-19 05:13:07 +00:00
david
82a668c278 Remove the "Linux goofiness" zero-byte write test from scan_engine.cc.
See r14426 in /nsock.
2009-07-19 04:04:32 +00:00
fyodor
935d0677da Added Nmap 5.00 to the CHANGELOG 2009-07-18 22:23:23 +00:00
batrick
59b2c83234 If neither --script nor -sV is present, then do not load NSE. Before, NSE
would load despite script scanning not being activated. See [1] for
preliminary patch from Solar Designer and motivation.

[1] http://seclists.org/nmap-dev/2009/q3/0207.html
2009-07-18 14:56:07 +00:00