1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 22:49:02 +00:00
Commit Graph

10425 Commits

Author SHA1 Message Date
abhishek
d1a10dfc63 Adds zero-byte option(-z) for Ncat. Fixes #22 and #225 2016-07-19 10:07:58 +00:00
abhishek
0c1d68d6de Falls back to "getnameinfo" for truncated replies in reverse DNS resolver. Closes #434 and #400, fixes #364 and #103. 2016-07-19 08:33:01 +00:00
vincent
c521208999 Update zenmap.pot (make update-pot) 2016-07-17 15:23:05 +00:00
dmiller
e81b4a719a Update wdb-version to Lua5.3 syntax 2016-07-17 04:56:30 +00:00
dmiller
dbc26606ca Fix crashes when assigning timeouts as floats. New NSE utility function nseU_checkinteger 2016-07-17 04:56:29 +00:00
batrick
62c4985536 Reduce debugging further.
This is still too verbose for some use cases.
2016-07-16 17:24:19 +00:00
vincent
34af9d438e Update the documentation for missing steps 2016-07-15 14:02:36 +00:00
dmiller
28c06ce28b Fix up some NSEdoc in asn1.lua 2016-07-13 17:51:10 +00:00
dmiller
95f7b76d9f Avoid 'baseoid' output when snmp-hh3c-logins fails. 2016-07-13 17:51:09 +00:00
vincent
3287c1159b Replace deprecated RSA_generate_key by RSA_generate_key_ex
This applies the changes made in PR #451 on Github
2016-07-13 10:17:30 +00:00
batrick
1b5f633e2a Reduce verbosity and improve bin wrapper debugging. 2016-07-13 01:46:27 +00:00
dmiller
a8abc95712 Note some default values for unpwdb args 2016-07-12 13:52:17 +00:00
dmiller
7b4180b8d7 Avoid sending NS probe on Npcap Loopback (BSOD on Win7). See #429 2016-07-11 14:14:53 +00:00
dmiller
fd5926ed1c Simplify config reading/writing. Related #449 2016-07-11 13:34:49 +00:00
dmiller
0ac0d8f505 Fix globals, whitespace 2016-07-08 04:36:31 +00:00
dmiller
187d9190c0 Add missing nsedoc tags, needed because stdnse.module not used 2016-07-07 22:12:13 +00:00
dmiller
b47c55dc6e Add sslv2-drown. Closes #365 2016-07-07 16:35:39 +00:00
dmiller
8c346ba3b4 Encrypted SSLv2 messages have no message type 2016-07-07 16:35:38 +00:00
dmiller
529a1fb4bd Fix index returned by sslv2.read_record, handle errors and encrypted records 2016-07-07 16:35:37 +00:00
dmiller
17040f4cf1 Move core of sslv2.nse into sslv2.lua so other scripts can use it. Cache results in registry. 2016-07-07 16:35:37 +00:00
dmiller
d6fbe8b2ca Refactor some code from sslv2.nse into sslv2.lua 2016-07-07 16:35:36 +00:00
tomsellers
99d47e6210 Version detection: docker - fixed bugs related to missing pattern negation, added two match lines when Job Name is missing 2016-07-07 00:50:30 +00:00
tomsellers
63c9a1f8c0 NSE: added output to docker-version.nse 2016-07-07 00:04:15 +00:00
dmiller
221ad15f43 Fix flags for Travis CI build. --without-ssl was incorrect. 2016-07-06 22:24:51 +00:00
tomsellers
5ca3902b3a NSE: fix bug in docker-version.nse that transposed version and name 2016-07-06 19:37:56 +00:00
tomsellers
4f3f8cd4fc Remove generic matchline causing FP against Docker 2016-07-06 19:36:12 +00:00
dmiller
9058596e1e Separate CFLAGS from CXXFLAGS. Was breaking with -std=c++11 on clang 2016-07-06 16:20:56 +00:00
dmiller
f58315fa59 Make nmap-update depend on nbase for compilation on MSVC 2016-07-05 20:03:42 +00:00
batrick
7f5ec526fe Merge branch 'nse-lua53'
Lua 5.3 adds several awesome features of particular interest to nmap including
bitwise operators and integers, a utf8 library, and standard binary pack/unpack
functions.

In addition to adding Lua 5.3, this branch changes:

o Complete removal of the NSE bit library (in C), It has been replaced with
  a new Lua library wrapping Lua 5.3's bit-wise operators.

o Complete removal of the NSE bin library (in C). It has been replaced with a
  new Lua library wrapping Lua 5.3's string.pack|unpack functions.

o The bin.pack "B" format specifier (which has never worked correctly) is
  unimplemented.  All scripts/libraries which use it have been updated. Most
  usage of this option was to allow string based bit-wise operations which are no
  longer necessary now that Lua 5.3 provides integers and bit-wise operators.

o The base32/base64 libraries have been reimplemented using Lua 5.3's new
  bitwise operators. (This library was the main user of the bin.pack "B" format
  specifier.)

o A new "bits" library has been added for common bit hacks. Currently only has
  a reverse function.

Thanks to David Fifield, Daniel Miller, Jacek Wielemborek, and  Paulino
Calderon for testing this branch.
2016-07-02 17:02:27 +00:00
vincent
0f22680426 Correct format string specifiers
The formats has been tested and verified on Mac OS X 10.8.5,
Mac OS X 10.11.5 and Ubuntu 14.04 LTS, all on x86_64 machines
and OSs. It mainly silences warnings. There were no warnings on
Ubuntu but a few on Mac OS, so the fix is intended to silence
warnings on Mac OS whithout triggering new warnings on other OSs.
Example of warnings previously encountered:

netutil.cc:2828:74: warning: format specifies type 'unsigned short'
but the argument has type 'int' [-Wformat]
2016-07-01 11:44:26 +00:00
vincent
9703feace9 Avoid hidden overloaded virtual functions
Since the functions were hidden for the comiler, I specified every
function that was being hidden in the IPv*Header.h header files.
This allows us to use both overloaded functions and the original one
instead of having one being hidden by the others.
Here is the compiler warning output before the fix:

warning: 'file::function' hides overloaded virtual function
note: hidden overloaded virtual function 'file2::function' declared
here: different qualifiers
2016-07-01 11:36:20 +00:00
vincent
900f015726 Silencing sizeof() warning
Here, the sizeof() function return the size of 'char *' instead of 
INTF_NAME_LEN. I replaced the use of the latter function by INTF_NAME_LEN 
(maximum size of the array intf_name). Here is the compiler warning output:

route-bsd.c:171:38: warning: sizeof on array function parameter will return 
size of 'char *' instead of 'char [16]' [-Wsizeof-array-argument] 
strlcpy(intf_name, namebuf, sizeof(intf_name));
2016-07-01 11:27:37 +00:00
vincent
d0774e7ed5 Closes #342 by thebinarymutant: Fix semantic for python3 2016-07-01 10:37:25 +00:00
dmiller
0d12307030 Improve parsing and request building in sslv2. Part of #365 2016-06-30 17:01:21 +00:00
dmiller
9c42f852c7 Fix incorrectly labeled prime in ssl-dh-params. Closes #347 2016-06-30 14:25:59 +00:00
dmiller
bd99365851 Change rpc's GetAdditionalBytes to error on a short read without an extra timeout 2016-06-28 02:19:44 +00:00
abhishek
9e3c7d526d implements map data structure to speed up search in process_result() of nmap_dns. Closes #401 2016-06-27 20:19:11 +00:00
dmiller
498811be4c Fix detection of RDP: http://seclists.org/nmap-dev/2016/q2/236 2016-06-27 14:30:35 +00:00
batrick
2cbd36443e Fix indentation leading to gcc warnings. 2016-06-26 21:34:58 +00:00
dmiller
59451640d1 Change deprecated RAND_pseudo_bytes call to RAND_bytes
Excellent discussion of the issues with RAND_pseudo_bytes here:
https://jbp.io/2014/01/16/openssl-rand-api/

Essentially, RAND_pseudo_bytes is the same function as RAND_bytes,
except with worse documentation and broken implementations in some
cases.
2016-06-26 14:37:21 +00:00
dmiller
0188383036 pep8 error fixed. Closes #337
15:13: E126 continuation line over-indented for hanging indent
16:13: E126 continuation line over-indented for hanging indent
17:13: E126 continuation line over-indented for hanging indent
2016-06-26 04:39:29 +00:00
dmiller
26fb5d6f99 Return NOT_VULN report instead of 'false' in http-frontpage-login 2016-06-26 04:15:17 +00:00
dmiller
c6be42d88b Avoid blank output from http-fileupload-exploiter 2016-06-26 04:15:16 +00:00
dmiller
822b2d593a Don't run tor-consensus-checker on private/reserved IPs 2016-06-26 04:15:15 +00:00
dmiller
dc4c9927d9 Fix a format string crash (missing formatted value) in targets-ipv6-map4to6 2016-06-25 20:22:01 +00:00
dmiller
91c379fa92 Avoid an error in imap-ntlm-info when starttls fails 2016-06-25 19:43:31 +00:00
dmiller
1c16a55227 New script: http-mcmp. Closes #304 2016-06-25 19:23:26 +00:00
dmiller
72f3a17c60 Let Nping use Npcap on Windows. 2016-06-25 05:00:02 +00:00
dmiller
c52d865b22 Add legend for Topography window. Closes #279, Fixes #258 2016-06-25 03:53:00 +00:00
dmiller
f4bcaadee0 Correct point numbering. Closes #282 by @anchitjain1234 2016-06-24 19:03:37 +00:00