Advertisement
1337_Brain

Cpanel User Finder

Jun 25th, 2014
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.22 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #############################################
  3. #     Coded By Mauritania Attacker      
  4. ###########################################
  5.  
  6.        
  7.    
  8.         use LWP::Simple;
  9.                    
  10.                    
  11.                    
  12.                     print "
  13. ****************************************************
  14. * Cpanel User Finder      *
  15. ****************************************************
  16. * Coded by Mauritania Attacker               *
  17. ****************************************************";
  18.                    
  19.                     print "\n\nIP of Server -> ";
  20.                     chomp ($ip = <>);
  21.                     print "Output -> ";
  22.                     chomp ($out = <>);
  23.                     print "\n[~] Downloading Data ....\n";
  24.                     sleep(1);
  25.                     $URL = "http://www.dedicatedornot.com/xml/".$ip;
  26.                     $content = get($URL);
  27.                     @name = split(/<sites>/,$content);
  28.                     $name = @name[1];
  29.                     @name = split(/<\/sites>/,$name);
  30.                     $name = @name[0];
  31.                     $name =~ s/<site>//g;
  32.                     $name =~ s/<\/site>//g;
  33.                     $name =~ s/www.//g;
  34.                     $name =~ s/^.com//g;
  35.                     $name =~ s/^\s+//g;
  36.                     open(IP,">ip.txt");
  37.                     print IP "$name";
  38.                     close(IP);
  39.                     sleep(1);
  40.                
  41.  
  42.         print "[~] Parsing Data ...\n";
  43.         chomp ($data_file = "ip.txt");
  44.         sleep(1);
  45.         open(DAT, $data_file) || die("Could not open file!");
  46.         @raw_data=<DAT>;
  47.  
  48.         foreach $res (@raw_data)
  49.             {
  50.                  chomp($res);
  51.                  $line=$res;
  52.                  my $new_line =  substr( $line, 0,10);
  53.                 #my $new_line=$line;
  54.                  $new_line =~ s/\.//g;
  55.                 $new_line =~ s/^\s+//g;
  56.                  
  57.                 open(DA, ">>$out") || print "Can't Open File. Try chmod 777 directory<br><br>";
  58.                 print DA "$new_line\n";
  59.                 close(DA);
  60.            
  61.             } open(add,">>$out");print add "Greetz to AnonGhost";close(add);
  62.                 print "[~] Done .\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement