1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 07:29:03 +00:00
Commit Graph

12648 Commits

Author SHA1 Message Date
dmiller
b5dd2956dd Check for sd > FD_SETSIZE before it is unrecoverable. Fixes #1857 2022-09-29 00:13:10 +00:00
dmiller
de9f84d080 Get better error message. See #2179 2022-09-28 21:40:57 +00:00
dmiller
fc7513cae6 Add service name for 27350/tcp. Fixes #2103 2022-09-28 21:40:57 +00:00
dmiller
894bfd4976 New script tftp-version. Closes #548 2022-09-28 20:52:47 +00:00
dmiller
ed19887f41 More efficiently check if any non-stdin fds are in the call to select on Windows 2022-09-23 21:42:00 +00:00
dmiller
8dbefeba86 Don't wait around if STDIN has data. Closes #2426 2022-09-23 21:41:59 +00:00
dmiller
b092262a22 Clarify docs around timing templates [ci skip] 2022-09-23 21:41:58 +00:00
dmiller
276699f877 Update version number in a few places [ci skip] 2022-09-23 21:41:58 +00:00
dmiller
10862c46e8 Don't bother with interactive input if we can't open the TTY. See #2042 2022-09-23 14:49:40 +00:00
dmiller
6fd0261731 Also check fd_set operations on Windows. Fixes #455 2022-09-23 01:35:09 +00:00
dmiller
5e39a04749 Use Lua's built-in utf8 lib for unicode.lua ops 2022-09-23 01:35:09 +00:00
dmiller
a3c725acd4 Prevent smb-flood from using all sockets. Fixes #947 2022-09-22 20:16:44 +00:00
dmiller
d2280e0911 Ncat can proxy IPv6 to IPv4 and back. Update tests. 2022-09-22 01:35:20 +00:00
dmiller
bf14c06d4c Some useful print statements for testing 2022-09-22 01:35:20 +00:00
dmiller
aa0500e9a4 Generate cert for Ncat tests automatically 2022-09-22 01:35:19 +00:00
dmiller
e8271b7070 Prevent system from going to sleep during scans. Fixes #1192 2022-09-21 21:31:14 +00:00
dmiller
e3ab97215d Handle internationalized domain names (IDN) 2022-09-21 21:03:57 +00:00
dmiller
2f9fde995c Remove xfail from some tests that were fixed in r36651 2022-09-21 19:17:22 +00:00
dmiller
872f40491a Be smarter about single argument: if it's clearly not a port, assume it's a target 2022-09-21 19:17:21 +00:00
dmiller
478c5d4f19 Avoid a duplicate -l option in test 2022-09-21 19:17:21 +00:00
dmiller
04c4c70c77 Support decimal integer representation of target addresses. Fixes #375 2022-09-21 01:53:19 +00:00
dmiller
758b6d1792 Remove unimplemented function prototype 2022-09-21 01:53:19 +00:00
dmiller
a3fb546708 Fix proxy parsing to fail on empty string. Fixes #177 2022-09-20 23:37:29 +00:00
dmiller
0afb05b155 Add tests for nsock proxy parsing 2022-09-20 23:37:28 +00:00
dmiller
7eda670f4b Fix socks4 proxy parsing when target resolves to IPv6 2022-09-20 23:37:28 +00:00
dmiller
1bc5302911 Restore log handler after log tests 2022-09-20 23:37:27 +00:00
dmiller
c236ade401 Increase stress level of tests for nsock 2022-09-20 23:37:26 +00:00
dmiller
e9f3b12e07 Move a useful function to nbase 2022-09-20 23:37:25 +00:00
dmiller
5ae6b75bf4 Note correct order of nsock function calls for proxychains. Fixes #176 2022-09-20 23:37:25 +00:00
dmiller
e319c6d519 Use charpool for service names
Small strings have greater malloc alignment overhead which we save
(~300KB) with this method. string_pool was a slight memory savings but
greater computational cost due to memory overhead and insertion
calculation.
2022-09-19 17:51:46 +00:00
dmiller
00c493485c Fewer (4.5MB) transient allocations when parsing service match lines 2022-09-19 17:51:46 +00:00
dmiller
c39ed4d7c7 Remove unused members from ServiceProbeMatch class 2022-09-19 17:51:45 +00:00
dmiller
0d8916b2c9 Escape disallowed CPE character 2022-09-19 17:51:44 +00:00
dmiller
186d734084 Don't bother aligning charpool allocs: not using for non-strings any more 2022-09-19 17:51:44 +00:00
dmiller
fb29dba40e Fix another charpool blunder: null goes at end of string, not end of allocation. 2022-09-16 22:40:25 +00:00
dmiller
fb64aa9738 Don't use string_pool for ephemeral OS fingerprint results 2022-09-16 21:58:42 +00:00
dmiller
91df781351 Fix off-by-one error: need 1 more byte for null terminator 2022-09-16 21:22:21 +00:00
dmiller
631d163fb2 Object-oriented implementation of charpool 2022-09-16 01:10:20 +00:00
dmiller
b7c76ea08a Don't bother allocating space for 'unknown' string. 2022-09-16 01:10:20 +00:00
dmiller
3a32543db0 Key service table on protocol number, not name 2022-09-16 01:10:19 +00:00
dmiller
6c6d4e33b5 Use const. New function nmap_getprotbyname() 2022-09-16 01:10:18 +00:00
dmiller
721912c113 fast caseless comparison of proto names 2022-09-16 01:10:18 +00:00
dmiller
f7ff89b744 Remove unneeded includes (protoent/servent superseded) 2022-09-15 16:05:54 +00:00
dmiller
30c045621c Fix bugs in protocol file parsing
Protocol numbers were being used as a short in network byte order
instead of host byte order, so this command would fail:
nmap -sO -p tcp

Additionally, duplicate protocols would not be reported correctly. This
change speeds up lookups and simplifies the code.
2022-09-15 16:05:53 +00:00
dmiller
5f21094a68 Fix a memory leak of port service name (strdup but not freed) 2022-09-13 21:09:38 +00:00
dmiller
8b3465231e Fix crash: manage lifetime of now-dynamic test results 2022-09-13 20:05:34 +00:00
dmiller
1d8bf1deff Create AVal vectors in-place, do not copy
At startup with -O, this change reduces overall memory use by 4%, total
alloc/frees by 70%, and total instructions by 45%.
2022-09-13 16:10:05 +00:00
dmiller
9a494348c5 Use const and avoid strdup in fingerprint parsing 2022-09-13 16:10:05 +00:00
dmiller
f44f255da3 Reuse strings for IPv6 OS detection probe IDs 2022-09-13 16:10:04 +00:00
fyodor
478e156b04 Made a couple minor updates requested by author 2022-09-13 03:08:32 +00:00