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

3106 Commits

Author SHA1 Message Date
david
000a1ee3ac Regenerate configure and aclocal.m4 with Autoconf 2.63. 2009-08-06 19:58:10 +00:00
david
1a3b7c1360 Bail out of traceroute if the initial TTL guess probe is not responded
to. Currently continuing from there leads to pathological behavior where
every hop up to 50 is tried, taking a very long time.
2009-08-06 18:47:10 +00:00
david
960e60c89a Use sizeof to get buffer sizes for Snprintf in traceroute.cc instead of
using magic constants.
2009-08-06 18:02:25 +00:00
david
fc061a79ba Add " ms" to the times in the RTT column in traceroute output. 2009-08-06 17:58:55 +00:00
josh
1d45eaf352 Changd some calls to ctype functions so that their arguments are explicitly cast
to type int.
2009-08-06 16:12:21 +00:00
josh
df71e36084 Updated uses of the ctype function to support explict casting of the arguments
to (int)(unsigned char).
2009-08-06 15:10:00 +00:00
jah
990db60861 Prevent an error ocuring when --script-arg snmplist is not supplied.
snmplist is not a required arg since a default list of community strings is
provided.
2009-08-06 09:56:07 +00:00
jah
7971081999 Remove unused and undeclared variable name "method". 2009-08-06 09:50:36 +00:00
fyodor
46866b4483 Changes from NSE meeting 2009-08-05 02:37:51 +00:00
fyodor
26799268f4 changes from discussion w/David 2009-08-04 21:23:22 +00:00
batrick
80555cdc60 Added a note on the presence of strict.lua and the danger
of global variables for libraries.
2009-08-04 03:26:35 +00:00
david
fdd82d1576 Call tostring on table keys before concatentating them in
nsedebug.tostr, so it at least doesn't crash when a table has another
table as a key.
2009-08-03 23:48:06 +00:00
kris
8b13026ef9 update ip_is_reserved(): 175/8 and 182/8 allocated this month 2009-08-03 19:35:16 +00:00
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