mirror of
https://github.com/nmap/nmap.git
synced 2026-02-07 05:56:34 +00:00
Implement Evil bit option in Nping. Fixes #2486
This commit is contained in:
@@ -1179,6 +1179,20 @@ bool NpingOps::getDF(){
|
||||
} /* End of getDF() */
|
||||
|
||||
|
||||
/** Set Reserved / Evil flag */
|
||||
int NpingOps::setRF(){
|
||||
this->rf = true;
|
||||
this->rf_set = true;
|
||||
return OP_SUCCESS;
|
||||
} /* End of setRF() */
|
||||
|
||||
|
||||
/** Get Reserved / Evil flag */
|
||||
bool NpingOps::getRF(){
|
||||
return this->rf;
|
||||
} /* End of getRF() */
|
||||
|
||||
|
||||
/* Returns true if option has been set */
|
||||
bool NpingOps::issetMF(){
|
||||
return this->mf_set;
|
||||
@@ -1191,6 +1205,12 @@ bool NpingOps::issetDF(){
|
||||
} /* End of isset() */
|
||||
|
||||
|
||||
/* Returns true if option has been set */
|
||||
bool NpingOps::issetRF(){
|
||||
return this->rf_set;
|
||||
} /* End of isset() */
|
||||
|
||||
|
||||
/** Sets Maximum Transmission Unit length. Supplied parameter must be a positive
|
||||
* integer and must be a multiple of 8.
|
||||
* @return OP_SUCCESS on success and OP_FAILURE in case of error. */
|
||||
@@ -2577,6 +2597,7 @@ bool NpingOps::canRunUDPWithoutPrivileges(){
|
||||
this->issetIdentification() ||
|
||||
this->issetMF() ||
|
||||
this->issetDF() ||
|
||||
this->issetRF() ||
|
||||
this->issetIPv4SourceAddress() ||
|
||||
this->issetIPv6SourceAddress() ||
|
||||
this->issetIPOptions() ||
|
||||
|
||||
Reference in New Issue
Block a user