1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-21 05:39:14 +00:00
Commit Graph

12530 Commits

Author SHA1 Message Date
dmiller
befb1bf1d3 Regen man pages: https, Nmap OEM license info 2022-05-09 17:30:07 +00:00
nnposter
1c8336c55e Correct and expand VSNNUM test data 2022-05-06 19:50:21 +00:00
nnposter
4671f5da12 Change VSNNUM parsing to account for versions greater than 15
Fixes #2331, closes #2471
2022-05-06 02:49:25 +00:00
nnposter
a5d57b3280 Improve parsing of CLIENT LIST responses
- Avoid crash due to unhandled connection line termination
    (fixes #2296, closes #2342)
  - Gracefully handle absence of the "addr" attribute
  - Avoid false negative matching if the "addr" attribute was the last listed
  - Avoid false positive matching on the "laddr" attribute
2022-04-25 18:46:04 +00:00
nnposter
35b543b291 Use the same endianness for IP ID and DHCP transaction ID 2022-04-24 02:07:22 +00:00
nnposter
e73041f34b Optimize BPF to capture only DHCP responses 2022-04-24 01:22:54 +00:00
nnposter
81088425f3 Remove unused variables 2022-04-24 01:17:46 +00:00
nnposter
db39ee0518 Add missing includes to route.h test for FreeBSD. Fixes #2379 2022-04-20 17:09:55 +00:00
dmiller
2543f2dd3c Refactor to avoid using packet.lua local functions. See #2464 2022-04-14 23:06:02 +00:00
dmiller
ec2176f733 http > https, 2021 > 2022 in docs 2022-04-14 23:06:01 +00:00
nnposter
639efbd214 Refactor IP ID capture loop. Fixes #2464
Rectify use of inaccessible library function packet.u16, incidentally
introduced in r38135 (041838d986)
2022-04-10 20:13:06 +00:00
fyodor
705ac8d978 Added links and references from Nmap Thid Party Open Source to Npcap's Third Party Open Source file. 2022-03-22 19:26:16 +00:00
fyodor
5d729270f9 Update and reorganize Nmap third party component docs with sample acknowledgment text, etc. Also made very minor updates to legal-notices doc. 2022-03-22 18:54:08 +00:00
dmiller
5b8623908e Regen docs [ci skip] 2022-03-10 17:24:38 +00:00
dmiller
b5b48befe3 Fix a typo [ci skip] 2022-03-10 17:24:36 +00:00
dmiller
6bf973cf0f Remove Nmap registry key on uninstall regardless of whether it's empty 2022-03-10 17:24:36 +00:00
nnposter
5afd9c60e6 Validate OpenSSL libraries even in custom locations
Fixes #2420, closes #2436
2022-03-03 02:58:32 +00:00
dmiller
df33da4722 Regen man pages from docbook source [ci skip] 2022-02-18 19:00:28 +00:00
dmiller
5cbf8c0d82 Remove slave/master terms from services database [ci skip] 2022-02-18 19:00:27 +00:00
dmiller
e7bd49d158 Fix incorrect docbook tags 2022-02-18 19:00:26 +00:00
dmiller
c2d6b01f35 Update links to npcap.com 2022-02-18 17:38:54 +00:00
dmiller
dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +00:00
nnposter
8b5eff97e9 Fix a typo. Closes #2295 2022-02-13 17:28:56 +00:00
dmiller
43a10b1222 Formatting fixes to changelog [ci skip] 2022-02-11 21:53:58 +00:00
fyodor
2361e6b60f Update third party open source document to reflect Nmap version 7.92 2022-02-08 17:56:08 +00:00
nnposter
854ed0a58a Reject supported hash in Proxy-Authorization header
This should not normally happen, as the hash is expected to match what Ncat 
offered in prior Proxy-Authenticate.  Closes #2440
2022-02-08 00:37:36 +00:00
nnposter
828dedfc8a Add a missing space in Ncat man page 2022-02-08 00:08:59 +00:00
nnposter
be89acce39 Do not include whitespace in the size string 2022-02-04 02:27:15 +00:00
nnposter
9de580fe6f Allow more whitespace between HTML tags. Closes #2434 2022-02-04 02:17:39 +00:00
dmiller
04a206d60a Rename vars to avoid hiding global 2022-01-31 18:11:23 +00:00
dmiller
0af0b822a1 Send DHCP requests on all interfaces, not only the lowest-metric one 2022-01-13 22:30:21 +00:00
dmiller
a0b2d3d80e Check return value of eth_send in case of errors 2022-01-13 22:30:20 +00:00
dmiller
044295b0c8 Script tracing for dnet raw sends 2022-01-13 22:30:19 +00:00
dmiller
e8df904e7e Handle unknown/unexpected tokens in login. See #1554 2022-01-04 20:36:43 +00:00
dmiller
f78be32513 Handle pcap sockets just like other nsock sockets.
Pcap nsock sockets in NSE were cached so that multiple threads opening
the "same" pcap descriptor (same device, bpf, promisc, snaplen) would
get the same socket object. This is a leftover from a very old design
that would multiplex captured packets to each thread, but for a long
time that meant that each thread would just get whatever packets were
available and miss any that another thread received. This almost never
happened because scripts don't use identical pcap descriptors generally.
But it did complicate garbage collection, resulting in segfaults and
assertion failures in certain scenarios such as double-closing a socket.
2022-01-04 18:10:45 +00:00
dmiller
026cd801d7 NSE nsock event handling improvements
If an event is canceled, report it to the waiting thread as an error.
Previous behavior left a waiting thread waiting forever, so NSE never
stopped.

If the event is killed, that means Nsock is being shut down, so this is
coming from the garbage collection handler and we don't want to restore
anything. Just return instead.
2022-01-04 18:10:44 +00:00
dmiller
08d50ed318 NSE: quit if all remaining threads are abandoned workers 2022-01-04 18:10:43 +00:00
dmiller
279be9917d Simplify NSE timeout debug print 2022-01-04 18:10:43 +00:00
dmiller
c3d54f1fac Change how ms-sql NSE scripts run
MS SQL NSE scripts run on database instances, which can be TCP or named
pipes. With this change, all TCP instances on scanned ports will have
script output attached under the port as a portrule script. Named pipe
instances and TCP instances on unscanned ports will be displayed in the
hostrule script output at the end of the host's output. Utility function
mssql.Helper.InitScript makes it easy to write scripts that just work on
a per-instance basis, without bothering where to put the output.
Discovery will be done once per host, regardless of how many scripts are
run, and can be guaranteed to be done before the script's action takes
place.
2022-01-03 21:08:52 +00:00
dmiller
33405fcfb5 Remove an unused include [ci skip] 2022-01-03 21:08:51 +00:00
dmiller
4124025d62 Clarify that args are strings [ci skip] 2022-01-03 21:08:50 +00:00
dmiller
88c7e9d1e8 Use less space for pcap dev name; simplify ifdef 2021-12-16 23:29:17 +00:00
dmiller
541d89cb1a Check for arg problems earlier in connect and pcap_open 2021-12-16 23:29:16 +00:00
dmiller
3fe254abcc Suggest a reason why '-' cannot be resolved 2021-12-16 23:29:15 +00:00
dmiller
3cf836c9b5 Register mssql instances found in port scan. See #927 2021-12-15 23:44:43 +00:00
dmiller
6a2260aea0 Fix mssql's SetVersionNumber to consider subbuild (not used currently) 2021-12-15 23:44:42 +00:00
dmiller
02c0354744 Avoid TOCTOU by checking discovery state in mssql.Discover
A script might check WasDiscoveryPerformed and get a negative response,
then call Discover, during which time another script already called
Discover. Instead, check the condition *after* acquiring the mutex.
2021-12-15 23:44:41 +00:00
dmiller
0b7dc80349 Fix TDS7 password encoding. Fixes #2388. 2021-12-14 22:35:57 +00:00
dmiller
3e08021083 Don't rely on -1 return value from SSL_read, just check SSL_get_error() directly 2021-12-14 18:36:55 +00:00
dmiller
0467fa7866 Check the correct var for 413 error (was masked as 400) 2021-12-14 18:36:54 +00:00