30 lines
1007 B
PHP
30 lines
1007 B
PHP
<?php
|
|
$code = 'print("Hello from Hyperion V5.9")
|
|
local x = 10
|
|
print("Value of x is:", x)
|
|
';
|
|
|
|
$ch = curl_init('http://localhost/process.php');
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
curl_setopt($ch, CURLOPT_POST, true);
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['code' => $code]));
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
|
|
|
|
$response = curl_exec($ch);
|
|
$data = json_decode($response, true);
|
|
|
|
if ($data && $data['success']) {
|
|
$protected_code = $data['protected_code'];
|
|
file_put_contents('protected_v5_9.lua', $protected_code);
|
|
echo "Obfuscation successful. Output saved to protected_v5_9.lua\n";
|
|
|
|
// Execute the protected code using lua
|
|
$output = shell_exec('lua protected_v5_9.lua 2>&1');
|
|
echo "Execution output:\n$output\n";
|
|
} else {
|
|
echo "Obfuscation failed: " . ($data['error'] ?? 'Unknown error') . "\n";
|
|
if (isset($data['error'])) {
|
|
echo "Error detail: " . print_r($data, true) . "\n";
|
|
}
|
|
}
|
|
curl_close($ch); |