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

11799 Commits

Author SHA1 Message Date
nnposter
6bb36b1ca2 Shortens the line to prevent an extraneous empty line 2019-01-19 23:48:01 +00:00
nnposter
4b4d67d4fb Strips off tabs and trailing spaces 2019-01-19 22:59:37 +00:00
nnposter
71eec581a3 Move declaration to the front to improve compiler compatibility 2019-01-13 23:33:49 +00:00
paulino
9af581ec03 Removes default timeout value of 5s as there are reports (and it makes sense) that this default value is too short for some environments. Now the default timeout for sockets is used. Closes #1312 2019-01-08 21:49:58 +00:00
paulino
1a2c506c5b Adds entry for tn3270 and enip-info updates 2019-01-08 21:44:11 +00:00
paulino
3de3ee8aff Adds TN3270E support to the tn3270 library. Additionally adds support for logical unit setting. Closes #1318 2019-01-08 21:34:37 +00:00
paulino
65c0376c59 Updated product codes, check for response length, update to string.unpack. (NothinRandom). Closes #1346 2019-01-08 21:26:06 +00:00
dmiller
e3afc3f5a6 Ensure large strings build of NSIS is used. Fixes #1396 2019-01-07 18:15:49 +00:00
nnposter
20b6bbda98 Report empty credentials as <blank> 2019-01-06 18:18:12 +00:00
nnposter
25db5fbb0d Increases ncat temporary RSA key size to 2048 bits
This resolves a compatibility issue with OpenSSL library configured with
security level 2, as seen on current Debian or Kali. Closes #1310, closes #1409
2018-12-20 02:04:02 +00:00
nnposter
fc3c9159be Adds searching by fingerprint name 2018-12-18 17:30:30 +00:00
nnposter
dd75a8fec6 Refreshed service pack versions; added MS SQL 2017. Fixes #1411 2018-12-13 21:47:15 +00:00
fyodor
434de730f5 Update copyright year for Ncat and Ncat Guide 2018-12-09 02:00:55 +00:00
dmiller
6d420e82b2 Changelog for #1227 2018-12-02 05:54:58 +00:00
dmiller
1ba0119372 Add a length check for certificate parsing. Fixes #1399 2018-12-02 05:48:27 +00:00
dmiller
b1efd74249 Warn for raw scan options without needed privileges 2018-11-29 20:27:05 +00:00
dmiller
b642dc129c Fix a bug in the fix. ebf083cb0b (commitcomment-31471930) 2018-11-29 17:42:09 +00:00
dmiller
350bbe0597 Avoid a crash (double-free) when SSH connection fails 2018-11-29 17:42:09 +00:00
nnposter
f893372ddd Renamed variable to better reflect its nature 2018-11-27 20:14:55 +00:00
nnposter
f0dd1b8c8d Variable is_ssl is not a flag but a protocol string. Fixes #1400 2018-11-27 19:28:24 +00:00
dmiller
3a240371fc Require 'options' to -s* and -P* to be joined to them, e.g. not '-s SUV' 2018-11-27 18:12:43 +00:00
dmiller
ebf083cb0b Fix a crash in http scripts when following redirects 2018-11-27 04:43:16 +00:00
dmiller
f8004b792c Replace a config-time check with a ifndef that also works on Windows. 2018-11-21 06:23:08 +00:00
dmiller
33f16dd075 Don't fatal() on iflist if npcap isn't found 2018-11-21 03:43:10 +00:00
dmiller
bff7dcad4e Avoid crashing when PATH contains non-ascii/utf-8. Decode if possible 2018-11-15 16:23:32 +00:00
dmiller
adfc39f4f3 Fix crash when using dir: operator 2018-11-15 05:03:46 +00:00
dmiller
38b843558e Change for-loop initial declarations not allowed in C89 2018-11-13 17:32:32 +00:00
dmiller
8490cad95d Copy zlib DLL during staging. Avoid building nmap-update 2018-11-08 15:30:15 +00:00
dmiller
8605dea33a Fall back to TCP connect ping on Windows without pcap
While Windows raw sockets can send and receive ICMP packets, Nmap relies on
libpcap packet capture to spot responses, so if pcap isn't available
(--unprivileged or Npcap not installed), we need to fall back to TCP connect for
host discovery, just like we do for unprivileged users on other operating
systems. Previous behavior was a fatal error suggesting unhelpfully to use
--unprivileged.
2018-11-08 15:28:13 +00:00
dmiller
66eee935a9 Avoid compiler warning about signedness mismatch on VS2013. 2018-11-08 14:52:32 +00:00
dmiller
89a1714580 Fix Windows build for zlib update: use DLL instead of static 2018-11-08 14:51:33 +00:00
dmiller
5c83c3d2a5 Fixes for Windows build from Lua header rearrangements 2018-11-08 04:55:29 +00:00
dmiller
8b2f8dbad2 Restore unconfigured zconf.h, needed on Windows. 2018-11-08 04:35:52 +00:00
dmiller
1345eb247b Use iterative solution instead of tail recursion to avoid stack problems when optimization is off 2018-11-08 04:25:12 +00:00
dmiller
4620cc3df0 Reorder some probes to better match RDP and TLS 2018-11-06 15:07:04 +00:00
dmiller
7da763d271 Use standard way of including nbase.h 2018-11-06 15:07:03 +00:00
dmiller
7ea0a8c9ac Make functions static where possible 2018-11-06 15:07:02 +00:00
dmiller
110d9b7adf Fix wrong library typo 2018-11-06 15:07:01 +00:00
dmiller
70be64d592 Move TerminalServerCookie probe below more-likely TerminalServer probe. Probes are sent in file order, not rarity order 2018-11-05 18:12:12 +00:00
dmiller
959f722021 Process 274 service fingerprint submissions 2018-11-05 18:08:58 +00:00
dmiller
5a34fd3d8d Add script.db entries for new scripts 2018-11-05 18:07:42 +00:00
dmiller
824f9dcb2f Rearrange declarations to put all addrset functions in nbase.h, hide struct addrset internals. 2018-11-01 04:35:00 +00:00
dmiller
27807aadb4 Straighten out some headers and the (struct) addrset type 2018-11-01 04:34:59 +00:00
dmiller
c223ec5c36 Remove unused IPv6 support for legacy addrset_elem bit-matching 2018-11-01 04:34:58 +00:00
dmiller
0f916ec3bc Fix an error in common-prefix calculation 2018-10-31 23:44:52 +00:00
dmiller
625884e7dc Support netmasks in addrset trie. Use trie for resolved addresses and CIDR masks. 2018-10-31 20:32:16 +00:00
dmiller
324965d1d2 Use a radix tree (trie) to match exclude addresses
Current exclusions list from --excludefile takes linear time to match
against. Using a trie structure, we can do matching in O(log n) time,
with a hard maximum of 32 comparisons for IPv4 and 128 comparisons for
IPv6. Each node of the trie represents an address prefix that all
subsequent nodes share; matching stops when one is matched exactly or
when the candidate address does not match any prefix of the addresses in
the trie.

For now, only numeric addresses without netmask are supported. We plan
to extend this to addresses with netmasks, including resolved names.
Storing IPv4 ranges and wildcards in this structure would be
prohibitively complex, so the existing linear match method will be used
for those. It is unlikely that any users are using large exclusion lists
of these types of specifications, so performance impact is small.

Potential future features could use the trie structure to implement
custom routing or scope-limiting.

This was a todo list item based on this report:
https://seclists.org/nmap-dev/2012/q4/420
2018-10-31 14:01:34 +00:00
dmiller
86d1f7e66e Don't quit on ERROR_IO_INCOMPLETE. Closes #1372 2018-10-26 20:50:58 +00:00
dmiller
1c2829cbd0 Fix a bug: if service is vulnerable, this is a table, not a string. 2018-10-25 16:30:48 +00:00
dmiller
e3d08f7e94 Avoid shutting down SSL descriptor twice. Fixes #1365 2018-10-25 04:53:59 +00:00