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

7732 Commits

Author SHA1 Message Date
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
david
c5faae4b26 Call socket_bindtodevice for -sT scan. 2012-10-03 15:43:24 +00:00
david
84f4697c50 Call socket_bindtodevice in nmap_raw_socket. 2012-10-03 15:43:23 +00:00
david
6ec453e4e8 Add socket_bindtodevice function to Nbase.
The Linux-specific SO_BINDTODEVICE sockopt causes packets to be sent on
a specific interface, in cases where merely setting the source address
does not uniquely determine the interface.
2012-10-03 15:43:22 +00:00
david
a53e00afa1 Factor out an nmap_raw_socket function.
This does the common setup of a raw socket that we use everywhere.
2012-10-03 15:43:21 +00:00
david
19d1115ef1 Allow win32_fatal_raw_sockets to take a NULL devname. 2012-10-03 15:43:19 +00:00