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
joao
c455e12b7d http.lua using a different approach to deal with ssl connections. Now it is using the comm.tryssl method. 2009-07-13 15:24:14 +00:00
daniel
47940be062 Update TODO.sctp to reflect recent progress in Ncat SCTP support. 2009-07-13 09:48:24 +00:00
david
635850af8b Small documentation updates for script output support in Ndiff. 2009-07-13 06:06:58 +00:00
david
ba53f578b3 Show script output in Ndiff text output. 2009-07-13 05:59:05 +00:00
david
b9f994e71d Add script output to Ndiff XML output. 2009-07-13 05:34:13 +00:00
david
fda75eea6c Move the text output of port diffs from the HostDiff class to the
PortDiff class.
2009-07-13 04:19:21 +00:00
fyodor
c29429ecb5 2009-07-13 01:34:45 +00:00
david
7dbe9e55d3 Add to CHANGELOG:
o A bug in Nsock was fixed: On systems where a nonblocking connect
  could succeed immediately, connections that were requested to be
  tunnelled through SSL would actually be plain text. This could be
  verified with an Ncat client and server running on localhost. This
  was observed to happen with localhost connections on FreeBSD 7.2.
  Non-localhost connections were likely not affected. The bug was
  reported by Daniel Roethlisberger. [David]
2009-07-13 00:06:38 +00:00
david
276a2f195c [NSE] Scripts that are listed by name with the --script option now
have their verbosity level automatically increased by one. Many
will print negative results ("no infection found") at a higher
verbosity level. The idea is that if you ask for a script
specifically, you are more interested in such results.
2009-07-12 19:35:56 +00:00
fyodor
6a9f1caf3f 2009-07-12 08:19:56 +00:00
fyodor
2447224881 2009-07-12 06:59:29 +00:00
fyodor
e9bf63538d Add web application attack TODO--comparision w/Nessus http://blog.tenablesecurity.com/2009/06/enhanced-web-application-attacks-added-to-nessus.html 2009-07-12 01:26:07 +00:00
venkat
5398e697d0 Remove stray character left over in r14198. 2009-07-12 00:57:11 +00:00
venkat
d51dd6e956 Added proxy code change entry 2009-07-12 00:51:37 +00:00
fyodor
ed5eda1a1e Note how nice it would be if we had Nmap/Zenmap/Ncat promotional and training videos 2009-07-12 00:28:02 +00:00
fyodor
97144b2ae1 trivial spacing differences 2009-07-12 00:19:53 +00:00
david
5abf361663 Visually simplify the code that builds the port table. 2009-07-11 02:26:02 +00:00
kris
8d65f4e28d Make Ncat's --send-only actually not receive from the network when used in
listen and/or broker modes.
2009-07-11 00:16:39 +00:00
david
a660b37026 Parse script results. 2009-07-10 23:55:29 +00:00
david
4b99c96667 Run whois.nse in complex.xml so it has a hostscript. 2009-07-10 23:50:44 +00:00
david
72949e27e8 Remove the test for the sort order of addresses. The idea behind that
was that if a host had multiple addresses of the same type, they should
be sorted numerically, not alphabetically. So 20.0.0.1 should come
before 100.0.0.1. But the way Nmap works, I don't think a host can have
more than one address of the same type, and it's not worth the code it
would take to make them sort properly if it did.
2009-07-10 23:30:32 +00:00
david
3d3e3b8515 Regnerate test scan files, add script scanning, version detection, and
OS detection to complex.xml.
2009-07-10 23:28:28 +00:00
david
3b18401d5d Do SSL_read in the same place as a normal socket read in ncat_broker.c
so that read errors for both can be handled in the same place. SSL_read
errors were not being handled at all, which would cause the Ncat broker
to use 100% CPU after a client disconnected. The problem was reported by
Kris at http://seclists.org/nmap-dev/2009/q2/0840.html.
2009-07-10 21:57:45 +00:00
david
df2611a5be [Ncat] Ncat now prints a message like "Connection refused." by
default when a socket error occurs. This used to require -v, but
printing no message at all could make a failed connection look like
success in a case like
  ncat remote < short-file
2009-07-10 20:08:41 +00:00
david
98af0bba24 Add an append_raw method to the Table class to add an unformatted string
to a table. This is going to be for script output.
2009-07-10 01:25:39 +00:00
david
47e79670b6 Add a comment explaining how the NSE_YIELD, NSE_DESTRUCTOR et al.
registry keys are used.
2009-07-09 22:56:04 +00:00
josh
e42d963ec1 [Ncat] Reworked the test program ncat/test/test-cmdline-split and added
additional cases.  Also rewrote cmdline_split in ncat_posix.c
2009-07-09 04:00:35 +00:00
david
36b12c9a21 Make decoding of the "chunked" transfer encoding more robust in
http.lua. Previously the code was not careful about checking its input,
and would loop forever if it got something non-hex where it expected a
hex chunk-size. See http://seclists.org/nmap-dev/2009/q3/0013.html.

