Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Coded by an0nguy [at] protonmail.ch ~ http://blog.lolwaleet.com/
- * Based on -- http://www.blackcoder.info/c/cmschecker.txt
- *
- * Pic -- http://i.imgur.com/pZfMyZg.png
- * Thanks to => T3N38R15 <= for improving teh code ^_^
- */
- $curfile = $argv[0];
- $domain = @$argv[1];
- echo "
- ------------------------------------------------\n
- - Simple CMS Checker by AnonGuy -\n
- ------------------------------------------------\n";
- if(!$domain){ echo "
- Usage -- $curfile www.example.com
- -- $curfile 8.8.8.8
- "; }
- else{
- $domainsLined = file_get_contents("http://api.hackertarget.com/reverseiplookup/?q=$domain");
- $domainsArray = explode("\n", $domainsLined);
- array_pop($domainsArray); # *pop* :P
- # Empty variables which'll get filled by the end of execution ..
- $joomla = 0
- $wordpress = 0;
- $drupal = 0;
- $vbulletin = 0;
- $custom = 0;
- foreach ($domainsArray as $domain){
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_URL => $domain,
- CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
- ));
- $source = curl_exec($curl);
- curl_close($curl);
- if(strpos($source, "Joomla") !== false) {echo "$domain -- Joomla!\n"; array_push($joomla, $domain); file_put_contents("joom.txt", "$domain\n", FILE_APPEND); }
- elseif(strpos($source, "wordpress") !== false || strpos($source, "xmlrpc.php") !== false ) {echo "$domain -- Wordpress!\n"; array_push($wordpress, $domain); file_put_contents("wp.txt", "$domain\n", FILE_APPEND);}
- elseif(strpos($source, "Drupal") !== false) {echo "$domain -- Drupal!\n"; array_push($drupal, $domain); file_put_contents("drupal.txt", "$domain\n", FILE_APPEND);}
- elseif(strpos($source, "vBulletin") !== false) {echo "$domain -- vBulletin!\n"; array_push($vbulletin, $domain); file_put_contents("vb.txt", "$domain\n", FILE_APPEND);}
- else {echo "$domain -- Custom CMS!\n"; array_push($custom, $domain); file_put_contents("custom.txt", "$domain\n", FILE_APPEND);}}
- echo "\n------------------------------------------------\nWordpress -- $wordpress --> wp.txt\nJoomla -- $joomla --> joom.txt\nDrupal -- $drupal --> drupal.txt\nvBulletin -- $vbulletin --> vb.txt\nCustom -- $custom --> custom.txt\n------------------------------------------------";}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement