Advertisement
mhute4m

Joomla Sites Extractor

Apr 15th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
  2. <head>
  3. <meta http-equiv="Content-Language" content="fr">
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  5. <title>#~Tn-Sn!PeR~#</title>
  6. <style>
  7. body,table{background: black; font-family:Verdana,tahoma; color: white; font-size:10px; }
  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. .style3 {
  15. font-size: large;
  16. color: red;
  17. }
  18. </style>
  19. </head>
  20.  
  21. <body>
  22.  
  23. <br>
  24. <form method="POST">
  25. <p align="center"><input type="text" name="site" size="65"><input type="submit" value="Go Ahead"></p>
  26. </form><center>
  27. <?php
  28.  
  29. @set_time_limit(0);
  30. @error_reporting(E_ALL | E_NOTICE);
  31.  
  32. function check_exploit($comxx){
  33.  
  34. $link ="http://www.exploit-db.com/search/?action=search&filter_page=1&filter_description=$comxx&filter_exploit_text=&filter_author=&filter_platform=0&filter_type=0&filter_lang_id=0&filter_port=&filter_osvdb=&filter_cve=";
  35.  
  36. $result = @file_get_contents($link);
  37.  
  38. if (eregi("No results",$result)) {
  39.  
  40.  
  41. }else{
  42.  
  43. echo"<td><a href='$link'>Found</a></td><td><=</td></tr>";
  44.  
  45. }
  46. }
  47.  
  48. function check_com($url){
  49.  
  50. $source = @file_get_contents($url);
  51.  
  52. preg_match_all('{option,(.*?)/}i',$source,$f);
  53. preg_match_all('{option=(.*?)(&amp;|&|")}i',$source,$f2);
  54. preg_match_all('{/components/(.*?)/}i',$source,$f3);
  55.  
  56. $arz=array_merge($f2[1],$f[1],$f3[1]);
  57.  
  58. $coms=array();
  59.  
  60. foreach(array_unique($arz) as $x){
  61. $coms[]=$x;
  62. }
  63.  
  64. foreach($coms as $comm){
  65.  
  66. echo "<tr><td>$comm</td>";
  67. check_exploit($comm);
  68. }
  69.  
  70. }
  71.  
  72. function sec($site){
  73. preg_match_all('{http://(.*?)(/index.php)}siU',$site, $sites);
  74. if(eregi("www",$sites[0][0])){
  75. return $site=str_replace("index.php","",$sites[0][0]);
  76. }else{
  77. return $site=str_replace("http://","http://www.",str_replace("index.php","",$sites[0][0]));
  78. }}
  79.  
  80. $npages = 50000;
  81.  
  82. if ($_POST)
  83. {
  84. $ip = trim(strip_tags($_POST['site']));
  85. $npage = 1;
  86. $allLinks = array();
  87.  
  88.  
  89. while($npage <= $npages)
  90. {
  91.  
  92. $x=@file_get_contents('http://www.bing.com/search?q=ip%3A' . $ip . '+index.php?option=com&first=' . $npage);
  93.  
  94.  
  95. if ($x)
  96. {
  97. preg_match_all('(<div class="sb_tlst">.*<h3>.*<a href="(.*)".*>(.*)</a>.*</h3>.*</div>)siU', $x, $findlink);
  98.  
  99. foreach ($findlink[1] as $fl)
  100.  
  101. $allLinks[]=sec($fl);
  102.  
  103.  
  104. $npage = $npage + 10;
  105.  
  106. if (preg_match('(first=' . $npage . '&amp)siU', $x, $linksuiv) == 0)
  107. break;
  108. }
  109.  
  110. else
  111. break;
  112. }
  113.  
  114.  
  115. $allDmns = array();
  116.  
  117. foreach ($allLinks as $kk => $vv){
  118.  
  119. $allDmns[] = $vv;
  120. }
  121.  
  122. echo'<table border="1" width=\"80%\" align=\"center\">
  123. <tr><td width=\"30%\"><b>&#1575;&#1610;&#1576;&#1610; &#1575;&#1604;&#1587;&#1610;&#1585;&#1601;&#1585;&nbsp;&nbsp;&nbsp;&nbsp; : </b></td><td><b>'.$ip.'</b></td></tr>
  124. <tr><td width=\"30%\"><b>&#1593;&#1583;&#1583; &#1575;&#1604;&#1605;&#1608;&#1575;&#1602;&#1593;&nbsp; : </b></td><td><b>'.count(array_unique($allDmns)).'</b></td></tr>
  125. </table>';
  126. echo "<br><br>";
  127.  
  128. echo'<table border="1" width="80%" align=\"center\">';
  129.  
  130. foreach(array_unique($allDmns) as $h3h3){
  131.  
  132. echo'<tr id=new><td><b><a href='.$h3h3.'>'.$h3h3.'</a></b></td>';
  133.  
  134. ($h3h3);
  135. }
  136. echo"</table>";
  137. }
  138. ?>
  139. <br><p align="center">
  140. <b>
  141. <span lang="en-us"><span class="style3">
  142. <font color="#800000" face="Impact" size="5">Tn-Sn!PeR</font></span></span></b></p>
  143. </body>
  144.  
  145. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement