mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 17:59:04 +00:00
Enable UDP payloads for -PU, not only -sU
This commit is contained in:
@@ -2747,7 +2747,7 @@ void ultra_scan(std::vector<Target *> &Targets, const struct scan_lists *ports,
|
|||||||
UltraScanInfo USI(Targets, ports, scantype);
|
UltraScanInfo USI(Targets, ports, scantype);
|
||||||
|
|
||||||
/* Load up _all_ payloads into a mapped table. Only needed for raw scans. */
|
/* Load up _all_ payloads into a mapped table. Only needed for raw scans. */
|
||||||
if (USI.udp_scan) {
|
if (USI.udp_scan || (USI.ping_scan && USI.ptech.rawudpscan) ) {
|
||||||
init_payloads();
|
init_payloads();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user