50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Test for Luartex V6.0 - Infinite Morph Engine
|
|
*/
|
|
|
|
$test_code = '
|
|
print("Luartex V6.0 Reality Test")
|
|
local secret = "INFINITE_MORPH_ACTIVE"
|
|
local data = {1, 2, 3, 4, 5}
|
|
local sum = 0
|
|
for i, v in ipairs(data) do
|
|
sum = sum + v
|
|
end
|
|
print("Checksum: " .. tostring(sum))
|
|
if sum == 15 then
|
|
print("Logic Integrity: PASSED")
|
|
else
|
|
print("Logic Integrity: POISONED")
|
|
end
|
|
';
|
|
|
|
$url = 'http://localhost/process.php';
|
|
$options = [
|
|
'http' => [
|
|
'header' => "Content-type: application/json\r\n",
|
|
'method' => 'POST',
|
|
'content' => json_encode(['code' => $test_code]),
|
|
],
|
|
];
|
|
|
|
$context = stream_context_create($options);
|
|
$result = file_get_contents($url, false, $context);
|
|
|
|
if ($result === FALSE) {
|
|
die("Error reaching process.php");
|
|
}
|
|
|
|
$response = json_decode($result, true);
|
|
|
|
if ($response && $response['success']) {
|
|
$protected_file = 'protected_v6_0.lua';
|
|
file_put_contents($protected_file, $response['protected_code']);
|
|
echo "Successfully generated $protected_file\n";
|
|
echo "Stats: " . json_encode($response['stats']) . "\n";
|
|
} else {
|
|
echo "Error: " . ($response['error'] ?? 'Unknown error') . "\n";
|
|
echo "Full response: " . $result . "\n";
|
|
}
|
|
|