This code raises an error whenever decoding fails for whatever reason.
It also handles chunk extensions. The reference is section 3.6.1 of
RFC 2616.
2009-07-09 03:07:31 +00:00
david
871629626e Simplify and comment getinterfaces_siocgifconf to make its structure
more clear: We call several different ioctls on each interface and use
the results to populate the interface_info array.
2009-07-09 00:09:25 +00:00
david
1d5f68a080 Remove a bogus leftover use of a valid pointer as a throwaway variable
in getinterfaces. This was the cause of an overlapping memcpy reported
at http://seclists.org/nmap-dev/2009/q2/0713.html.

In the code, sin is a pointer that holds the address of the IP address
configured for an interface. It is copied into a tmpifr.ifr_addr before
each ioctl, perhaps because that is required on some platforms even
though on Linux only ifr_name is needed by the ioctl. When the ioctl
returns, it overwrites whatever was in ifr_addr because that member is
in a union, so sin is kept in order to restore the address again before
the next ioctl.

In the code that handles SIOCGIFNETMASK, sin was mistakenly used as a
temporary pointer and redirected to &tmpifr.ifr_addr. This caused all
future memcpys before ioctl to copy tmpifr.ifr_addr to itself, rather
than copying in the IP address of the interface.

The throwaway sin assignment was not even used; the code that used it
was modified in r2751. So now we just keep sin pointing where it should
the whole time.
2009-07-08 23:09:35 +00:00
fyodor
4e9d7c17a5 update Nmap version number to 4.90RC1, rebuild generated files, except for man pages which are problematic at the moment 2009-07-08 22:32:49 +00:00
david
73fd225180 Add payload.cc and payload.h to the Windows build file. 2009-07-08 21:47:35 +00:00
david
e9d8897cde Use strtol, not strtoll, for Windows compatibility. 2009-07-08 21:46:11 +00:00
david
be55765315 Break up the getinterfaces function, which did one thing for Windows and
another thing otherwise in a big if/else. Now getinterfaces just does
caching and getinterfaces_dnet or getinterfaces_siocgifconf does the
actual interface lookup.
2009-07-08 21:42:03 +00:00
fyodor
599a5cc62f Some changes from chat w/David yesterday 2009-07-08 21:37:02 +00:00
david
cd820ba39b Show the host and port when a script throws an error. 2009-07-08 19:32:40 +00:00
david
ba2e2299f7 Make Ncat --broker imply --listen. 2009-07-08 03:55:12 +00:00
daniel
479bc55652 Consolidate SCTP related TODO items in a dedicated TODO.sctp file,
as suggested by Fyodor in private mail.
2009-07-07 19:03:46 +00:00
luis
395a881514 Modified UDP-payload-related code to make it independent of the NmapOps class so it can be reused by other apps like Nping. More info at http://seclists.org/nmap-dev/2009/q3/0051.html 2009-07-07 18:22:16 +00:00
luis
73c8600bc7 Modified UDP-payload-related code to make it independent of the NmapOps class so it can be reused by other apps like Nping. More info at http://seclists.org/nmap-dev/2009/q3/0051.html 2009-07-07 18:21:30 +00:00
luis
2b4e4e7a8d Fixed a bug in devname2ipaddr(). The IP returned by the function was always 2.0.0.0 due to an error handling a pointer. Check http://seclists.org/nmap-dev/2009/q3/0047.html for detailed information. Also, devname2ipaddr() now makes sure we are dealing with AF_INET devices (currently the getinterfaces() function already skips non AF_INET interfaces, but this way it won't break if that changes in the future.) 2009-07-07 14:37:19 +00:00
fyodor
fca6e39c60 Note Tom's version detection improvements 2009-07-07 06:46:16 +00:00
fyodor
a678608afd add probe for Apache JServ Protocol (AJP) and a match line for Apache Jserv 1.3 from Tom Sellers 2009-07-07 06:42:03 +00:00
fyodor
97f3bb4502 added Traffic Spicer ICAP signature by Tom Sellers 2009-07-07 06:38:49 +00:00
fyodor
b82d5e6fd3 Changes from NSE meeting 2009-07-07 04:15:54 +00:00
josh
f05fa16549 Added a test program to ncat/test to test the cmdline_split function in
ncat/ncat_posix.c.  This is done in preparation for an eventual rewrite of
cmdline_split.
2009-07-07 01:18:53 +00:00
batrick
90a712ae2b Patch to libraries that were inappropriately using globals.
Often two (or more) scripts using the same library would
overwrite the globals each was using. This would result
in (at best) an error or (at worst) a deadlock.

The patch changes the global accesses to local.
2009-07-07 00:20:52 +00:00
david
f6b10157f7 Fix a bug: in deciding whenther to print the diff for a port, a port in
host B was being check to see if it was an extraport in host A.
2009-07-06 22:27:53 +00:00
david
cf5dd5cfd5 Add some things to think about before defining an external data file for
probe payloads.
2009-07-06 19:25:43 +00:00
david
9cc985d870 Fix incomplete merge from /nmap-exp/david/nmap-payloads in r14071
noticed by Daniel Roethlisberger.
2009-07-06 18:53:23 +00:00