dmiller
d8cf5e6eac
Fix incorrect behavior: empty string OS test is valid
2022-12-15 22:43:45 +00:00
dmiller
37dd0969d3
Credit Python 3 contributors. Closes #1176 .
...
Closes #2287 . Closes #1972 . Closes #1484 . Closes #666 . Closes #2522 .
Closes #2446 . Closes #2279
2022-12-15 13:54:11 +00:00
dmiller
87778f7693
Fix Python2-isms in uninstallers. Closes #2580
2022-12-14 22:38:00 +00:00
dmiller
bc381ae5d0
Fix an outdated include
2022-12-12 21:30:44 +00:00
dmiller
117b0e2b2b
Move a calculation outside the loop
2022-12-12 21:01:36 +00:00
dmiller
de17b51988
Add missing stddef.h include for offsetof
2022-12-12 21:01:35 +00:00
dmiller
67276de2ce
Add missing LUALIB_API declaration to nse_db
2022-12-12 21:01:35 +00:00
dmiller
9e4d6f5f5c
Fix encoding issues related to Python 3 upgrade.
...
Python 3 str() is a unicode already, so can't be decoded.
subprocess.Popen needs to be in text mode (universal_newlines is the
oldest compatible kwarg for this) in order to do line-based buffering.
In general, all the filesystem encoding stuff we were doing is done by
Python itself now.
2022-12-07 20:34:07 +00:00
dmiller
12d41ec2cd
Update Ndiff to Python 3. Closes #1807
2022-12-07 20:34:05 +00:00
dmiller
24b26317c7
Merge #2088 : Update Zenmap to Python 3 and PyGObject
...
Note: Ndiff build will be broken until subsequent changes are made.
Deprecation warnings will need to be addressed in future changes.
Closes #2088
2022-12-07 20:34:03 +00:00
dmiller
e2e55660c3
Add some items to .gitignore
2022-12-07 20:33:57 +00:00
dmiller
024f1fefd2
Add wrapper class for a fingerprint observation, used by submission processing tools
2022-12-02 21:57:32 +00:00
dmiller
5f3be5ad17
Extend parse_fingerprint_file for FP processing tools to get MatchPoints only
2022-12-02 21:57:31 +00:00
dmiller
12bb86e678
Fix a couple off-by-one errors in parse_single_fingerprint
2022-12-02 21:57:31 +00:00
dmiller
a94287c4dd
Ignore a completely empty Class line
2022-12-02 21:57:30 +00:00
dmiller
18a05139be
Ensure str2AVal resets existing values and detects too-long inputs
2022-12-02 21:57:30 +00:00
dmiller
06e6700268
Fix an inscrutable g++ error due to non-const callable comparison
2022-12-02 21:57:29 +00:00
dmiller
d113e08de1
Const-ify a few things, add a copy constructor
2022-12-02 21:57:29 +00:00
dmiller
7dcca32ff1
Avoid reading outside the provided range
2022-12-02 21:57:28 +00:00
dmiller
d957ca1274
Short-circuit os fingerprint matching if accuracy cannot be achieved
2022-11-16 15:55:55 +00:00
dmiller
f59d546c8f
Use existing Lua strings for script output; avoid creating copies.
2022-11-16 15:55:54 +00:00
dmiller
56f59de131
Optimizations for IPv4 OS scan
...
Since the number, names, and preferred order of OS detection tests are
known, we can use fixed indices to put each test/value type in a
predictable location. Previously, we would insert the tests in an
arbitrary order, sort them, and then use strcmp() in each comparison to
ensure the sort order holds and any missing tests are skipped over.
Keeping test names in one location (MatchPoints) saves memory and keeps
the string pool small, which improves performance by reducing lookups
and making existing lookups faster.
Using a dedicated class (FingerPrintDef) for MatchPoints avoids calling
strtol() to obtain the points value for every comparison.
2022-11-11 18:44:19 +00:00
dmiller
1fb680b93f
Use lookup table for 1-char strings, not std::map for string_pool.
2022-11-10 18:57:58 +00:00
paulino
70dc5434f4
Removes reference to obsolete file nmap-payloads to fix error when running make install
2022-11-07 15:32:13 +00:00
dmiller
87274f81fc
Handle blank lines and duplicate protocol numbers. Fixes #2558
2022-11-04 22:07:28 +00:00
dmiller
ee059c44fe
Big optimization of doAnyOutstandingRetransmits
...
Retransmitting does not change the set of incomplete hosts, so there's
no need to use a map to store the current position in the outstanding
probes queue. Using a vector is much faster. Additionally, improper use
of std::map::find() and std::map::operator[] meant that the O(logN)
lookup was happening 4 times for a single host for each iteration
through the loop. Complexity for N targets is now O(N), not O(N logN)
2022-11-02 02:12:39 +00:00
dmiller
a2062c2745
Small reduction in work done for nextTimeout
2022-11-02 02:12:38 +00:00
dmiller
1375f44416
Reduce sockaddr comparisons in raw scans
2022-11-02 02:12:38 +00:00
dmiller
4eee4f2e1f
Reduce work spent checking outstanding probes in raw scans
2022-11-02 02:12:37 +00:00
dmiller
c1227faf0d
Fix -PU and -PY for IPv6
2022-10-31 20:50:20 +00:00
dmiller
d9422b6d05
Enable UDP payloads for -PU, not only -sU
2022-10-31 20:50:19 +00:00
dmiller
3c6c84b5f7
Avoid copying target/source addr data when a pointer will do
2022-10-31 20:50:19 +00:00
dmiller
188a3acade
Clarify and optimize top-ports checking
2022-10-31 17:27:56 +00:00
dmiller
92b68cb80f
init_payloads does not return a value
2022-10-31 17:27:56 +00:00
dmiller
119376c0c4
Simplify service table key type
2022-10-31 17:27:55 +00:00
dmiller
7332939768
Ensure crypto CTX objects are freed. Fixes #2550
2022-10-25 17:00:01 +00:00
nnposter
e4fd4bd2fe
Fix misplaced parentheses. Closes #2544
2022-10-23 22:42:11 +00:00
dmiller
2fcfac9329
Closes #2541 . Consolidate nmap-payloads and nmap-service-probes; use port scan responses in version scan.
2022-10-21 21:15:48 +00:00
dmiller
99c9e776c8
Make some DTLS softmatches into hard matches now that it is treated as a tunnel
2022-10-21 21:15:47 +00:00
dmiller
5ae1b0fda2
Update static data in libnetutil
2022-10-21 21:15:46 +00:00
dmiller
495e220120
Remove libnetutil from Ncat dependencies
2022-10-21 21:15:45 +00:00
nnposter
cb7edf43ed
Fixes URL typo. Closes #2545
2022-10-20 22:01:21 +00:00
dmiller
bda95e0437
Fix edge cases: SSL renegotiation, exec programs
2022-10-14 00:58:24 +00:00
dmiller
1251467f88
Detect send errors and shut down the connection when they happen
2022-10-14 00:58:23 +00:00
dmiller
c87ccb2ea5
Pass a pointer, not a copy of struct fdinfo
2022-10-14 00:58:23 +00:00
dmiller
349da3b98a
Make removing fd from fd_list_t a little more efficient
2022-10-14 00:58:22 +00:00
dmiller
6a9acb1f1a
Make sure Unix socket path is null-terminated, per unix(7)
2022-10-14 00:58:22 +00:00
dmiller
ca691d2789
Simplify/unify target string representation
2022-10-14 00:58:21 +00:00
dmiller
84e2e9be52
Add DTLS tunnel scanning to -sV
2022-10-10 20:48:15 +00:00
dmiller
4e6c8feb15
Enable multiple UDP connections in listen mode. Fixes #1223
2022-10-10 20:48:14 +00:00