OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
hps
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/28/2024 11:03:35 AM
rwxrwxr-x
📁
__MACOSX
-
10/24/2024 01:40:43 PM
rwxr-xr-x
📁
bfaces
-
10/24/2024 01:40:40 PM
rwxr-xr-x
📁
faces
-
10/26/2024 01:24:59 PM
rwxr-xr-x
📄
faces.zip
106.37 MB
10/24/2024 01:40:52 PM
rw-r--r--
📁
myenv
-
10/28/2024 10:39:23 AM
rwxr-xr-x
📄
test.jpg
1.58 MB
10/24/2024 01:40:26 PM
rw-r--r--
📄
test.php
584 bytes
10/28/2024 08:51:20 AM
rw-r--r--
📄
test.py
42 bytes
10/28/2024 08:51:20 AM
rw-r--r--
Editing: test.php
Close
<?php // Path to the Python executable $pythonPath = '/usr/bin/python3'; // Adjust this path if necessary // Path to your Python script $scriptPath = '/var/www/cream/hps/test.py'; // Execute the Python script $output = []; $return_var = 0; exec("$pythonPath $scriptPath", $output, $return_var); // Check if the script executed successfully if ($return_var === 0) { echo "Script executed successfully:\n"; foreach ($output as $line) { echo $line . "\n"; } } else { echo "Script execution failed with return code: $return_var\n"; } ?>