mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Do ARP/ND scan with -PR --disable-arp-ping.
These options look contradictory, but --disable-arp-ping is really an option to disable *implicit* ARP ping when you haven't asked for it. Actually requesting ARP should still do ARP scan. The contradiction that remains is the option name --disable-arp-ping, which doesn't exactly do what it says. The idea here is that you can just throw --disable-arp-ping at the end of your command lines, and implicit ARP scan will always be disabled, and any command using -PR will continue to work.
This commit is contained in:
parent
129ebc4634
commit
1cb72a4928
1 changed files with 2 additions and 2 deletions
|
|
@ -441,7 +441,7 @@ batchfull:
|
|||
hs->hostbatch[0]->af() == AF_INET &&
|
||||
hs->hostbatch[0]->directlyConnected() &&
|
||||
o.sendpref != PACKET_SEND_IP_STRONG &&
|
||||
o.implicitARPPing) {
|
||||
(pingtype == PINGTYPE_ARP || o.implicitARPPing)) {
|
||||
arpping(hs->hostbatch, hs->current_batch_sz);
|
||||
arpping_done = true;
|
||||
}
|
||||
|
|
@ -452,7 +452,7 @@ batchfull:
|
|||
hs->hostbatch[0]->af() == AF_INET6 &&
|
||||
hs->hostbatch[0]->directlyConnected() &&
|
||||
o.sendpref != PACKET_SEND_IP_STRONG &&
|
||||
o.implicitARPPing) {
|
||||
(pingtype == PINGTYPE_ARP || o.implicitARPPing)) {
|
||||
arpping(hs->hostbatch, hs->current_batch_sz);
|
||||
arpping_done = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue