1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 23:19:03 +00:00
Commit Graph

4571 Commits

Author SHA1 Message Date
david
1df23cd859 In x11-access.nse, make the portrule run the script if the port number
is 6000-6009 *or* the service starts with "X11". In this case it didn't
matter because those ports do start with "X11" in nmap-services, but
this better matches the shortport.port_or_service model.
2009-08-08 20:01:18 +00:00
david
2f54cb191f Add the x11-access.nse script by vladz. See
http://seclists.org/nmap-dev/2009/q3/0479.html.
2009-08-08 19:49:05 +00:00
jah
8341de219a Exit the script cleanly rather than throwing an error when attempting to
receive_bytes() from a portmapper service which fails to respond with data.
2009-08-08 01:51:32 +00:00
ithilgore
860686e001 Changed the Makefile default paths according to the discussion here: http://seclists.org/nmap-dev/2009/q3/0449.html
Unfortunately, it seems cygwin doesn't know how to expand a variable like %ProgramFiles% so that the Makefile would be locale-agnostic, so I just modified it for the most common version of "Program Files".
2009-08-08 01:33:21 +00:00
josh
637ec7aea0 Updated CHANGELOG to note the ctype audit changes. 2009-08-08 00:31:41 +00:00
batrick
080f592e89 Fixed a typo. 2009-08-07 22:58:45 +00:00
david
32c5bbf7f4 Put "strict.lua" in a filename element. Add an indexterm for it. Put
"nil" in a literal element.
2009-08-07 22:44:30 +00:00
david
acc8fae1ed Update ltmain.sh to version 2.2.6 for libdnet. 2009-08-07 17:42:12 +00:00
david
66984b8029 svn:ignore autom4te.cache. 2009-08-07 17:33:33 +00:00
fyodor
1df031bd43 Note in configure --help that the --with-libdnet=DIR configure option is NOT RECOMMENDED since we include many important fixes in our version; regenerated configure script. 2009-08-07 07:38:23 +00:00
david
41dadaedb7 Use socklen_t as the type in arguments to getsockname and getsockopt to
avoid a "pointer targets differ in signedness" warning. Add a check for
socklen_t in configure.in; if it's not present, typedef it to int.
2009-08-07 00:11:57 +00:00
fyodor
3f37e4f7a7 Just note a web page I need to update 2009-08-06 22:45:27 +00:00
david
36c672cdd7 autoreconf with Autoconf 2.63, Automake 1.10.1, and libtool 2.2.6. 2009-08-06 22:00:34 +00:00
david
b47b0db086 Don't use the removed directorie man, python, and test in Makefile.am.
Pass the arguments "-I config" to aclocal. This makes it possible to
rebuild all the Autotools files with autoreconf.
2009-08-06 21:45:19 +00:00
fyodor
4ff0e866d1 Add an IPv6 nameserver related issue 2009-08-06 21:39:09 +00:00
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