Advertisement
AdamTnx

Website Checker

Dec 17th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.46 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #_____     __| _/____    _____   _/  |_  ____ ___  ___
  3. #\__  \   / __ |\__  \  /     \  \   __\/    \\  \/  /
  4. #/ __ \_/ /_/ | / __ \|  Y Y  \  |  | |   |  \>    <
  5. #(____  /\____ |(____  /__|_|  /  |__| |___|  /__/\_ \
  6. #    \/      \/     \/      \/             \/      \/
  7. # Fallaga Team / Giants ps
  8. # dont change my copyright :) because you will not be great coder madafak :*
  9. #enjoyyy
  10.  
  11. use HTTP::Request;
  12. use LWP::UserAgent;
  13. use IO::Select;
  14. use HTTP::Response;
  15. use Term::ANSIColor;
  16. print color('reset');
  17. if ($^O =~ /MSWin32/) {system("cls"); }else { system("clear"); }
  18. my $tnx ="
  19.            .                                    .              
  20.         `  y`                                  /: ``            
  21.         `` /d:                     --        `sd` .            
  22.          ```:sd+.              -oooy:      /yd+.``              
  23.         `` `` .ymh-           /syyydo   `ommo`````.            
  24.         `-:``  `oym/         `yyyyNm   `ddy/   `.:`            
  25.         ./:-.`` `.+-         +ys+hMm    y/`  ``.-::            
  26.          .ss+-``` `         . -smdMs    -` .`./oy/              
  27.           :+oo/:. ``       /- `o/yMo    ```.:/oo/.              
  28.            -+os+:..-    `/hs: -/ydM:   .-`-/ooo/`              
  29.               -:-.`-.`  ohh-y +- +M`  --.`---`                  
  30.               :/o+:-.+/ `yd:/`/.-so :s/.-/o+/.                  
  31.                 -.o`  -+:-h/hsd/--:+/`  //..                    
  32.                         ./yo+-/+yo-                            
  33.                            .`y- `                              
  34.  Coded by Adam Tnx          `N:`                                
  35.      fb/adam.ag.750          s.`                                
  36.                               `                                
  37.    
  38. \n\n
  39. ";
  40.  
  41.     print color('bold red');
  42.  
  43. print $tnx;
  44. print color("red"), "Tnx Website Checker -- Run me Now  \n";
  45. print "List : \n";
  46. $list=<STDIN>;
  47.  
  48. open(tarrget,"<$list") or die "add list \n";
  49. while(<tarrget>){
  50. chomp($_);
  51. $site = $_;
  52. if($site !~ /http:\/\//) { $site = "http://$site/"; };
  53. laweej();
  54. }
  55. system("PAUSE");
  56.  
  57. sub laweej($site){
  58. $ua = LWP::UserAgent->new(keep_alive => 1);
  59. $ua->agent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31");
  60. $ua->timeout (15);
  61.  
  62. my $tnx = $ua->get("$site")->content;
  63. if($tnx =~/wp-content\/themes\/|wp-content\/plugins\/|wordpress/) {
  64.     print color('green');
  65.     print "--WORDPRESS-- / $site \n";
  66.     print color('reset');
  67. open(save, '>>wordpress.txt');
  68.     print save "$site\n";
  69.         close(save);
  70.    
  71.  
  72. }
  73.  
  74. elsif($tnx =~/<script type=\"text\/javascript\" src=\"\/media\/system\/js\/mootools.js\"><\/script>|Joomla!|Joomla|joomla/) {
  75.    print color('green');
  76.    print "--JOOMLA--  / $site \n";
  77.    print color('reset');
  78. open(save, '>>joomla.txt');
  79.    print save "$site\n";
  80.    close(save);
  81.  
  82.    }
  83. elsif($tnx =~/\/modules\/system\/system.menus.css|\/sites\/default\/files\/|<meta name=\"Generator\" content=\"Drupal 7/) {
  84.    print color('green');
  85.    print "--DRUPAL-- / $site \n";
  86.    print color('reset');
  87. open(save, '>>drupal.txt');
  88.    print save "$site\n";
  89.    close(save);
  90.    
  91.  
  92.    }elsif($tnx =~/\/Prestashop|\/js\/jquery\/plugins\/|<meta name=\"Generator\" content=\"Prestashop/) {
  93.    print ;
  94.    print "--Prestashop-- / $site \n";
  95.    print color('reset');
  96. open(save, '>>Prestashop.txt');
  97.    print save "$site\n";
  98.    close(save);
  99.    
  100.  
  101.    
  102. }
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement