include('../config/conection.php');
include('../controller/jdatetime.class.php');
include('../session.php');
include('../controller/lists_model.php');
$date = new jDateTime(true, true, 'Asia/Tehran');
$timenow = jDateTime::date('l j F Y - H:i a');
$result = mysqli_query($connect,"SELECT * FROM setting");
while($row = mysqli_fetch_array($result))
{ $id=$row[0]; $theme=$row[1]; $relativeurl=$row[2]; $font=$row[3]; $version=$row[4]; $language=$row[5]; $headersite=$row[6];
?>
<!DOCTYPE html>
<html lang="<?php echo $lang['language']; ?>" dir="<?php echo $lang['Direction']; ?>">
<!-- BEGIN HEAD -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $headersite;?> | <?php echo $lang['HEADERSITE_Obfuscation']; ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="https://roocket.ir/./assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/plugins/bootstrap/css/bootstrap-rtl.min.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/plugins/bootstrap-switch/css/bootstrap-switch-rtl.min.css" rel="stylesheet" type="text/css" />
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<link href="https://roocket.ir/./assets/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/plugins/datatables/plugins/bootstrap/datatables.bootstrap-rtl.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet" type="text/css" />
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN THEME GLOBAL STYLES -->
<link href="https://roocket.ir/./assets/css/components-rtl.min.css" rel="stylesheet" id="style_components" type="text/css" />
<link href="https://roocket.ir/./assets/css/plugins-rtl.min.css" rel="stylesheet" type="text/css" />
<!-- END THEME GLOBAL STYLES -->
<!-- BEGIN THEME LAYOUT STYLES -->
<link href="https://roocket.ir/./assets/css/fonts/layout-rtl-<?php echo $font;?>.css" rel="stylesheet" type="text/css" />
<link href="https://roocket.ir/./assets/css/themes/<?php echo $theme;?>" rel="stylesheet" type="text/css" id="style_color" />
<!-- END THEME LAYOUT STYLES -->
<link rel="shortcut icon" href="https://roocket.ir/./assets/img/favicon.ico" /> </head>
<!-- END HEAD -->
<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
<?php } include('../parts/header_menu.php'); ?>
<!-- BEGIN HEADER & CONTENT DIVIDER -->
<div class="clearfix"> </div>
<!-- END HEADER & CONTENT DIVIDER -->
<!-- BEGIN CONTAINER -->
<div class="page-container">
<!-- BEGIN SIDEBAR MENU -->
<?php include('../parts/sidbar_menu.php'); ?>
<!-- END SIDEBAR MENU -->
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<!-- BEGIN CONTENT BODY -->
<div class="page-content">
<!-- BEGIN PAGE HEADER-->
<!-- BEGIN PAGE BAR -->
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<a href="https://roocket.ir/Home"><?php echo $lang['HOME_PAGE']; ?></a>
<i class="fa fa-circle"></i>
</li>
<li>
<span><?php echo $lang['OBFUSPHP']; ?></span>
</li>
</ul>
<div class="page-toolbar">
<div class="btn-group pull-right" style="font-size:13px; margin-top:6px;">
<?php echo $timenow; ?>
</div>
</div>
</div>
<!-- END PAGE BAR -->
<br>
<!-- END PAGE HEADER-->
<div class="row">
<div class="col-md-12">
<div class="note note-danger" >
<p style="font-size:12px;"> <?php echo $lang['OBFUSPHP_NOTE']; ?></p>
</div>
<?php echo $alert; ?>
<script type="text/javascript">
function copyText(){
document.getElementById("txt_copy").select();
document.execCommand('copy');
}
function saveTextAsFile(textToWrite, fileNameToSaveAs)
{
var textFileAsBlob = new Blob([textToWrite], {type:'text/plain'});
var downloadLink = document.createElement("a");
downloadLink.download = fileNameToSaveAs;
downloadLink.innerHTML = "Download File";
if (window.webkitURL != null)
{
// Chrome allows the link to be clicked
// without actually adding it to the DOM.
downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob);
}
else
{
// Firefox requires the link to be added to the DOM
// before it can be clicked.
downloadLink.href = window.URL.createObjectURL(textFileAsBlob);
downloadLink.onclick = destroyClickedElement;
downloadLink.style.display = "none";
document.body.appendChild(downloadLink);
}
downloadLink.click();
}
function readTextFile(file, callback, encoding) {
var reader = new FileReader();
reader.addEventListener('load', function (e) {
callback(this.result);
});
if (encoding) reader.readAsText(file, encoding);
else reader.readAsText(file);
}
function fileChosen(input, output) {
if (input.files && input.files[0]) {
readTextFile(
input.files[0],
function (str) {
output.value = str;
}
);
}
}
$('#files').on('change', function () {
fileChosen(this, document.getElementById('php'));
});
</script>
<!-- Begin: life time stats -->
<div class="portlet ">
<div class="portlet-title">
<div class="caption" style="font-size:14px;">
<i class="fa fa-long-arrow-down"></i><?php echo $lang['INPUT_CODE']; ?></div>
<div class="actions" style="font-size:13px;">
<?php echo $lang['SELECT_FILE']; ?> :<input name="file" type="file" id="files" class="form-control" value="">
<script src="./assets/plugins/jquery_.min.js" type="text/javascript"></script>
<script type="text/javascript">
function readTextFile(file, callback, encoding) {
var reader = new FileReader();
reader.addEventListener('load', function (e) {
callback(this.result);
});
if (encoding) reader.readAsText(file, encoding);
else reader.readAsText(file);
}
function fileChosen(input, output) {
if (input.files && input.files[0]) {
readTextFile(
input.files[0],
function (str) {
output.value = str;
}
);
}
}
$('#files').on('change', function () {
fileChosen(this, document.getElementById('php'));
});
</script>
</div>
</div>
<div class="portlet-body form">
<div class="table-container">
<form action="" method="POST">
<textarea class="form-control" rows="10" type="text" name="php" style="font-family:sans-serif;" placeholder="<?php echo $lang['INPUT_CODE_PHP']; ?>" dir="ltr" id="php"></textarea><br>
<?php echo $lang['OBFUS_LEVEL']; ?> :
<select name="option">
<option><?php echo $lang['OBFUS_LEVEL_LOW']; ?></option>
<option><?php echo $lang['OBFUS_LEVEL_MED']; ?></option>
<option><?php echo $lang['OBFUS_LEVEL_HIGH']; ?></option>
<option><?php echo $lang['OBFUS_LEVEL_STRONG']; ?></option>
</select><br><br>
<input class="btn green btn-outline sbold uppercase" type="submit" name="encode" value="<?php echo $lang['OBFUS_SUBMIT']; ?>" /><br><br>
<?php
if (isset($_POST['encode'])) {
$phpcode = $_POST['php'];
if (!empty($phpcode)) {
$option = htmlspecialchars($_POST['option']);
$website = "http://".$_SERVER['HTTP_HOST'];
$file_location = $_SERVER['REQUEST_URI'];
$all_in_one = $website.$file_location;
$uuencode = base64_encode(convert_uuencode($phpcode));
$obfuscate_low_level = strrev(base64_encode(gzdeflate(gzcompress($phpcode))));
$obfuscate_medium_level = strrev(base64_encode(gzdeflate(gzdeflate(gzcompress($phpcode)))));
$obfuscate_high_level = strrev(base64_encode(gzdeflate(gzdeflate(gzdeflate(gzcompress(gzcompress($phpcode)))))));
$high_level = strrev(base64_encode(gzcompress(gzdeflate(gzcompress(gzdeflate(gzcompress(gzdeflate(gzcompress(gzdeflate(str_rot13($phpcode)))))))))));
$high_level_1 = str_replace('a', '\x61', $high_level);
$high_level_2 = str_replace('A', '\x41', $high_level_1);
$high_level_3 = str_replace('b', '\x62', $high_level_2);
$high_level_4 = str_replace('B', '\x42', $high_level_3);
$high_level_5 = str_replace('c', '\x63', $high_level_4);
$high_level_6 = str_replace('C', '\x43', $high_level_5);
$high_level_7 = str_replace('=', '\x3d', $high_level_6);
$high_level_8 = str_replace('+', '\x2b', $high_level_7);
switch ($option) {
case 'انسداد ضعیف':
echo '
<div class="portlet ">
<div class="portlet-title">
<div class="caption" style="font-size:14px;">
<i class="fa fa-long-arrow-up"></i>خروجی کد (output code)</div>
<div class="actions">
<button class="btn btn-outline btn-circle red btn-sm blue" id="copy" onclick="copyText();"> <i class="fa fa-copy"></i> کپی </button>
<button class="btn btn-outline btn-circle btn-sm purple" onclick=saveTextAsFile(txt_copy.value,"document.php")> <i class="fa fa-download"></i> دریافت فایل</button>
</div>
</div>
<textarea class="form-control" rows="10" dir="ltr" style="color:#009900; font-family:sans-serif;" id="txt_copy">
<?php
$WPUSER = "Sy1LzNFQt1dLL7FW10uvKs1Lzs8tKEotLtZIr8rMS8tJLEnVSEosTjUziU9JT\x635PSdUoLikqSi3TUHHMM8iLN64IyMnPDEkN0gQ\x42\x61w\x41\x3d";
$An0n_3xPloiTeR = "'.$obfuscate_low_level.'";
eval(htmlspecialchars_decode(gzinflate(base64_decode($WPUSER))));
?></textarea><br><br>
';
break;
case 'انسداد سطح متوسط':
echo '
<div class="portlet ">
<div class="portlet-title">
<div class="caption" style="font-size:14px;">
<i class="fa fa-long-arrow-up"></i>خروجی کد (output code)</div>
<div class="actions">
<button class="btn btn-outline btn-circle red btn-sm blue" id="copy" onclick="copyText();"> <i class="fa fa-copy"></i> کپی </button>
<button class="btn btn-outline btn-circle btn-sm purple" onclick=saveTextAsFile(txt_copy.value,"document.php")> <i class="fa fa-download"></i> دریافت فایل</button>
</div>
</div>
<textarea rows="10" class="form-control" dir="ltr" style="color:#009900; font-family:sans-serif;" id="txt_copy">
<?php
$WPUSER = "Sy1LzNFQt1dLL7FW10uvKs1Lzs8tKEotLtZIr8rMS8tJLElFYiUlFqe\x61m\x63Snp\x43\x62np6RqFJ\x63UF\x61WW\x61\x61g45hnkxRtX\x42OTkZ4\x61k\x42mm\x43gTU\x41";
$An0n_3xPloiTeR = "'.$obfuscate_medium_level.'";
eval(htmlspecialchars_decode(gzinflate(base64_decode($WPUSER))));
?></textarea><br><br>
';
break;
case 'انسداد قوی':
echo '
<div class="portlet ">
<div class="portlet-title">
<div class="caption" style="font-size:14px;">
<i class="fa fa-long-arrow-up"></i>خروجی کد (output code)</div>
<div class="actions">
<button class="btn btn-outline btn-circle red btn-sm blue" id="copy" onclick="copyText();"> <i class="fa fa-copy"></i> کپی </button>
<button class="btn btn-outline btn-circle btn-sm purple" onclick=saveTextAsFile(txt_copy.value,"document.php")> <i class="fa fa-download"></i> دریافت فایل</button>
</div>
</div>
<textarea rows="10" class="form-control" dir="ltr" style="color:#009900; font-family:sans-serif;" id="txt_copy">
<?php
$WPUSER = "Sy1LzNFQKyzNL7G2V0svsYYw9dKrSvOS83MLilKLizXQOJl5\x61TmJJ\x61lYWUmJx\x61lmJvEpq\x63n5K\x61k\x61xSVFR\x61llGiqOeQZ58\x63YV\x41Tn5mSGpQZpQY\x410\x41";
$An0n_3xPloiTeR = "'.$obfuscate_high_level.'";
eval(htmlspecialchars_decode(gzinflate(base64_decode($WPUSER))));
?></textarea><br><br>
';
break;
case 'انسداد سطح بالا':
echo '
<div class="portlet ">
<div class="portlet-title">
<div class="caption" style="font-size:14px;">
<i class="fa fa-long-arrow-up"></i>خروجی کد (output code)</div>
<div class="actions">
<button class="btn btn-outline btn-circle red btn-sm blue" id="copy" onclick="copyText();"> <i class="fa fa-copy"></i> کپی </button>
<button class="btn btn-outline btn-circle btn-sm purple" onclick=saveTextAsFile(txt_copy.value,"document.php")> <i class="fa fa-download"></i> دریافت فایل</button>
</div>
</div>
<textarea rows="10" class="form-control" dir="ltr" style="color:#009900; font-family:sans-serif;" id="txt_copy">
<?php
$WPUSER = "Sy1LzNFQKyzNL7G2V0svsYYw9YpLiuKL8ksMjTXSqzLz0nISS1K\x42rNK85Pz\x63gqLU4mLq\x43\x43\x63lFqe\x61m\x63Snp\x43\x62np6Rq\x41O0sSi3TUHHMM8iLN64IyMnPDEkN0kQ\x431g\x41\x3d";
$An0n_3xPloiTeR = "'.$high_level_8.'";
eval(htmlspecialchars_decode(gzinflate(base64_decode($WPUSER))));
?></textarea><br><br>
';
break;
}
}
}
?>
</form>
</div>
</div>
</div>
<!-- End: life time stats -->
</div>
</div>
</div>
<!-- END CONTENT BODY -->
</div>
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php include('../parts/footer.php'); ?>
<!-- END FOOTER -->
<!--[if lt IE 9]>
<script src="../assets/global/plugins/respond.min.js"></script>
<script src="../assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
<!-- BEGIN CORE PLUGINS -->
<script src="./assets/plugins/jquery.min.js" type="text/javascript"></script>
<script src="./assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="./assets/plugins/js.cookie.min.js" type="text/javascript"></script>
<script src="./assets/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="./assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="./assets/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="./assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="./assets/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="./assets/plugins/datatable.js" type="text/javascript"></script>
<script src="./assets/plugins/datatables/datatables.min.js" type="text/javascript"></script>
<script src="./assets/plugins/datatables/plugins/bootstrap/datatables.bootstrap.js" type="text/javascript"></script>
<script src="./assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
<script src="./assets/plugins/bootstrap-/bootstrap-maxlength.min.js" type="text/javascript"></script>
<script src="./assets/plugins/fancybox/source/jquery.fancybox.pack.js" type="text/javascript"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN THEME GLOBAL SCRIPTS -->
<script src="./assets/plugins/app.min.js" type="text/javascript"></script>
<!-- END THEME GLOBAL SCRIPTS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="./assets/plugins/ecommerce-products.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<!-- BEGIN THEME LAYOUT SCRIPTS -->
<script src="./assets/plugins/layout.min.js" type="text/javascript"></script>
<script src="./assets/plugins/demo.min.js" type="text/javascript"></script>
<script src="./assets/plugins/quick-sidebar.min.js" type="text/javascript"></script>
<!-- END THEME LAYOUT SCRIPTS -->
</body>
</html>```شاید پاسخ شما همینجا باشد
سلام به شما
$phpcode = چیزی که میخواید رمزگذاری بشه
$website = "http://".$_SERVER['HTTP_HOST'];
$file_location = $_SERVER['REQUEST_URI'];
$all_in_one = $website.$file_location;
$uuencode = base64_encode(convert_uuencode($phpcode));
$obfuscate_low_level = strrev(base64_encode(gzdeflate(gzcompress($phpcode))));
$obfuscate_medium_level = strrev(base64_encode(gzdeflate(gzdeflate(gzcompress($phpcode)))));
$obfuscate_high_level = strrev(base64_encode(gzdeflate(gzdeflate(gzdeflate(gzcompress(gzcompress($phpcode)))))));
$high_level = strrev(base64_encode(gzcompress(gzdeflate(gzcompress(gzdeflate(gzcompress(gzdeflate(gzcompress(gzdeflate(str_rot13($phpcode)))))))))));
$high_level_1 = str_replace('a', '\x61', $high_level);
$high_level_2 = str_replace('A', '\x41', $high_level_1);
$high_level_3 = str_replace('b', '\x62', $high_level_2);
$high_level_4 = str_replace('B', '\x42', $high_level_3);
$high_level_5 = str_replace('c', '\x63', $high_level_4);
$high_level_6 = str_replace('C', '\x43', $high_level_5);
$high_level_7 = str_replace('=', '\x3d', $high_level_6);
$high_level_8 = str_replace('+', '\x2b', $high_level_7);
این قسمت کد میشه جایی که رمزگذاری (encode) میکنه ، حالا یه شما میتونید بگید بر اساس انتخاب کاربر چه نوع رمزگذاری انجام بشه
سطح متوسط
سطح سخت
سطح خیلی سخت
... و
که سطح رمزنگاری میشه از متغیر high_level_1 تا متغیر high_level_8 .
موفق باشید.
دوست عزیز صفحه سفید میشه یعنی جلوی نمایش ارور ها گرفته شده با این کد رو اول اسکریپتتون قرار بدین بعد از ارورها عکس بفرستین
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);ممنون تغریبا درست شده ولی هنوز یک مشکلی دارم
مثلا من اگه
<?php
echo 'hello roocket';
?>
کد شدش هم به این شکل در میاد
\x3d8SKkylvdQ22\x418\x41e\x61iL\x62f2T\x62w\x62sxWyVur831mTLVlR4t7VjNNVT2hur2GKg/3f5VYNjf//pxus32sD4VMoNj/n/w\x42MqDi9r84YGtjxJe/\x62L\x41JFw/x\x43gT\x42wJe
وقتی این کد رو داخل یک فایل index.php قرار میدم به این شکل
\x3d8SKkylvdQ22\x418\x41e\x61iL\x62f2T\x62w\x62sxWyVur831mTLVlR4t7VjNNVT2hur2GKg/3f5VYNjf//pxus32sD4VMoNj/n/w\x42MqDi9r84YGtjxJe/\x62L\x41JFw/x\x43gT\x42wJe
همینو نشون میده