Advertisement
ajithkp560

Simple Wordpress Finder

Jan 8th, 2013
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.81 KB | None | 0 0
  1. <style>
  2.     html { background:url(http://www.ajithkp560.hostei.com/images/background.gif) black; }
  3.     #result{ -moz-border-radius: 10px; border-radius: 10px; border:1px solid green; padding:4px 8px; line-height:16px; background:#111111; color:#aaa; margin:0 0 8px 0; min-height:100px;}
  4.     textarea { background-color:#111111; border:1px groove #333; color:green; }
  5.     textarea:hover { text-decoration:none; border:1px dashed #333; }
  6.     hr { border:1px solid #222222; }
  7.     .tbl{ width:100%; padding:4px 0; color:#888; font-size:15px; text-align:center;  }
  8.     .tbl a{ text-decoration:none; color:green; font-size:15px; vertical-align:middle; }
  9.     .tbl a:hover{text-decoration:underline;}
  10.     .tbl td{ border-bottom:1px solid #222222; padding:0 8px; line-height:24px;  vertical-align:middle; width: 300px; }
  11.     .tbl th{ padding:3px 8px; font-weight:normal; background:#222222; color:#555; vertical-align:middle; }
  12.     .tbl tr:hover{ background:#181818; }
  13.     input { font-size:11px; background:#191919; color:green; margin:0 4px; border:1px solid #222222; }
  14.     .input_big { width:75px; height:30px; background:#191919; color:green; margin:0 4px; border:1px solid #222222; font-size:17px; }
  15. </style>
  16. <title>WP Finder By Ajithkp560</title>
  17. <?php
  18. if(!isset($_POST['sites']))
  19. {
  20.     ?>
  21.     <div id=result><center><h2>Input List Of Websites</h2><hr /><br /><br /><form method=post><textarea name='sites' rows=20 cols=60 spellcheck='false'></textarea><br /><input type=submit class=input_big value='   >>   ' /></form><br /><br /><hr /><br /><br /></center></div>
  22.     <?php
  23. }
  24. else
  25. {
  26.     echo "<div id=result><center><h2>Scanner Report</h2><hr /><br /><br /><table class=tbl>";
  27.     $uri_in=$_POST['sites'];
  28.     $r_xuri = trim($uri_in);
  29.     $r_xuri=explode("\n", $r_xuri);
  30.     foreach($r_xuri as $rty)
  31.     {
  32.         if(strtolower(substr($rty,0,4))!=="http")
  33.         {
  34.             $rty="http://$rty";
  35.         }
  36.         $urlzzx="$rty/wp-includes/";
  37.         if(function_exists('curl_init'))
  38.         {
  39.             echo "<tr><td style='text-align:left'><font color=orange>Checking : </font> <font color=7171C6> $rty </font></td>";
  40.             $ch = curl_init($urlzzx);
  41.             curl_setopt($ch, CURLOPT_NOBODY, true);
  42.             curl_exec($ch);
  43.             $status_code=curl_getinfo($ch, CURLINFO_HTTP_CODE);
  44.             curl_close($ch);
  45.             if($status_code!=404)
  46.             {
  47.                 echo "<td style='text-align:left'><font color=green> Found....</font></td></tr>";
  48.             }
  49.             else
  50.             {
  51.                 echo "<td style='text-align:left'><font color=red>Not Found...</font></td></tr>";
  52.             }
  53.         }
  54.         else
  55.         {
  56.             echo "<font color=red>cURL Not Found </font>";
  57.             break;
  58.         }
  59.     }
  60.     echo "</table><br /><br /><hr /><br /><br /></div>";
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement