1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 06:59:01 +00:00
Commit Graph

12968 Commits

Author SHA1 Message Date
dmiller
e876b37787 Remove an unused variable 2021-07-26 18:43:18 +00:00
dmiller
f22816da84 Use casts to fix build error C2664 with Windows SDK 8.1 2021-07-26 18:43:17 +00:00
dmiller
322dfed68a Silence a LGTM warning: we know it's useless for now. 2021-07-23 16:50:13 +00:00
dmiller
da2c3673f1 Do not delay-load iphlpapi.dll 2021-07-23 16:50:13 +00:00
dmiller
9b36c5b2b8 libdnet: Remove call to FreeLibrary after GetModuleHandle.
Per Windows API docs: "do not pass a handle returned by GetModuleHandle
to the FreeLibrary function. Doing so can cause a DLL module to be
unmapped prematurely."
2021-07-23 16:50:12 +00:00
dmiller
8bb25f535c Clarify HopByHop padding code, addressing LGTM.com finding 2021-07-23 16:50:11 +00:00
dmiller
95d98fe6ae Linker optimizations for all projects (Windows) 2021-07-22 17:19:53 +00:00
dmiller
d4ceb17a8d Use getaddrinfo instead of gethostbyname for FTP bouncescan 2021-07-22 17:19:12 +00:00
dmiller
d15747db32 Minor optimization for name resolution: null servname 2021-07-22 17:18:29 +00:00
dmiller
7bf0a7f016 Remove/change some text to describe Npcap, not WinPcap 2021-07-21 22:42:46 +00:00
dmiller
a2690ffa45 Require Npcap 2021-07-21 21:56:28 +00:00
dmiller
e0f78dbed5 Remove unused GetVersionEx calls that probably didn't work anyway. 2021-07-21 15:47:29 +00:00
dmiller
bafb7b88ae Code analysis thinks this could be null; assert it 2021-07-21 15:46:38 +00:00
dmiller
8a6e1fbb6d Remove code for pre-NT Windows. 2021-07-21 15:45:45 +00:00
dmiller
a78fd44073 Silence LGTM warnings about weak crypto: these are compatibility, not security. 2021-07-21 00:59:42 +00:00
dmiller
5707fb14c5 Upgrade to VS 2019 2021-07-19 23:58:02 +00:00
dmiller
f6d7396392 Use macros instead of generating nmap.rc 2021-07-19 23:57:08 +00:00
dmiller
bd81beac1c Use more structure in defining Nmap version number 2021-07-19 23:06:50 +00:00
dmiller
c23d0f8345 Clarify braces around ifdefs 2021-07-19 23:06:49 +00:00
dmiller
51180ec958 Make a variable local 2021-07-02 20:01:31 +00:00
dmiller
7c61f7c9c3 TLS 1.3 support for NSE. Fixes #1691 2021-07-02 20:01:30 +00:00
ron
61f17067a3 Add new fingerprint to http-fingerprints.lua (BitWarden) 2021-06-04 19:10:23 +00:00
dmiller
edd7003ed1 New fingerprint for Atlassian JIRA in setup mode 2021-06-01 17:29:55 +00:00
dmiller
0bf1634bb3 Comment a match that incorrectly assumed SSL-only Apache instance. 2021-05-26 22:24:42 +00:00
nnposter
c3d9d16744 Fix file size arithmetic on Win32. Closes #2306
The old code was incorrectly calculating sizes of files exceeding 4 GB.
The new code skips the arithmetic altogether by using a different API.
2021-05-18 03:15:22 +00:00
nnposter
67a04de96a Use uppercase hex digits in percent encoding. Fixes #2281 2021-05-17 21:31:32 +00:00
dmiller
169dc44b73 Allow --host-timeout=0 to override the timeout of -T5. 2021-05-13 21:57:14 +00:00
dmiller
a889c3ebe0 Be clear about which max-scan-delay options are set with -T4 and -T5 2021-05-13 21:57:13 +00:00
dmiller
14c7f87d6f XML output: include host times and a flag if the host timed out 2021-05-07 22:08:44 +00:00
dmiller
f17fa67008 Avoid copying script results; store pointers instead. 2021-04-29 17:52:24 +00:00
dmiller
c3a2faaa7b Remove some unused methods 2021-04-27 19:22:13 +00:00
dmiller
74e066d356 Another round of const 2021-04-27 19:22:12 +00:00
dmiller
68d2c0e960 Use stack for global special value so we don't have to clean it up. 2021-04-27 19:22:10 +00:00
dmiller
6b2de50416 Handle new_targets memory management within the class. 2021-04-27 19:22:10 +00:00
dmiller
bf9d60734d Use std::multiset to keep script outputs in order instead of sorting. 2021-04-27 19:22:09 +00:00
dmiller
3adaa69cb2 Fix an out-of-bounds memory access when parsing PTR records 2021-04-27 19:22:08 +00:00
dmiller
c9b7c2f590 Moar const 2021-04-26 17:58:01 +00:00
dmiller
d142d1f808 a few more consts 2021-04-26 15:04:47 +00:00
dmiller
1fd272f8dd const all the things! 2021-04-23 20:37:41 +00:00
dmiller
1717b4a9a9 Correct explanation of bug that was fixed. 2021-04-23 20:37:39 +00:00
dmiller
28fde911fe Remove an unused state variable from HostScanStats 2021-04-23 20:37:39 +00:00
dmiller
a744a969da Fix -sU modifying payloads when retrieving them. Closes #2269. Fixes #2268 2021-04-22 23:22:46 +00:00
nnposter
004c8627c1 Do not override snprintf in VS 2015 and newer
MSVC preprocessor triggers #error in <stdio.h> if redefined

From MS doc:
Beginning with the UCRT in Visual Studio 2015 and Windows 10, snprintf is
no longer identical to _snprintf. The snprintf function behavior is now C99
standard compliant.

Closes #2255
2021-04-16 02:33:39 +00:00
nnposter
4b46fa7097 Label the function as intentionally empty
See https://seclists.org/nmap-dev/2021/q1/31
2021-04-07 18:42:28 +00:00
nnposter
068e77a37f Restore Supported Point Formats Extension. Fixes #1187
Some servers are not compliant with RFC 4492, section 4,
and abort the handshake when the extension is missing.
2021-03-21 02:37:18 +00:00
nnposter
024bbf84f1 Make sure that SOCKS proxied server data are processed
There was a race condition where proxied server data could arrive appended
to the final SOCKS handshake response, causing the data to get skipped.
2021-03-16 02:34:35 +00:00
nnposter
3913c63136 Use more descriptive error messages 2021-03-16 02:09:39 +00:00
fyodor
7bd0318e3d slight wording change. Fixes #2261. 2021-03-07 03:29:16 +00:00
fyodor
b319123646 Word-wrap a paragraph and fix a typo 2021-03-06 18:04:18 +00:00
dmiller
05faa0287a Fix addrset matching with overlapping CIDR specs. Fixes #2257 2021-03-01 18:42:00 +00:00