MBCompilerOnline/obf.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2024-05-11 17:47:33 +03:00
<html>
<head>
<meta http-equiv="Content-Type" content="application/html; charset=utf-8"/>
<meta http-equiv="Copyright" content="Андрей Рейгант (HoldFast)"/>
<link rel="stylesheet" media="all" type="text/css" href="mbstyle/mbs.css"/>
<title>Сервис для работы с BAS файлами</title>
</head>
<body>
<h2>Обфускация</h2>
<?php
include "classes/bas.class.php";
if (($_GET['obf'] ?? '') != "yes") {
echo '<form action="?obf=yes" method="post" enctype="multipart/form-data">
Выберите ваш BAS файл:<br>
<input type="file" name="bas"><br>
<input type="submit" value="Обфусцировать">
</form>';
} else {
if (is_uploaded_file($_FILES['bas']['tmp_name'])) {
$namebas = 'bas_obf' . rand(1000,99999) . '.bas';
$bas = new BAS($_FILES['bas']['tmp_name']);
$log = $bas->obfuscation('tmp/' . $namebas);
if ($log != '-2' && $log != '-1') {
echo 'Файл успешно обфусцирован!<br><a href="tmp/' . $namebas . '">Скачать</a>';
} else {
echo 'Ошибка обфскации!';
}
}
}
?>
</body>
</html>