mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +00:00
Disable OSScan as well if it's used with IPProto Scan
This commit is contained in:
@@ -437,6 +437,11 @@ void NmapOps::ValidateOptions() {
|
||||
fatal("WARNING: OS Scan is unreliable with a ping scan. You need to use a scan type along with it, such as -sS, -sT, -sF, etc instead of -sP");
|
||||
}
|
||||
|
||||
if (osscan && ipprotscan) {
|
||||
error("WARNING: Disabling OS Scan (-O) as it is incompatible with the IPProto Scan (-sO)");
|
||||
osscan = 0;
|
||||
}
|
||||
|
||||
if (servicescan && ipprotscan) {
|
||||
error("WARNING: Disabling Service Scan (-sV) as it is incompatible with the IPProto Scan (-sO)");
|
||||
servicescan = 0;
|
||||
|
||||
Reference in New Issue
Block a user