1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Implement Evil bit option in Nping. Fixes #2486

This commit is contained in:
nnposter
2022-06-27 02:38:51 +00:00
parent b8d3d9cff2
commit d00a80d398
6 changed files with 59 additions and 3 deletions

View File

@@ -184,6 +184,8 @@ class NpingOps {
bool mf_set;
bool df; /* Don't fragment flag */
bool df_set;
bool rf; /* Reserved / Evil flag */
bool rf_set;
u32 mtu; /* Custom MTU len (for IP fragmentation) */
bool mtu_set;
bool badsum_ip; /* Generate invalid checksums in TCP/UDP */
@@ -433,6 +435,10 @@ class NpingOps {
bool getDF();
bool issetDF();
int setRF();
bool getRF();
bool issetRF();
struct in_addr getIPv4SourceAddress();
int setIPv4SourceAddress(struct in_addr i);
bool issetIPv4SourceAddress();