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

12291 Commits

Author SHA1 Message Date
dmiller
c4cfe174be Remove a redundant condition (this branch is always res>0) 2020-10-15 18:19:06 +00:00
dmiller
9faf70fc78 Remove always-true condition, but be clear that n does not change in this function 2020-10-15 18:10:14 +00:00
fyodor
608d866fb7 fix typo: it's -> its 2020-10-15 18:06:31 +00:00
dmiller
3c5b7107d5 Avoid warnings about signedness in comparisons. See 2150 2020-10-15 17:45:48 +00:00
dmiller
f48d12a591 Avoid importing *, possibly polluting namespace 2020-10-15 17:17:34 +00:00
fyodor
e7188d653f Tiny reordering 2020-10-14 18:17:14 +00:00
dmiller
a5cca6f6a3 Remove replacement strlcat (unused) from libdnet-stripped 2020-10-13 20:13:38 +00:00
dmiller
e61f145425 Make strlcpy signature match declaration in libdnet-stripped. See #2150 2020-10-13 20:13:37 +00:00
dmiller
b8a6d3773e Incorrect issue number in changelog 2020-10-13 19:38:14 +00:00
dmiller
9529327f59 Merge changes from Nmap 7.91 release branch 2020-10-13 19:27:40 +00:00
dmiller
009b63b6a9 Use gh_heap_remove instead of gh_heap_pop when result not needed. 2020-10-13 19:13:31 +00:00
dmiller
b9bb2ec387 Fix (again) the Windows date representation problem. 2020-10-10 13:37:03 +00:00
nnposter
e333addec4 Ability to set SNMP protocol version. Closes #1473 2020-10-09 02:43:26 +00:00
dmiller
c174f8dd97 Adjust base time by local offset for Windows 2020-10-08 23:09:22 +00:00
dmiller
50bef20b92 Handle date formatting for Windows for years earlier than 1970. See #2136 2020-10-08 23:09:21 +00:00
dmiller
e3262d33d6 Fix crash due to missing import. Fixes #2148 2020-10-08 19:28:32 +00:00
nnposter
1d4d3536e3 Fix off-by-one bug when parsing MySQL EOF packet. Fixes #2128 2020-10-08 17:56:18 +00:00
dmiller
c8450d4d0c Handle a weird IOCP error for UDP sockets. Fixes #2140 2020-10-07 21:56:28 +00:00
dmiller
ee6bc18844 Only warn about protocol specs in port list with -p. Fixes #2135 2020-10-06 18:44:12 +00:00
dmiller
9238e6c363 Bump version and regen docs for 7.90SVN post-release 2020-10-06 13:18:17 +00:00
dmiller
ef8213a36c Reintegrate Nmap 7.90 release branch 2020-10-05 23:00:30 +00:00
nnposter
5c0bf18595 Fix a CHANGELOG typo 2020-10-04 03:37:01 +00:00
nnposter
63c88b1a74 Avoid masked use of date before 1/1/1970 UTC. Fixes #2136, closes #2137 2020-10-04 03:28:01 +00:00
nnposter
1a87f11f42 Default rule base for script mysql-audit. See #2125 2020-10-04 02:52:31 +00:00
dmiller
46f1954c0f Update macosx build to OpenSSL 1.1.1h, use jhbuild for all build steps 2020-09-30 03:10:24 +00:00
dmiller
e214019922 Make IOCP the default Nsock engine on Windows. See #2126 2020-09-29 18:17:10 +00:00
dmiller
eb6e160cb9 Add missing prototype 2020-09-29 18:05:06 +00:00
dmiller
1504a353cf Properly handle pcap reads in iocp engine. Fixes #2126
Still has an odd code smell, but this fixes my test case with Nping.
2020-09-29 00:39:29 +00:00
dmiller
4bee1dbfc1 Remove duplicate test conditionals already tested in enclosing block 2020-09-18 18:47:42 +00:00
dmiller
8ba183531d Allow %F date format to mean YYYY-mm-dd like GNU date 2020-09-17 21:42:03 +00:00
dmiller
c4ae093630 Fix a meaningless error message when parsing IPv6 extension headers. 2020-09-17 21:41:18 +00:00
dmiller
c6270d73bf Update IPv6 classifier based on new submissions through 2020-09-14 2020-09-17 20:44:41 +00:00
dmiller
dfd8e4f74c Fix a config issue with LGTM (libverbs not linked in libpcap) 2020-09-15 23:29:05 +00:00
dmiller
7375c0520d Improve docs on -Pn and host discovery
"Host discovery" is the preferred term over "ping scan" because of
confusion with ICMP Echo Request, a.k.a. "ping" as used by the "ping"
utility. Warn when users use -Pn because it has negative impact on scan
times since ultrascan timing parameters fall back to slow initial
defaults.
2020-09-15 23:29:05 +00:00
dmiller
dff084edcb Be explicit about truncating division (timeout is in whole milliseconds) 2020-09-14 17:41:39 +00:00
dmiller
75318985a1 Silence static analysis warning
LGTM points out that since comparison with sizeof(buf) coerces n to
unsigned, all negative values become very large values, which are
necessarily larger than sizeof(buf), so the test is redundant. We still
want the test in our code to be explicit that we are checking for it, so
reordering the comparisons should silence the warning. A good optimizing
compiler should be able to combine the two conditions anyway.

See https://github.com/github/codeql/issues/4249
2020-09-14 17:41:39 +00:00
nnposter
fa6bd3f901 Update the SSH protocol flow. Closes #1460
Allows the server to start the key exchange before the protocol version
exchange (banner exchange) is completed
2020-09-13 00:12:48 +00:00
nnposter
dd6650b887 Replace hyphens in the client SSH banner
Hyphen is not allowed in the software version string (RFC 4253, section 4.2)
2020-09-13 00:01:40 +00:00
dmiller
3b633fd97c Try to make sure enough data is present before parsing. See #2117 2020-09-10 22:02:12 +00:00
dmiller
9b113b03be Add a requested feature 2020-09-10 22:02:11 +00:00
dmiller
444e7ff88c Process a few service fingerprint submissions 2020-09-10 16:28:22 +00:00
dmiller
f6d21da5cd Only get SSL options if we use them, currently for NO_SSLv2 2020-09-10 16:25:10 +00:00
dmiller
f01567b353 Process new Linux and OpenBSD fingerprints 2020-09-10 16:21:53 +00:00
dmiller
85e22fb89b Tell LGTM to use the correct version of Python (2) 2020-09-10 15:36:03 +00:00
dmiller
19c53f62ec Add some missing changelog entries 2020-09-09 21:34:56 +00:00
dmiller
9c1cfd8405 Correctly check for unsigned subtraction underflow. 2020-09-09 21:34:56 +00:00
dmiller
3521f15180 Use signed value for tcp header offset and option lengths to detect underflow 2020-09-09 21:34:55 +00:00
dmiller
b8c8fe8047 Call superclass's init method from derived class 2020-09-09 21:34:54 +00:00
dmiller
f66f765607 Update dated 'class' network terms to CIDR. Closes #2054 2020-09-09 17:29:24 +00:00
dmiller
bdc5963b6a Remove a todo item that is done (--resolve-all) 2020-09-09 17:29:24 +00:00