1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-07 23:19:02 +00:00
Commit Graph

12432 Commits

Author SHA1 Message Date
dmiller
2f8b4e20a1 Update nmap-mac-prefixes from IEEE 2021-08-06 05:09:06 +00:00
dmiller
e93109ef88 Make base_port a member of UltraScanInfo. 2021-08-06 02:47:58 +00:00
dmiller
180c716ca5 Combine tryno and pingseq
UltraProbe's tryno and pingseq attributes were mutually exclusive,
encoded in the same places in packets, and did not need more than 7 bits
to store. This change combines them into a bitfield. This simplifies
some logic, since they do not need to be distinguished from each other.

Additionally, in cases where the tryno is encoded in the source port
number, no further checks or decoding need to happen beyond comparing
the destination port of the response to the source port of the probe.
2021-08-06 02:47:57 +00:00
dmiller
01c1e00b83 Prefer UDP probes with 1 or fewer payloads as ping probes. 2021-08-06 02:47:56 +00:00
dmiller
9c97e008f7 Fix #2293: assertion failed probe->tryno == maxtries
When tying UDP payloads to tryno, we were exceeding the maxtries in
order to send all available payloads, leading to assertion failures.
Currently there are not more than 4 payloads for any given port; most
have none, many have 1, very few have more. So we will send them all at
the same time with the same source port/tryno.
2021-08-06 02:47:55 +00:00
dmiller
1ebd91fc0c Increment base port modulo a prime to avoid repeating.
Base port would repeat after 4035 increments (32280 / gcd(256, 32280))
Likely wouldn't cause problems, but this is cleaner and more correct
with the original intent.
2021-08-06 02:47:55 +00:00
dmiller
a34e52b931 Solution cleanup: remove unused zlibstat project. 2021-08-03 19:57:00 +00:00
dmiller
7b693c7026 Solution cleanup: remove/disable unused configurations 2021-08-03 19:44:23 +00:00
dmiller
76b25678d1 Remove VC++ 2008 runtime; Python uses VC 14+ same as our builds now. 2021-08-03 19:29:10 +00:00
dmiller
0dc7df9573 Switch to VC++ 2019 redistributable 2021-07-30 22:50:41 +00:00
dmiller
ab35a2eccc Use cli defines, not sed, to customize NSIS script. Also addresses #2316 2021-07-30 17:02:11 +00:00
dmiller
1820469f5a Bump supported Windows to Win7 (drop Vista) and update a deprecated API 2021-07-29 21:09:44 +00:00
dmiller
042ddd33b4 Get runtime version of OpenSSL, not header version. 2021-07-28 20:52:01 +00:00
dmiller
b7687223c1 Updates to build with VS 2019 2021-07-28 20:29:28 +00:00
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