RintoMuhamad

ZHE GENERATOR ZONE_H :D

May 25th, 2019
1,701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.96 KB | None | 0 0
  1. <?php
  2. // Con7ext
  3. // if error just reload
  4. function curl($url){
  5.         $ch = curl_init()
  6.         curl_setopt($ch, CURLOPT_URL, $url);
  7.         curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120);
  8.         curl_setopt($ch, CURLOPT_TIMEOUT, 120);
  9.         curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0");
  10.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  11.         curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  12.         curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  13.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  14.         $rest = curl_exec($ch);
  15.         return $rest;
  16. }
  17. function getStr($string, $start, $end){
  18.         $str = explode($start, $string);
  19.         $str = explode($end, $str[1]);
  20.         return $str[0];
  21. }
  22. $mek = curl("http://zone-h.org/");
  23. $eol = getStr($mek, "a=toNumbers(\"", "\")");
  24. $oal = getStr($mek, "b=toNumbers(\"", "\")");
  25. $iol = getStr($mek, "c=toNumbers(\"", "\")");
  26. ?>
  27. <script type="text/javascript" src="http://zone-h.org/z.js">
  28. </script>
  29. <script>
  30.     function toNumbers(d) {
  31.         var e = [];
  32.         d.replace(/(..)/g, function(d) {
  33.             e.push(parseInt(d, 16))
  34.         });
  35.         return e
  36.     }
  37.  
  38.     function toHex() {
  39.         for (var d = [], d = 1 == arguments.length && arguments[0].constructor == Array ? arguments[0] : arguments, e = "", f = 0; f < d.length; f++) e += (16 > d[f] ? "0" : "") + d[f].toString(16);
  40.         return e.toLowerCase()
  41.     }
  42.     var a = toNumbers("<?php echo $eol; ?>"),
  43.         b = toNumbers("<?php echo $oal; ?>"),
  44.         c = toNumbers("<?php echo $iol; ?>");
  45.     document.cookie = "ZHE=" + toHex(slowAES.decrypt(c, 2, a, b)) + "; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";
  46. </script>
  47. <?php
  48. $header = explode("; ", getallheaders()['Cookie']);
  49. $cookies = array();
  50. foreach($header as $itm) {
  51.     list($key, $val) = explode('=', $itm,2);
  52.     $cookies[$key] = $val;
  53. }
  54. var_dump($cookies);
  55. // if u want to call ZHE /// echo $cookies["ZHE"];
Advertisement
Add Comment
Please, Sign In to add comment