Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ERROR);
- $nev = "";
- function is_base64_encoded($data)
- {
- if (preg_match('%^[a-zA-Z0-9/+]*={0,2}$%', $data)) {
- return TRUE;
- } else {
- return FALSE;
- }
- }
- $urlself = (!isset($_GET["local"]) ? "http://sss.pe.hu/protected/" : "http://localhost/saved_pass/");
- if(isset($_GET["url"]))
- {
- $d = file_get_contents($urlself.$_GET["url"]);
- $d = preg_replace('/[ \t]+/', '', preg_replace('/\s*$^\s*/m', "\n", $d));
- $f = (is_base64_encoded($d) ? base64_decode($d) : $d);
- $data = explode(",", $f);
- $string = "";
- for($i = 0; $i < count($data); $i++)
- $string .= chr($data[$i]);
- echo str_replace("|", " ", $string);
- echo "<br/>";
- die();
- }
- echo '<html>
- <head>
- <title>
- Da List
- </title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script>
- function getLink(url)
- {
- var url2 = "lista.php";
- var params = "url="+url;
- var http = new XMLHttpRequest();
- var finalparams = url2+"?"+params;';
- if(isset($_GET["local"])) echo 'finalparams = finalparams + "&local"';
- echo '
- http.open("GET", finalparams, true);
- http.onreadystatechange = function()
- {
- if(http.readyState == 4 && http.status == 200) {
- document.getElementById(url).innerHTML = http.responseText;
- }
- }
- http.send(null);
- }
- </script></head><body>';
- $url = file_get_contents($urlself."?list");
- $temp = explode("\n",$url);
- $data = [];
- for($i = 0; $i < count($temp); $i++)
- if (strpos($temp[$i], '.cs') !== false) array_push($data, trim(preg_replace('/\s\s+/', ' ', $temp[$i])));
- $data = array_reverse($data);
- for($i = 0; $i < count($data); $i++)
- {
- if($nev != "")
- {
- if(!strpos($a, $nev) !== false) continue;
- }
- echo("<a href='#' onclick='getLink(\"".$data[$i]."\")'>".$data[$i]."</a> <span id='".$data[$i]."'></span><br/>");
- }
- echo '</body></html>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement