Cgivti2.V2.pl uses a webserver host list provided by the user to scan for cgi, vti, msadc and several other vulnerabilities. Like cgivti.V2.pl, this script is easily configured to include other vulnerabilities.
8966b5fa7d151c0547e782abcc1f118f0e7298ccb898d0f31dd4ee49e5a02865
# Thanks to MaB of Efnets #programmers for helping clean up my code and his timeout scheme.
print<<__MENU;
NeoErudition Technologies
CGI VTI Mass Scanner
By: Lawrence Lavigne
MaB
__MENU
use strict;
use diagnostics;
use warnings;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Response;
my $def = new LWP::UserAgent;
my $hostsfile;
my $host;
my @hosts;
my $userresp;
my $url;
my @checks = (
"https://HOST/scripts/perl.exe",
"https://HOST/scripts/shell.exe",
"https://HOST/scripts/../../cmd.exe",
"https://HOST/scripts/root.exe",
"https://HOST/_vti_pvt/authors.pwd",
"https://HOST/_vti_pvt/service.grp",
"https://HOST/_vti_pvt/service.pwd",
"https://HOST/_vti_pvt/users.pwd",
"https://HOST/_vti_pvt/administrator.pwd",
"https://HOST/_vti_pvt/administrators.pwd",
"https://HOST/cgi-bin/handler",
"https://HOST/cgi-bin/webplus.cgi",
"https://HOST/cgi-bin/webplus.exe",
"https://HOST/cgi-bin/sws/manager.pl",
"https://HOST/cgi-bin/paramtool",
"https://HOST/cgi-bin/YaBB.pl",
"https://HOST/cgi-bin/perl.exe",
"https://HOST/cgitelnet.pl",
"https://HOST/cgi-winuploader.exe",
"https://HOST/cgi-win/uploader.exe",
"https://HOST/cgi-bin/upload.pl",
"https://HOST/cgi-bin/whois_raw.cgi",
"https://HOST/cgi-bin/password.txt",
"https://HOST/cgi-bin/passwd",
"https://HOST/cgi-bin/passwd.txt",
"https://HOST/cgi-bin/handler.cgi",
"https://HOST/cgi-bin/handler",
"https://HOST/cgi-bin/files.pl",
"https://HOST/MSADC/root.exe",
"https://HOST/msadc/cmd.exe",
"https://HOST/msadc/Samples/SELECTOR/showcode.asp",
"https://HOST/msadc/Samples/selector/showcode.asp",
"https://HOST/allmanage.pl",
"https://HOST/x_stat_admin.php",
"https://HOST/ans.pl",
"https://HOST/security/web_access.html",
"https://HOST/session/adminlogin?");
my $ua = LWP::UserAgent->new(agent => "VTI Scan", env_proxy => 1, keep_alive => 1,timeout => 5);
print qq(Host File Name:\t);
$hostsfile = <STDIN>;
chomp($hostsfile);
open(IN, $hostsfile) or die "$!";
@hosts = <IN>;
chomp(@hosts);
print qq(CGI/VTI Scan Initiated..\n);
print qq(Output Saved To CGIVTI.log.\n\n);
foreach $host (@hosts) {
foreach (@checks) {
$url = $_;
$url =~ s/HOST/$host/;
#$url = $_;
print qq(:: Checking $url...\n);
my $request = new HTTP::Request('GET', $url);
my $response = $def->request($request);
if ($response->is_success) {
print $response->content;
open(OUT, ">>CGIVTI.log");
print OUT $url;
close OUT;
} else {
print qq(Not Vulnerable..\n\n);
}
}
}
<>