forked from pentestmonkey/yaptest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yaptest-nikto.pl
executable file
·40 lines (33 loc) · 1.01 KB
/
yaptest-nikto.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env perl
use strict;
use warnings;
use POSIX;
use yaptest;
use Getopt::Long;
use File::Basename;
my $max_processes = 5;
my $script_name = basename($0);
my $usage = "Usage: $script_name [options]
Runs nikto on any port in database which nmap thinks are HTTP(S) ports.
NB: nikto.pl is required to be in the path.
";
die $usage if shift;
my $y = yaptest->new();
$y->run_test(
command => "nikto.pl -nolookup 127.0.0.1 -h ::IP:: -p ::PORT::",
parallel_processes => $max_processes,
output_file => "nikto-http-::IP::-::PORT::.out",
filter => { port_info => "nmap_service_name like http", ssl => 0 },
max_lines => 1000,
inactivity_timeout => 300,
parser => 'yaptest-parse-nikto.pl'
);
$y->run_test(
command => "nikto.pl -ssl -nolookup 127.0.0.1 -h ::IP:: -p ::PORT::",
parallel_processes => $max_processes,
output_file => "nikto-https-::IP::-::PORT::.out",
filter => { port_info => "nmap_service_name like http", ssl => 1 },
max_lines => 1000,
inactivity_timeout => 300,
parser => 'yaptest-parse-nikto.pl'
);