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

8287 Commits

Author SHA1 Message Date
robert
165d010202 Updated the Nmap.nsi file to check the new Visual C++ redistributable versions. Simplified the check for Visual C++ 2010 and improved the check for x64 systems (now additionally checks the Wow6432Node to prevent an error message even when the software was installed correctly). Also bumped the version number of the NSIS file to match the rest of Nmap. 2012-10-11 10:53:58 +00:00
david
04bf0327d7 300 OS submissions. 2012-10-11 08:49:41 +00:00
david
cd90838c2e Change CPE from cpe:/o:linux:kernel to cpe:/o:linux:linux_kernel.
This reflects a deprecation in the official CPE dictionary, which seems
to have happened on 2012-03-08.

  <cpe-item deprecation_date="2012-03-08T20:00:15.120Z" deprecated_by="cpe:/o:linux:linux_kernel:2.6.0" deprecated="true" name="cpe:/o:linux:kernel:2.6.0">
    <title xml:lang="en-US">Linux Kernel 2.6.0</title>
    <meta:item-metadata modification-date="2012-03-08T20:00:15.120Z" status="DRAFT" deprecated-by-nvd-id="35565" nvd-id="91585" />
  </cpe-item>
2012-10-11 06:46:28 +00:00
david
53b4fdcf0a Move HopIdent above hop_cache, which uses it.
This caused an error message when compiled with Clang 3.1:

traceroute.cc:173:41: note: in instantiation of exception specification for 'map' requested here
static std::map<struct HopIdent, Hop *> hop_cache;
                                        ^
traceroute.cc:173:24: note: forward declaration of 'HopIdent'
static std::map<struct HopIdent, Hop *> hop_cache;
                       ^

Found by arrowdodger. http://seclists.org/nmap-dev/2012/q4/58.
2012-10-11 05:42:37 +00:00
david
03d4b03d2c Get rid of "using namespace std".
Importing the whole std namespace caused a problem with Clang and the
punning of bind and std::bind.

http://seclists.org/nmap-dev/2012/q4/58

The Web's opinion of "using namespace std" also seems to be more against
than for.
2012-10-11 04:45:50 +00:00
david
c47c5c52a1 Use Nbase MIN.
Plain min was using something from the C++ std namespace.
2012-10-11 04:45:48 +00:00
david
3029747902 Actually use the interface address when get_srcaddr fails.
There was an embarrasing bug here added in r28874. In the second of
three calls to get_srcaddr, the interface was being indexed by an index
variable that, in this place, was actually an index into the routes
table. This would in general produce a nonsensical source address or
out-of-bounds access.

The symptom of this problem was the following error messages:
	get_srcaddr: can't connect socket: The requested address is not valid in its context.
	Failed to convert source address to presentation format!?!  Error: Unknown error
The first showed that get_srcaddr failed, and the second was caused by
the bogus source address.

http://seclists.org/nmap-dev/2012/q3/859
http://seclists.org/nmap-dev/2012/q4/59
2012-10-11 03:11:53 +00:00
patrik
89dab3fe14 code re-factoring and cleanup 2012-10-10 22:19:49 +00:00
henri
e2fb7301de Avoid sending error message to stdout 2012-10-10 18:59:13 +00:00
david
8e0ed1e83e nmap-service-probes CPE for nginx, activesync, antivirus.
http://seclists.org/nmap-dev/2012/q4/57
2012-10-10 17:00:07 +00:00
batrick
164fbe284b o Added a "Worker" class which helps encapsulate behavior better.
o Moved some specific behavior for resuming a thread to Thread:resume().
o Cleaned up the inheritance mechanism to use a static metatable (the Class
  table itself).
o Worker main functions are no longer wrapped with a function to truncate to 0
  results. Instead, we just check if a thread is a worker in Thread:set_output()
  to prevent adding output by worker threads.
2012-10-09 07:16:01 +00:00
david
dc65e9fae2 200 more OS submissions. 2012-10-09 02:16:58 +00:00
fyodor
61acc03ba0 Note some finished tasks 2012-10-09 00:18:39 +00:00
david
2067e9a6df cpeify-os. 2012-10-08 23:41:28 +00:00
david
b7ab7db086 200 more OS submissions. 2012-10-08 23:41:27 +00:00
david
cb3cf35b41 200 more OS submissions. 2012-10-08 21:42:53 +00:00
david
aa3e4c00bf 100 OS submissions. 2012-10-08 20:35:59 +00:00
david
22dc30d786 Fix a compile error left from r29932 refactoring.
Reported by Jaebum Shin.
http://seclists.org/nmap-dev/2012/q4/47
2012-10-07 15:16:18 +00:00
patrik
121cc35de6 nse_check_globals cleanup 2012-10-07 12:54:31 +00:00
patrik
40b1c4705b check_globals cleanup 2012-10-07 12:39:21 +00:00
patrik
2e985da611 fixed bug "ORA-03146: Invalid buffer length for TTC field" 2012-10-07 09:10:59 +00:00
patrik
81b6bae5eb Squashed commit of the following:
commit e5cb0a18d5474730310f1797016e1106c33ca059
Author: Patrik Karlsson <patrik@cqure.net>
Date:   Sun Oct 7 10:47:35 2012 +0200

    compatibility fixes to spnego authentication in smb and smbauth libraries

    the spnego authentication blob now decodes properly in wireshark
    fixes in spnego authentication for both Window 2003 and Windows 7
