登录
立即注册
首页
>
绿虎论坛
>
历史版块
>
编程
>
PHP
被这个加密难道了
晨曦
@Ta
2016-12-20
3617点击
一时半会没解出来,哪位有闲心弄下,感谢
jm.php(3.27 KB)
隐藏样式
查看源码
回复列表(6|
隐藏机器人聊天
)
1
20263
@Ta
/ 2016-12-20 /
样
/
源
到
2
20263
@Ta
/ 2016-12-20 /
样
/
源
倒
3
HW
@Ta
/ 2016-12-20 /
样
/
源
@
晨曦
,<?php
if( _hui('layout') == 'ui-navtop'){;echo '</div>
</section>
';};echo '<footer class="footer">
© ';echo date('Y');;echo ' <a href="';bloginfo('url');;echo '">';bloginfo('name');;echo '</a> ';echo __('本站主题由','haoui') ;echo ' <a href="
http://www.topthene.org
" target="_blank">';echo __('themebetter','haoui') ;echo '</a><a href="
http://www.wtheme.cc
" target="_blank">';echo __('themebetter','haoui') ;echo '</a> ';echo __('提供','haoui') ;echo ' ';echo _hui('footer_seo') ;echo ' ';echo _hui('trackcode') ;echo '</footer>
';if( _hui('layout') !== 'ui-navtop'){;echo '</section>
';};echo '
';
$roll = '';
if( is_home() &&_hui('sideroll_index_s') ){
$roll = _hui('sideroll_index');
}else if( (is_category() ||is_tag() ||is_search()) &&_hui('sideroll_list_s') ){
$roll = _hui('sideroll_list');
}else if( is_single() &&_hui('sideroll_post_s') ){
$roll = _hui('sideroll_post');
}else if( is_page() &&_hui('sideroll_page_s') ){
$roll = _hui('sideroll_page');
}
$ajaxpager = '0';
if( ((!wp_is_mobile() &&_hui('ajaxpager_s')) ||(wp_is_mobile() &&_hui('ajaxpager_s_m'))) &&_hui('ajaxpager') ){
$ajaxpager = _hui('ajaxpager');
}
;echo '<script>
window.jui = {
uri: \'';echo THEME_URI ;echo '\',
roll: \'';echo $roll ;echo '\',
ajaxpager: \'';echo $ajaxpager ;echo '\'
}
</script>
';wp_footer();;echo '</body>
</html>';?>
4
晨曦
@Ta
/ 2016-12-20 /
样
/
源
@
HW
,6 怎么搞的 感谢
5
HW
@Ta
/ 2016-12-21 /
样
/
源
@
晨曦
,<?php
$file = 'a.php'; //要解密的文件
error_reporting(E_ERROR);
header("content-Type: text/html; charset=gb2312");
set_time_limit(120);
function Read($filename)
{
$handle =
@
fopen
($filename,"r");
$filecode =
@
fread
($handle,
@
filesize
($filename));
@
fclose
($handle);
return $filecode;
}
function weidun_decode($code)
{
$tmp = '';$tmp1 = '';$tmp2 = '';
$linearray = file($code);
$keyarray = array(base64_decode('L08wTzAwMDBPMFwoJy4qJ1wpLw=='),base64_decode('L1wpLCcuKicsLw=='),base64_decode('LyxcZCpcKSwv'),base64_decode('TzBPMDAwME8wKCc='),base64_decode('QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLw=='));
if(preg_match($keyarray[0],$linearray[1],$str)){$tmp = str_replace($keyarray[3],'',$str[0]);$tmp = str_replace('\')','',$tmp);$tmp = base64_decode($tmp);}
if(preg_match($keyarray[1],$tmp,$str1)){$tmp1 = str_replace('),\'','',$str1[0]);$tmp1 = str_replace('\',','',$tmp1);}
if(preg_match($keyarray[2],$tmp,$str2)){$tmp2 = str_replace('),','',$str2[0]);$tmp2 = str_replace(',','',$tmp2);}
return '<?php'."\r\n".base64_decode(strtr(substr($linearray[2],$tmp2),$tmp1,$keyarray[4]))."\r\n".'?>';
}
echo '解密前:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(Read($file)).'</textarea><br /><br />';
echo '解密后:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(weidun_decode($file)).'</textarea><br />';
?>
6
晨曦
@Ta
/ 2016-12-21 /
样
/
源
@
HW
,原来是威盾 汗 自己把他想复杂了 感谢
添加新回复
回复需要
登录
。
if( _hui('layout') == 'ui-navtop'){;echo '</div>
</section>
';};echo '<footer class="footer">
© ';echo date('Y');;echo ' <a href="';bloginfo('url');;echo '">';bloginfo('name');;echo '</a> ';echo __('本站主题由','haoui') ;echo ' <a href="http://www.topthene.org" target="_blank">';echo __('themebetter','haoui') ;echo '</a><a href="http://www.wtheme.cc" target="_blank">';echo __('themebetter','haoui') ;echo '</a> ';echo __('提供','haoui') ;echo ' ';echo _hui('footer_seo') ;echo ' ';echo _hui('trackcode') ;echo '</footer>
';if( _hui('layout') !== 'ui-navtop'){;echo '</section>
';};echo '
';
$roll = '';
if( is_home() &&_hui('sideroll_index_s') ){
$roll = _hui('sideroll_index');
}else if( (is_category() ||is_tag() ||is_search()) &&_hui('sideroll_list_s') ){
$roll = _hui('sideroll_list');
}else if( is_single() &&_hui('sideroll_post_s') ){
$roll = _hui('sideroll_post');
}else if( is_page() &&_hui('sideroll_page_s') ){
$roll = _hui('sideroll_page');
}
$ajaxpager = '0';
if( ((!wp_is_mobile() &&_hui('ajaxpager_s')) ||(wp_is_mobile() &&_hui('ajaxpager_s_m'))) &&_hui('ajaxpager') ){
$ajaxpager = _hui('ajaxpager');
}
;echo '<script>
window.jui = {
uri: \'';echo THEME_URI ;echo '\',
roll: \'';echo $roll ;echo '\',
ajaxpager: \'';echo $ajaxpager ;echo '\'
}
</script>
';wp_footer();;echo '</body>
</html>';?>
$file = 'a.php'; //要解密的文件
error_reporting(E_ERROR);
header("content-Type: text/html; charset=gb2312");
set_time_limit(120);
function Read($filename)
{
$handle = @fopen($filename,"r");
$filecode = @fread($handle,@filesize($filename));
@fclose($handle);
return $filecode;
}
function weidun_decode($code)
{
$tmp = '';$tmp1 = '';$tmp2 = '';
$linearray = file($code);
$keyarray = array(base64_decode('L08wTzAwMDBPMFwoJy4qJ1wpLw=='),base64_decode('L1wpLCcuKicsLw=='),base64_decode('LyxcZCpcKSwv'),base64_decode('TzBPMDAwME8wKCc='),base64_decode('QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLw=='));
if(preg_match($keyarray[0],$linearray[1],$str)){$tmp = str_replace($keyarray[3],'',$str[0]);$tmp = str_replace('\')','',$tmp);$tmp = base64_decode($tmp);}
if(preg_match($keyarray[1],$tmp,$str1)){$tmp1 = str_replace('),\'','',$str1[0]);$tmp1 = str_replace('\',','',$tmp1);}
if(preg_match($keyarray[2],$tmp,$str2)){$tmp2 = str_replace('),','',$str2[0]);$tmp2 = str_replace(',','',$tmp2);}
return '<?php'."\r\n".base64_decode(strtr(substr($linearray[2],$tmp2),$tmp1,$keyarray[4]))."\r\n".'?>';
}
echo '解密前:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(Read($file)).'</textarea><br /><br />';
echo '解密后:<br /><textarea name="newcode" COLS="80" ROWS="15">'.htmlspecialchars(weidun_decode($file)).'</textarea><br />';
?>