Advertisement
madcatzano

Untitled

Sep 3rd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ERROR);
  3. $nev = "";
  4. function is_base64_encoded($data)
  5. {
  6. if (preg_match('%^[a-zA-Z0-9/+]*={0,2}$%', $data)) {
  7. return TRUE;
  8. } else {
  9. return FALSE;
  10. }
  11. }
  12.  
  13. $urlself = (!isset($_GET["local"]) ? "http://sss.pe.hu/protected/" : "http://localhost/saved_pass/");
  14. if(isset($_GET["url"]))
  15. {
  16. $d = file_get_contents($urlself.$_GET["url"]);
  17. $d = preg_replace('/[ \t]+/', '', preg_replace('/\s*$^\s*/m', "\n", $d));
  18. $f = (is_base64_encoded($d) ? base64_decode($d) : $d);
  19. $data = explode(",", $f);
  20. $string = "";
  21. for($i = 0; $i < count($data); $i++)
  22. $string .= chr($data[$i]);
  23. echo str_replace("|", " ", $string);
  24. echo "<br/>";
  25. die();
  26. }
  27. echo '<html>
  28. <head>
  29. <title>
  30. Da List
  31. </title>
  32. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  33. <script>
  34. function getLink(url)
  35. {
  36. var url2 = "lista.php";
  37. var params = "url="+url;
  38. var http = new XMLHttpRequest();
  39. var finalparams = url2+"?"+params;';
  40. if(isset($_GET["local"])) echo 'finalparams = finalparams + "&local"';
  41. echo '
  42. http.open("GET", finalparams, true);
  43. http.onreadystatechange = function()
  44. {
  45. if(http.readyState == 4 && http.status == 200) {
  46. document.getElementById(url).innerHTML = http.responseText;
  47. }
  48. }
  49. http.send(null);
  50. }
  51. </script></head><body>';
  52. $url = file_get_contents($urlself."?list");
  53. $temp = explode("\n",$url);
  54. $data = [];
  55. for($i = 0; $i < count($temp); $i++)
  56. if (strpos($temp[$i], '.cs') !== false) array_push($data, trim(preg_replace('/\s\s+/', ' ', $temp[$i])));
  57.  
  58. $data = array_reverse($data);
  59.  
  60. for($i = 0; $i < count($data); $i++)
  61. {
  62. if($nev != "")
  63. {
  64. if(!strpos($a, $nev) !== false) continue;
  65. }
  66. echo("<a href='#' onclick='getLink(\"".$data[$i]."\")'>".$data[$i]."</a> <span id='".$data[$i]."'></span><br/>");
  67. }
  68. echo '</body></html>';
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement