Enable UDP payloads for -PU, not only -sU

This commit is contained in:
dmiller 2022-10-31 20:50:19 +00:00
parent 3c6c84b5f7
commit d9422b6d05

View file

@ -2747,7 +2747,7 @@ void ultra_scan(std::vector<Target *> &Targets, const struct scan_lists *ports,
UltraScanInfo USI(Targets, ports, scantype);
/* 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();
}