403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/projects/tempcontrol/debug/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/projects/tempcontrol/debug/debug_test.php
<?php
// debug_test.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', '/tmp/php_debug.log');

file_put_contents('/tmp/debug.log', "=== DEBUG TEST STARTED ===\n", FILE_APPEND);

// Proverimo sve načine za čitanje podataka
$php_input = file_get_contents('php://input');
$post_data = print_r($_POST, true);
$server_data = print_r(['CONTENT_TYPE' => $_SERVER['CONTENT_TYPE'] ?? 'NOT SET', 'REQUEST_METHOD' => $_SERVER['REQUEST_METHOD'] ?? 'NOT SET'], true);

file_put_contents('/tmp/debug.log', "php://input: '" . $php_input . "'\n", FILE_APPEND);
file_put_contents('/tmp/debug.log', "POST data: " . $post_data . "\n", FILE_APPEND);
file_put_contents('/tmp/debug.log', "SERVER data: " . $server_data . "\n", FILE_APPEND);

// Probajmo da pročitamo raw podatke na drugi način
$raw_data = '';
$handle = fopen('php://input', 'r');
if ($handle) {
    while (!feof($handle)) {
        $raw_data .= fread($handle, 8192);
    }
    fclose($handle);
}

file_put_contents('/tmp/debug.log', "Raw data via fopen: '" . $raw_data . "'\n", FILE_APPEND);

echo json_encode([
    'php_input' => $php_input,
    'post_data' => $_POST,
    'raw_data' => $raw_data
]);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit