sirnon

Joomla Server Scanner

Aug 16th, 2013
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. <p align="center">
  6. <div align="center" class="banner">Joomla Server Scanner</div>
  7. <p align="center">&nbsp;</p>
  8. <img border="0" src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/370365_100003795511051_561161049_n.jpg"</p>
  9. <link href="http://dz48-coders.org/indexi/pic/favicon.ico" type="image/x-icon" rel="shortcut icon" />
  10. <title>Joomla Server Scanner</title>
  11. <style>
  12. body{background-color:#222222;color:#A52A2A;font-family: "Comic Sans MS", cursive, sans-serif;text-align:center}
  13. span,h1,a{font-weight: bolder;text-decoration:none;}
  14. div.content{padding: 5px;margin-left:5px;background-color:#222;}
  15. a:hover{text-decoration:underline;}
  16. input,textarea,select{margin:0;color:#999;background-color:#222;border:1px solid $color;font: 8pt Tahoma,"Tahoma";}
  17. .banner {font-size: 36px;color: #FFFFFF;background-color: #000000;font-family: Georgia, "Times New Roman", Times, serif;}
  18. </style>
  19. </head>
  20. <body>
  21. <p align="center">&nbsp;</p>
  22. <form method="GET">
  23. <p align="center">IP :<input type="text" name="site" size="65"><input type="submit" value="ScaN"></p>
  24. <p align="center">&nbsp;</p>
  25. </form><center>
  26. <?php
  27. /*
  28.  
  29. File Writed By Damane2011
  30.  
  31. Thanks To: Lagripe-Dz(n4ss!m)
  32.  
  33.  
  34. Twitter: @DamaneDz
  35.  
  36. */
  37.  
  38. @set_time_limit(0);
  39. @error_reporting(0);
  40.  
  41. function sec($site){
  42. preg_match_all('{http://(.*?)(/index.php)}siU',$site, $sites);
  43. if(eregi("www",$sites[0][0])){
  44. return $site=str_replace("index.php","",$sites[0][0]);
  45. }else{
  46. return $site=str_replace("http://","http://www.",str_replace("index.php","",$sites[0][0]));
  47. }}
  48.  
  49. $npages = 50000;
  50.  
  51. if ($_GET)
  52. {
  53.   $ip = trim(strip_tags($_GET['site']));
  54.   $npage = 1;
  55.   $allLinks = array();
  56.   while($npage <= $npages)
  57.   {
  58.   $x=@file_get_contents('http://www.bing.com/search?q=ip%3A'.$ip.'+index.php?option=com&first='.$npage);
  59.     if ($x)
  60.     {
  61.        preg_match_all('(<div class="sb_tlst">.*<h3>.*<a href="(.*)".*>(.*)</a>.*</h3>.*</div>)siU', $x, $findlink);
  62.         foreach ($findlink[1] as $fl)
  63.         $allLinks[]=sec($fl);
  64.         $npage = $npage + 10;
  65.         if (preg_match('(first=' . $npage . '&amp)siU', $x, $linksuiv) == 0)
  66.             break;             
  67.     }
  68.     else
  69.         break;
  70.   }
  71. $allsites = array();
  72. foreach ($allLinks as $kk => $vv){
  73. $allsites[] = $vv;
  74. }  
  75. echo'<table border="1"  width=\"80%\" align=\"center\">
  76. <tr><td width=\"30%\"><b>Server IP&nbsp;&nbsp;&nbsp;&nbsp; : </b></td><td><b>'.$ip.'</b></td></tr>         
  77. <tr><td width=\"30%\"><b>Sites Found&nbsp; : </b></td><td><b>'.count(array_unique($allsites)).'</b></td></tr>
  78. </table>';
  79. echo "<br><br>";
  80. echo'<table border="1" width="80%" align=\"center\">';
  81. foreach(array_unique($allsites) as $dom){
  82.        flush();
  83. echo'<tr id=new><td><b><a href='.$dom.'>'.$dom.'';
  84. }
  85. echo"</table>";
  86. }
  87. ?>
  88. <p align="center">&nbsp;</p>
  89. <p align="center"><font color="#F6358A" size="4">By Damane2011</font><br><br>
  90. MaDe in AlGeria 2012 &copy</p>
  91. </center>
  92. </body>
  93. </html>
Add Comment
Please, Sign In to add comment