Advertisement
lehieuit

joomla scanner server

Jun 21st, 2012
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.02 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="fr">
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  5. <title>~  Joomla Server Scanner ~</title>
  6. <style>
  7. body,table{background-image:url('data:image/gif;base64,R0lGODlhAwADAPcAAAAAAABCAP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH5BAAAAAAALAAAAAADAAMAAAgIAAMAGEhwYEAAOw=='); color: lime; font-size:13px; }
  8. A:link {text-decoration: none;color: red;}
  9. A:active {text-decoration: none;color: red;}
  10. A:visited {text-decoration: none;color: red;}
  11. A:hover {text-decoration: underline; color: red;}
  12. #new,input,table,td,tr,#gg{border-style:solid;text-decoration:bold;}
  13. input:hover,tr:hover,td:hover{background-color: #FFFFCC; color:green;}
  14. </style>
  15. </head>
  16.  
  17.  
  18. <p align="center">&nbsp;</p>
  19. <p align="center">&nbsp;</p>
  20. <p align="center">&nbsp;</p>
  21. <p align="center"><font size="5" color=#ff40a0>~# <font size="7" color=#00c0ff> Joomla Server Scanner</font></p><br>
  22. <form method="POST">
  23.     <p align="center"><input type="text" name="site" size="65"  style="border:1px dotted #60c0ff; font-family:Tahoma; font-size:10pt; color:red; background-color:#000000"><input type="submit" value="Scan it" style="border:1px dotted lime; font-family:Tahoma; font-size:10pt; color:red; background-color:#000000"></p>
  24. </form><center>
  25. <?php
  26. @set_time_limit(0);
  27. @error_reporting(E_ALL | E_NOTICE);
  28.  
  29.  
  30.  
  31.  
  32.  
  33. function sec($site){
  34. preg_match_all('{http://(.*?)(/index.php)}siU',$site, $sites);
  35. if(eregi("www",$sites[0][0])){
  36. return $site=str_replace("index.php","",$sites[0][0]);
  37. }else{
  38. return $site=str_replace("http://","http://www.",str_replace("index.php","",$sites[0][0]));
  39. }}
  40.  
  41. $npages = 50000;
  42.  
  43. if ($_POST)
  44. {
  45.   $ip = trim(strip_tags($_POST['site']));
  46.   $npage = 1;
  47.   $allLinks = array();
  48.  
  49.  
  50.    while($npage <= $npages)
  51.   {
  52.  
  53.   $x=@file_get_contents('http://www.bing.com/search?q=ip%3A' . $ip . '+index.php?option=com&first=' . $npage);
  54.  
  55.  
  56.     if ($x)
  57.     {
  58.         preg_match_all('(<div class="sb_tlst">.*<h3>.*<a href="(.*)".*>(.*)</a>.*</h3>.*</div>)siU', $x, $findlink);
  59.        
  60.         foreach ($findlink[1] as $fl)
  61.        
  62.         $allLinks[]=sec($fl);
  63.        
  64.        
  65.         $npage = $npage + 10;
  66.        
  67.         if (preg_match('(first=' . $npage . '&amp)siU', $x, $linksuiv) == 0)
  68.             break;             
  69.     }
  70.    
  71.     else
  72.         break;
  73.   }
  74.  
  75.  
  76. $allDmns = array();
  77.  
  78. foreach ($allLinks as $kk => $vv){
  79.  
  80. $allDmns[] = $vv;
  81. }
  82.            
  83. echo'<table border="1"  width=\"80%\" align=\"center\">
  84. <tr><td width=\"30%\"><b><font color="#00c020">Server IP&nbsp;&nbsp;&nbsp;&nbsp; : </font></b></td><td><b>'.$ip.'</b></td></tr>        
  85. <tr><td width=\"30%\"><b><font color="#00c020">Sites Found&nbsp; : </font></b></td><td><b><font color="#ffff40">'.count(array_unique($allDmns)).'</font></b></td></tr>
  86. </table>';
  87. echo "<br><br>";
  88.  
  89. echo'<table border="1" width="80%" align=\"center\">';
  90.  
  91. foreach(array_unique($allDmns) as $h3h3){
  92.  
  93. echo'<tr id=new><td><b><a href='.$h3h3.'>'.$h3h3.'</a></b></td>';
  94.  
  95.  
  96.  
  97. }
  98.  
  99. echo"</table>";
  100.  
  101. }
  102. ?></center>
  103. <br><p align="center"><font size="3">
  104. <font color="#00c0ff">~# <font color="#00ffa0"></b>Edit By <b> <font color="#ff60a0">[BYG] Kid<b>
  105.  
  106. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement