Fix nmap to never attempt reverse lookup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13457 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9764d338cd
commit
1d4db3c080
@ -635,9 +635,9 @@ sub process_request_nmap {
|
||||
my @nodesetnodes=();
|
||||
foreach my $ip6 (0,1) { #first pass, ipv4, second pass ipv6
|
||||
if ($ip6 and scalar(@ip6s)) {
|
||||
open($fping,"nmap -6 -PS --send-ip -p $ports,3001 ".join(' ',@ip6s). " 2> /dev/null|") or die("Can't start nmap: $!");
|
||||
open($fping,"nmap -6 -PS -n --send-ip -p $ports,3001 ".join(' ',@ip6s). " 2> /dev/null|") or die("Can't start nmap: $!");
|
||||
} elsif (scalar(@ips)) {
|
||||
open($fping,"nmap -PE --send-ip -p $ports,3001 ".join(' ',@ips). " 2> /dev/null|") or die("Can't start nmap: $!");
|
||||
open($fping,"nmap -PE -n --send-ip -p $ports,3001 ".join(' ',@ips). " 2> /dev/null|") or die("Can't start nmap: $!");
|
||||
} else { next; }
|
||||
while (<$fping>) {
|
||||
if (/Interesting ports on ([^ ]*)[: ]/ or /Nmap scan report for ([^ ]*)/) {
|
||||
|
Loading…
Reference in New Issue
Block a user