Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <?php
  2. $bonekeyfile = "/var/www/bonebadge2019/bonekey.txt";
  3.  
  4. $fp1 = fopen($bonekeyfile, "r");
  5. $bonekey = fread($fp1, filesize($bonekeyfile));
  6. fclose($fp1);
  7.  
  8. if (!$bonekey) {
  9.  $newKey = substr(md5(time()), 0, 6);
  10.  setcookie('bonebadge2019', $newKey, 0);
  11.  
  12.  $data = "ACTIVATION KEY: " . $newKey . "\n\n";
  13.  $data .= "HTTP HEADERS:\n";
  14.  $data .= print_r($_SERVER, true);
  15.  
  16.  $fp = fopen($bonekeyfile, "w");
  17.  fwrite($fp, $data);
  18.  fclose($fp);
  19.  
  20.  $code = $newKey;
  21. } elseif ($_COOKIE['bonebadge2019']) {
  22.   $code = $_COOKIE['bonebadge2019'];
  23. } else {
  24.   echo "Sorry, the secret has already been uncovered by someone else.<br>";
  25. }
  26.  
  27. if ($code) {
  28.  echo "Congratulations for discovering the secret. You're the only one who's able to see this!<br>";
  29.  echo "Please contact Drano The Cat on Telegram and give him this code: <b>$code</b><br>";
  30.  echo "Telegram link: <a href=\"https://t.me/DranoTheCat\">https://t.me/DranoTheCat</a><br>";
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement