Update raw/tes
This commit is contained in:
parent
629e422c85
commit
ecf6f40b97
13
raw/tes
13
raw/tes
@ -1,10 +1,9 @@
|
||||
<?php
|
||||
error_reporting(E_ALL); // Menampilkan semua error
|
||||
ini_set('display_errors', 1); // Pastikan error ditampilkan
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
|
||||
header("Access-Control-Allow-Headers: Content-Type");
|
||||
|
||||
// Menjalankan perintah `uname -a` menggunakan exec()
|
||||
$unameInfo = exec('whoami');
|
||||
|
||||
// Mengembalikan hasil dalam format JSON
|
||||
// Output JSON
|
||||
$unameInfo = exec('uname -a');
|
||||
echo json_encode(["uname" => $unameInfo]);
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user