package P50Tools::AdminFinder;

use warnings;
use common::sense;
use Moose;
use HTTP::Request;
use LWP::UserAgent;

{
    no strict "vars";
    $VERSION = '0.2';
}

=head1 
For more information go to L<P50Tools>.
=cut

our @string;

has 'target' => (is => 'rw', isa => 'Str');
has 'string_list' => (is => 'rw', isa => 'Str', default => 'nada');
has 'output' => (is => 'rw', isa => 'Str', default => 'output.txt');

sub scan{
	my $self = shift;
	my $s1 = $self->target;
		
	unless ($self->string_list eq 'nada') { open IN, $self->string_list or die "Cannot open data: $!"; @string = <IN>;}
	if ($self->string_list eq 'nada') {@string = <DATA>;}
	open OUT,">". $self->output or die "Cannot cerate data: $!";
	foreach (@string){
	
		$s1 .= "/" if ($s1 !~ m~(.+)/~gi);
		$s1 = "http://" . $s1 if ($s1 !~ /^http:/);
		$s1 .= $_;
		
		
		my $req=HTTP::Request->new(GET=>$s1);
		my $ua=LWP::UserAgent->new();
		$ua->timeout(20);
		my $response = $ua->request($req);
		if ($response->is_success) {
			
			print OUT $s1;
			
			print "Find a adm page\n";
		}
		else {
			print "Cannot find adm page\n";
		}
		
	}
	close OUT;
	return $s1;
}
no Moose;
1;
__DATA__
admin/
administrator/
moderator/
webadmin/
adminarea/
bb-admin/
adminLogin/
admin_area/
panel-administracion/
instadmin/
memberadmin/
administratorlogin/
adm/
admin/account.php
admin/index.php
admin/login.php
admin/admin.php
admin/account.php
admin_area/admin.php
admin_area/login.php
siteadmin/login.php
siteadmin/index.php
siteadmin/login.html
admin/account.html
admin/index.html
admin/login.html
admin/admin.html
admin_area/index.php
bb-admin/index.php
bb-admin/login.php
bb-admin/admin.php
admin/home.php
admin_area/login.html
admin_area/index.html
admin/controlpanel.php
admin.php
admincp/index.asp
admincp/login.asp
admincp/index.html
admin/account.html
adminpanel.html
webadmin.html
webadmin/index.html
webadmin/admin.html
webadmin/login.html
admin/admin_login.html
admin_login.html
panel-administracion/login.html
admin/cp.php
cp.php
administrator/index.php
administrator/login.php
nsw/admin/login.php
webadmin/login.php
admin/admin_login.php
admin_login.php
administrator/account.php
administrator.php
admin_area/admin.html
pages/admin/admin-login.php
admin/admin-login.php
admin-login.php
bb-admin/index.html
bb-admin/login.html
bb-admin/admin.html
admin/home.html
login.php
modelsearch/login.php
moderator.php
moderator/login.php
moderator/admin.php
account.php
pages/admin/admin-login.html
admin/admin-login.html
admin-login.html
controlpanel.php
admincontrol.php
admin/adminLogin.html
adminLogin.html
admin/adminLogin.html
home.html
rcjakar/admin/login.php
adminarea/index.html
adminarea/admin.html
webadmin.php
webadmin/index.php
webadmin/admin.php
admin/controlpanel.html
admin.html
admin/cp.html
cp.html
adminpanel.php
moderator.html
administrator/index.html
administrator/login.html
user.html
administrator/account.html
administrator.html
login.html
modelsearch/login.html
moderator/login.html
adminarea/login.html
panel-administracion/index.html
panel-administracion/admin.html
modelsearch/index.html
modelsearch/admin.html
admincontrol/login.html
adm/index.html
adm.html
moderator/admin.html
user.php
account.html
controlpanel.html
admincontrol.html
panel-administracion/login.php
wp-login.php
adminLogin.php
admin/adminLogin.php
home.php
admin.php
adminarea/index.php
adminarea/admin.php
adminarea/login.php
panel-administracion/index.php
panel-administracion/admin.php
modelsearch/index.php
modelsearch/admin.php
admincontrol/login.php
adm/admloginuser.php
admloginuser.php
admin2.php
admin2/login.php
admin2/index.php
adm/index.php
adm.php
affiliate.php
adm_auth.php
memberadmin.php
administratorlogin.php
dologin.php
do_login.php
admin/dologin.php
admin/do_login.php
administration/
administration/login.php
admin/administration/
admin/administration/login.php
sadmin/
sadmin/login.php
backoffice/
backoffice/index.php
backoffice/admin.php
backoffice/login.php
backoffice/login.html
admin/logadmin.php
webmin/
webmin/login.html
webmin/login.php
admin/
administrator/
moderator/
webadmin/
adminarea/
bb-admin/
adminLogin/
admin_area/
panel-administracion/
instadmin/
memberadmin/
administratorlogin/
adm/
account.asp
admin/account.asp
admin/index.asp
admin/login.asp
admin/admin.asp
admin_area/admin.asp
admin_area/login.asp
admin/account.html
admin/index.html
admin/login.html
admin/admin.html
admin_area/admin.html
admin_area/login.html
admin_area/index.html
admin_area/index.asp
bb-admin/index.asp
bb-admin/login.asp
bb-admin/admin.asp
bb-admin/index.html
bb-admin/login.html
bb-admin/admin.html
admin/home.html
admin/controlpanel.html
admin.html
admin/cp.html
cp.html
administrator/index.html
administrator/login.html
administrator/account.html
administrator.html
login.html
modelsearch/login.html
moderator.html
moderator/login.html
moderator/admin.html
account.html
controlpanel.html
admincontrol.html
admin_login.html
panel-administracion/login.html
admin/home.asp
admin/controlpanel.asp
admin.asp
pages/admin/admin-login.asp
admin/admin-login.asp
admin-login.asp
admin/cp.asp
cp.asp
administrator/account.asp
administrator.asp
login.asp
modelsearch/login.asp
moderator.asp
moderator/login.asp
administrator/login.asp
moderator/admin.asp
controlpanel.asp
admin/account.html
adminpanel.html
webadmin.html
pages/admin/admin-login.html
admin/admin-login.html
webadmin/index.html
webadmin/admin.html
webadmin/login.html
user.asp
user.html
admincp/index.asp
admincp/login.asp
admincp/index.html
admin/adminLogin.html
adminLogin.html
admin/adminLogin.html
home.html
adminarea/index.html
adminarea/admin.html
adminarea/login.html
panel-administracion/index.html
panel-administracion/admin.html
modelsearch/index.html
modelsearch/admin.html
admin/admin_login.html
admincontrol/login.html
adm/index.html
adm.html
admincontrol.asp
admin/account.asp
adminpanel.asp
webadmin.asp
webadmin/index.asp
webadmin/admin.asp
webadmin/login.asp
admin/admin_login.asp
admin_login.asp
panel-administracion/login.asp
adminLogin.asp
admin/adminLogin.asp
home.asp
admin.asp
adminarea/index.asp
adminarea/admin.asp
adminarea/login.asp
admin-login.html
panel-administracion/index.asp
panel-administracion/admin.asp
modelsearch/index.asp
modelsearch/admin.asp
administrator/index.asp
admincontrol/login.asp
adm/admloginuser.asp
admloginuser.asp
admin2.asp
admin2/login.asp
admin2/index.asp
adm/index.asp
adm.asp
affiliate.asp
adm_auth.asp
memberadmin.asp
administratorlogin.asp
siteadmin/login.asp
siteadmin/index.asp
siteadmin/login.html