2012-10-07 08:54:34 +00:00
david
13345f736d CHANGELOG for new IPv6 traceroute probes. 2012-10-06 21:26:35 +00:00
david
21af053639 Enable IP Protocol (Next Header) traceroute for IPv6. 2012-10-06 21:26:34 +00:00
david
cf33599c2f Support IPv6 SCTP traceroute. 2012-10-06 21:26:33 +00:00
david
7830eb4db6 Support IPv6 UDP traceroute. 2012-10-06 21:26:31 +00:00
david
cf0b55788f Enable IPv6 traceroute only for TCP and ICMPv6.
The other protocols that are implemented for IPv4 are not implemented
for IPv6, leading to an assertion failure.

nmap: traceroute.cc:749: virtual unsigned char* UDPProbe::build_packet(const sockaddr_storage*, u32*) const: Assertion `source->ss_family == 2' failed.

This was noticed by Pierre Emeriaud.
http://seclists.org/nmap-dev/2012/q4/36
2012-10-06 21:26:30 +00:00
david
bc0c6d17b4 Constify data arguments in packet building and sending functions. 2012-10-06 21:26:29 +00:00
david
07f9b440f4 Whitespace. 2012-10-06 21:26:28 +00:00
david
8ab0096609 Remove dead asserts.
I believe the purpose of these asserts was to quiet a compiler warning
in r24309, but the rest of that revision (marking fatal as a
non-returning function) should do the job.
2012-10-06 21:26:26 +00:00
henri
1f31f2e991 Typos 2012-10-06 21:24:50 +00:00
henri
ff60e9f9e0 Typos 2012-10-06 21:19:22 +00:00
david
1155196df5 Allow -PO (protocol/NH ping) for IPv6.
Works for me.
2012-10-06 20:48:32 +00:00
david
26dbb3bed8 Allow -PY (SCTP INIT ping) with IPv6.
Seems to send the right packets, and the code is there to do it, but I
can't find SCTP-enabled IPv6 servers to test against.
2012-10-06 20:48:31 +00:00
david
49a57d8dde Typo. 2012-10-06 20:48:29 +00:00
david
c4d08dc391 Correcly append to CXXFLAGS with --with-localdirs.
Patch by arrowdodger. http://seclists.org/nmap-dev/2012/q4/34.
2012-10-06 20:23:05 +00:00
david
7accc5ef39 More CPE. 2012-10-06 20:23:03 +00:00
patrik
6cfa5aea0f o [NSE] Added oracle-brute-stealth which exploits CVE-2012-3137, a weakness
in the Oracle O5LOGIN authentication scheme. [Dhiru Kholia]
2012-10-06 19:59:45 +00:00
patrik
655f766445 reverted bad commits 2012-10-06 19:38:15 +00:00
patrik
10a34f626a Squashed commit of the following:
commit 5de9e4fa623f88a9b48ef0704244ff843005573a
Author: Patrik Karlsson <patrik@cqure.net>
Date:   Sat Oct 6 21:19:08 2012 +0200

    Applied patch from Dhiru Kholia adding oracle-brute-stealth and needed changes

    reworked the patch slightly and added;
    - support for specifying account on command line
    - johnfile argument for writing hashes directly to file
2012-10-06 19:25:13 +00:00
patrik
2e5a448aa5 Revert "Squashed commit of the following:"
This reverts commit 71f5f22e79bdb44fffa14edd5d3ffa570efde8ed.
2012-10-06 19:25:04 +00:00
david
85c1ce9ce5 Dell CPE. 2012-10-05 19:04:56 +00:00
david
63e25f11c2 More CPE. 2012-10-04 05:30:50 +00:00
david
c9abb6c9c5 Standardize on "VoIP adapter" over "VoIP gateway." 2012-10-04 03:23:26 +00:00
david
9b2c378373 Automatic VoIP device CPE. 2012-10-04 03:23:24 +00:00
david
5b63d0225e CPE for some Cisco/Linksys Voip devices. 2012-10-04 03:23:23 +00:00
david
a7ba1f6588 Capitalization. 2012-10-04 03:23:21 +00:00
david
ac606d846f Fallback check for an AF_UNSPEC interface in route_dst_netlink.
When an interface doesn't have an address set, getInterfaceByName can
fail because it checks the address family. The fatal error message would
be something like
	route_dst_netlink: can't find interface "tap0"
If we can't find an interface with a specific address family, fall back
with an AF_UNSPEC search.

http://seclists.org/nmap-dev/2012/q4/12
2012-10-03 21:06:43 +00:00
david
674fefc943 CHANGELOG for SO_BINDTODEVICE. 2012-10-03 15:43:27 +00:00
david
53cb923ffd Call socket_bindtodevice in FTP bounce scan. 2012-10-03 15:43:26 +00:00