(plugin) apps::nmap::cli - redirect stderr to null (#4324)

This commit is contained in:
qgarnier 2023-03-30 14:04:11 +02:00 committed by David Boucher
parent 0dc75dd095
commit ad1cda6262
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ sub run {
my ($stdout) = $options{custom}->execute_command(
command => 'nmap',
command_options => $self->{option_results}->{nmap_options},
command_options_suffix => $self->{option_results}->{subnet},
command_options_suffix => $self->{option_results}->{subnet} . ' 2> /dev/null',
timeout => 120
);
@ -187,7 +187,7 @@ __END__
=head1 MODE
Resources discovery.
Default command used: nmap -sS -sU -R -O --osscan-limit --osscan-guess -p U:161,162,T:21-25,80,139,443,3306,8080,8443 -oX - __SUBNET_OPTION__
Default command used: nmap -sS -sU -R -O --osscan-limit --osscan-guess -p U:161,162,T:21-25,80,139,443,3306,8080,8443 -oX - __SUBNET_OPTION__ 2> /dev/null
Timeout defaults to 120 seconds.