1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00
Commit Graph

12968 Commits

Author SHA1 Message Date
dmiller
973b5aacf5 Preliminary Windows bundling for Zenmap and Ndiff 2023-01-20 18:29:54 +00:00
dmiller
153be6f589 Update rpm spec files for Python 3 2023-01-17 17:18:20 +00:00
fyodor
72a6a7f18b Note that Versions of Nmap released under previous versions of the NPSL may also be used under the NPSL 0.95 terms. 2023-01-12 15:45:38 +00:00
fyodor
47919b8dac Add paragraph break for easier reading 2023-01-11 22:26:08 +00:00
fyodor
d0a8fb0f30 Update Nmap Public Source License to Version 0.95. The only changes (besides version number) are clarifications that derivative works definition and all other license clauses only apply to parties who choose to accept the license in return for the special rights granted (such as Nmap redistribution rights). If a party can do everything they need to using copyright provisions outside of this license such as fair use, we support that and aren't trying to claim any control over their work 2023-01-11 22:11:11 +00:00
dmiller
2159fea364 Remove CustomBuild reference to removed nmap-payloads file 2023-01-05 23:46:54 +00:00
dmiller
bbd481b271 Fix typo 2023-01-05 23:46:20 +00:00
dmiller
ad9d7b7a1b Fix MSVC warning about (void) 2023-01-05 23:45:56 +00:00
dmiller
473e9afea5 Fix VS2019 warning regarding signature of operator!= 2023-01-05 23:45:04 +00:00
dmiller
19d440fccf Use BN_bn2mpi for ssh2. Add some tests. 2023-01-02 21:20:09 +00:00
dmiller
d4b46b5b43 ssh2: fix positive mpint packing. Closes #2338 2023-01-02 21:20:09 +00:00
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