1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00
Commit Graph

12145 Commits

Author SHA1 Message Date
nnposter
80f4733c32 Correct RPC reserved port range is 512-1023
Some RPC services are strict about this and reject calls when the source port
is outside this range, causing nmap RPC calls to fail 50% of the time.
2020-02-29 22:29:51 +00:00
dmiller
6753d2efdd Report actual number of hosts being resolved. Fixes #1918 2020-02-20 16:35:22 +00:00
dmiller
aaea7ab4e9 Allow a socket created/connected in one thread to be used in another. See #1233 2020-02-18 19:41:29 +00:00
dmiller
36018c07d7 Fix a copy-paste error 2020-02-18 19:39:03 +00:00
dmiller
ad2eb47aa7 Disable Robtex NSE scripts due to API changes. 2020-02-18 19:21:46 +00:00
dmiller
2f0e104f02 Allow numeric-string port numbers as arguments to http.lua funcs 2020-02-18 18:29:57 +00:00
dmiller
e4b3f018ff Fix tor-consensus-checker, several issues.
* Update list of directory servers from current Tor source
* Since consensus is agreed on by all directories, stop after retrieving the first one.
* Use numeric port number, not string. http.lua to be updated later to allow strings, too.
* Do not use http.lua's cache for this big document, since we're caching it ourselves.
* Permit sizes up to 3 MiB, since consensus is larger than default 2 MiB limit.
2020-02-18 18:28:54 +00:00
dmiller
4a38853631 Don't let UDP decoding bugs kill broadcast-listener main thread 2020-02-18 17:37:57 +00:00
dmiller
5d281d0e6e Avoid infinite runtime in snmp-brute due to 'Invalid reuse of a socket' killing send thread. 2020-02-18 17:02:39 +00:00
nnposter
648a08eecf Fix a typo. Closes #1914 2020-02-08 23:56:50 +00:00
dmiller
f37a4bc42e Fix a variable name (broke Windows build in r37875, 7faec7f15) 2020-02-07 05:07:09 +00:00
dmiller
f15fc6bb78 Allow broadcast-dhcp-discover to receive more than 1 response. Fixes #1908 2020-02-05 18:32:14 +00:00
dmiller
688f8b6f76 Better string pack formats 2020-02-05 04:30:56 +00:00
dmiller
6fb2172ca2 Fix script crash: can't pack binary data as zero-terminated if it contains zeros. 2020-02-05 04:30:56 +00:00
dmiller
0d7f8a631d Fix a missing local in outlib 2020-02-05 04:30:55 +00:00
dmiller
d341c45cf4 Fix io.close calls in whois-ip 2020-02-04 18:57:02 +00:00
dmiller
8515e83671 Handle redirect URLs without a host, e.g. https:///path 2020-02-04 18:54:20 +00:00
dmiller
1b1a85cc6b Clarify proxy type support in Ncat server. Fixes #1901 2020-02-03 20:18:44 +00:00
dmiller
a2d44ab1b4 Add hosthint element to DTD as child of nmaprun 2020-01-30 04:59:39 +00:00
dmiller
373a789a79 Fix Ndiff assertion failure due to new hosthint element. 2020-01-30 04:59:39 +00:00
dmiller
0b7e02c15a Process more service submissions; 2 new probes: teamtalk-login, insteonPLM 2020-01-27 18:06:34 +00:00
dmiller
707a8aa2e7 Process more service fingerprints. 2020-01-20 15:08:54 +00:00
dmiller
817797290a New script uptime-agent-info 2020-01-20 15:02:29 +00:00
dmiller
3e886664ba Fix a typo 2020-01-20 15:02:28 +00:00
dmiller
b1620387ba Add thread-safe gmtime equivalent to nbase 2020-01-19 16:37:37 +00:00
dmiller
8df11582e6 Move comma-separated list code to outlib 2020-01-19 16:37:36 +00:00
dmiller
8e145819c2 Remove an unneeded very verbose debug statement. 2020-01-19 16:37:35 +00:00
dmiller
0acdeb5487 Fix output ordering for ssl-cert, including support for EC certs. 2020-01-16 19:12:59 +00:00
dmiller
17416feb5e New outlib library for output-related functions 2020-01-16 19:12:58 +00:00
dmiller
8f3364a441 Remove more vestiges of Windows raw socket quirks 2020-01-16 19:12:57 +00:00
dmiller
dd0ace6d4a Split string pool functions into separate file from osscan.cc 2020-01-16 19:12:57 +00:00
dmiller
69e310c7b8 Add LGTM.com badges to README.md 2020-01-15 05:18:27 +00:00
dmiller
9abdf68708 Remove declarations of undefined functions. 2020-01-15 05:18:26 +00:00
nnposter
c4ecf225dd Add script argument to force specific MAC address. See #1838 2020-01-15 01:20:36 +00:00
dmiller
d0dc55fc90 Inline broadcast_socket(), only used in one place.
Also remove the check for the special socket value 501, which is a
vestige of a workaround leftover from when raw sockets mostly worked on
Windows. That code was removed in r2812 back in 2005.
2020-01-14 05:38:29 +00:00
dmiller
b03c96c326 Change a FIXME to a TODO with documentation of related issues #180 and #1407 2020-01-14 03:39:25 +00:00
dmiller
7faec7f157 Inline getpcapinterfaces, used in only 1 location 2020-01-14 03:39:25 +00:00
dmiller
86f80305a1 Consolidate duplicate functions read_na_pcap and read_ns_reply_pcap. 2020-01-13 23:33:30 +00:00
dmiller
4ffeb09ad3 Use libnetutil's read_reply_pcap to deduplicate pcap reading logic. 2020-01-13 21:48:04 +00:00
dmiller
00cb4d22d9 Switch from pcap_next to pcap_next_ex to check for errors
This change supports #1394. When the network goes down, Nmap ought to
stop instead of slowing to an infinite crawl.
2020-01-13 17:14:45 +00:00
dmiller
dcf4aa9f78 Make string argument to nmap_hexdump a const to match nbase. 2020-01-13 17:14:44 +00:00
dmiller
30110f911e Add needed header checks, clean up unused ones. See #1887 2020-01-12 06:09:37 +00:00
dmiller
ae10c8a19d Abstract some things to move #includes out of headers. 2020-01-11 16:03:29 +00:00
dmiller
a2c75e0ef4 Abstract nsock logging function to avoid nsock.h inclusion in output.h 2020-01-11 16:03:28 +00:00
dmiller
6ed754b438 Add "hosthint" element to XML.
This feature allows programs consuming XML output to know when a target
has been found to be "up" before all scan phases are completed. This is
helpful for allocating storage, communicating scan progress, or
estimating total scan duration. Closes #1858.
2020-01-11 07:05:01 +00:00
dmiller
c978ba14ca Remove some unnecessary unsigned qualifiers (newstate is defined as int in most places) 2020-01-11 07:05:00 +00:00
nnposter
96e17c4f63 Prevent potential nil dereference. Fixes #1885 2020-01-11 03:15:34 +00:00
dmiller
81fc9943d3 New payloads for GTP. Closes #917 2020-01-10 05:32:09 +00:00
dmiller
f974b625d2 New, broader portrule for SSH scripts. Closes #1825 2020-01-10 05:32:08 +00:00
nnposter
922199296c Rectifies bug where RPC dump was always using program version 4 2020-01-09 22:51:02 +00:00