Re: [Nmap-scanner-general] scan arguments questions
Brought to you by:
perldork
From: Max <nm...@we...> - 2004-04-21 18:43:24
|
Ravi, Right now the code won't let you do that, though the changes needed to let it do that are easy .. if you want to for now, you can add this code to open_nmap, after the line my $cmd = $this->_setup_cmdline($fast_options); in sub open_nmap. New code ... my $cmd = $this->_setup_cmdline($fast_options); $cmd =~ s/-v -v -v //; $cmd =~ s/-oX - //; Thanks for pointing this out :). Regards, Max On Wed, 21 Apr 2004 14:26:10 EDT, "Ravi Malghan" wrote: > Hi: the scan always uses the -v -v -v -oX options when it runs the scan. = > How do I disable it use these options instead use the options I want. = > For example I have the following code > > my $scan =3D Nmap::Scanner->new(); > my $opts =3D '-sP -n 10.1.30.*'; > my ($pid, $in, $out, $err) =3D $scan->open_nmap($opts); > > > When I look the look at the output, I see that it uses the = > "/home/rmalghan/NMT/bin/nmap -v -v -v -sP -n -oX - 10.1.30.* ". > > Thanks > Ravi |