导航:首页 > 编程语言 > 解密php

解密php

发布时间:2022-01-19 04:33:53

源码如何解密php

加密方法太多了,你首先要搞清楚是用什么加密的,base64还是什么,要是md5的根本没法解密

⑵ 解密php文件

解密之后如下:

<?php
include_once( "IAC.CIACLoginSession.class" );
include_once( "UIC.CUICConfig.class" );
include_once( "PDC.CPSession.class" );
include_once( "PDC.CMember.class" );
include_once( "PDC.CMemberLogin.class" );
include_once( "PDC.CSysConfig.class" );
include_once( "PDC.CWebSiteContent.class" );
include_once( "LOG.CAuditLog.class" );
include_once( "LOG.CBaseLog.class" );
include_once( "PUC.Functions.inc" );
if ( defined( "__license_type" ) && constant( "__license_type" ) != "33VP" )
{
echo "Invalid license type!";
exit( );
}
define( "CST_PUC_IDENT", "Member" );
$pSysLog = new cbaselog( );
$pSysLog->openfacility( "DMC" );
$pSysLog->openfacility( "PDC" );
$pSysLog->openfacility( "UIC" );
$pSysLog->openfacility( "RPC" );
$pSysLog->openfacility( CST_PUC_IDENT );
$pSysConfig = new csysconfig( );
$aSysConfig = $pSysConfig->load( );
if ( isset( $aSysConfig['log_level'] ) )
{
$pSysLog->nLogLevel = intval( $GLOBALS['aSysConfig']['log_level'] );
}
if ( isset( $aSysConfig['dmc_log_level'] ) )
{
$pSysLog->openfacility( "DMC", $GLOBALS['aSysConfig']['dmc_log_level'] );
}
if ( isset( $aSysConfig['pdc_log_level'] ) )
{
$pSysLog->openfacility( "PDC", $GLOBALS['aSysConfig']['pdc_log_level'] );
}
if ( isset( $aSysConfig['uic_log_level'] ) )
{
$pSysLog->openfacility( "UIC", $GLOBALS['aSysConfig']['uic_log_level'] );
}
if ( isset( $aSysConfig['rpc_log_level'] ) )
{
$pSysLog->openfacility( "RPC", $GLOBALS['aSysConfig']['rpc_log_level'] );
}
if ( isset( $aSysConfig[CST_PUC_IDENT."_log_level"] ) )
{
$pSysLog->openfacility( CST_PUC_IDENT, $GLOBALS['aSysConfig'][CST_PUC_IDENT."_log_level"] );
}
$pAuditLog = new cauditlog( );
$pCUICConfig = new cuicconfig( );
$strCommonMessagePath = $pCUICConfig->getmessagefilepath( "Common" );
include_once( $strCommonMessagePath );
$strFrontendMessagePath = $pCUICConfig->getmessagefilepath( CST_PUC_IDENT );
include_once( $strFrontendMessagePath );
$pWebSiteContent = new cwebsitecontent( );
$aWebSiteContent = $pWebSiteContent->load( );
$bLogined = false;
$nLoginID = 0;
$strLoginSessionKey = fn_getcookie( IAC_LOGINSESSION_COOKIE_NAME );
$bNoCookie = false;
if ( !$strLoginSessionKey && isset( $HTTP_GET_VARS[IAC_LOGINSESSION_COOKIE_NAME] ) )
{
$strLoginSessionKey = $HTTP_GET_VARS[IAC_LOGINSESSION_COOKIE_NAME];
$bNoCookie = true;
}
if ( !$strLoginSessionKey && isset( $HTTP_POST_VARS[IAC_LOGINSESSION_COOKIE_NAME] ) )
{
$strLoginSessionKey = $HTTP_POST_VARS[IAC_LOGINSESSION_COOKIE_NAME];
$bNoCookie = true;
}
if ( $strLoginSessionKey != NULL )
{
$pLoginSession = new cloginsession( );
if ( time( ) % 5 == 0 )
{
$pLoginSession->maintenance( );
}
if ( ( $nResult = $pLoginSession->checksession( $strLoginSessionKey, $HTTP_SERVER_VARS['REMOTE_ADDR'], $nLoginID ) ) == 0 )
{
$bLogined = true;
$pMemberLogin = new cmemberlogin( );
$aMemberLogin = $pMemberLogin->getbyid( $nLoginID );
$strLoginName = $aMemberLogin['login'];
$nMemberID = $aMemberLogin['organization_id'];
if ( !is_array( $aMember ) || sizeof( $aMember ) == 0 )
{
$pMember = new cmember( );
$aMember = $pMember->getbyid( $nMemberID );
$nLevelID = $aMember['level_id'];
}
if ( isset( $logout ) && 0 < strlen( trim( $logout ) ) )
{
$pLoginSession->endsession( $strLoginSessionKey, $nLoginID );
setcookie( IAC_LOGINSESSION_COOKIE_NAME );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, "", time( ) - 3600 );
if ( isset( $goto_page ) && 0 < strlen( trim( $goto_page ) ) )
{
fn_doredirect( $goto_page );
}
else
{
fn_doredirect( "index.php" );
}
}
if ( $bNoCookie )
{
setcookie( IAC_LOGINSESSION_COOKIE_NAME );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, "", time( ) - 3600 );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, $strLoginSessionKey );
}
}
else
{
$pSysLog->log_info( CST_PUC_IDENT, "login session({$strLoginSessionKey}) check failed: {$nResult}" );
setcookie( IAC_LOGINSESSION_COOKIE_NAME );
setcookie( IAC_LOGINSESSION_COOKIE_NAME, "", time( ) - 3600 );
fn_doredirect( "login.php?goto_page=".urlencode( $PHP_SELF ) );
}
}
else
{
fn_doredirect( "login.php?goto_page=".urlencode( $PHP_SELF ) );
}
if ( is_array( $aMember ) && 0 < sizeof( $aMember ) )
{
if ( $aMember['member_type'] == 1 )
{
$strVisitorName = $aMember['contactname'];
}
else
{
$strVisitorName = $aMember['name'];
}
$strVisitorName .= ", ";
}
include_once( "PUC.Mole.Config.inc" );
$strFrontendMessagePath = $pCUICConfig->getmessagefilepath( "PUCMole" );
include_once( $strFrontendMessagePath );
if ( is_dir( PUC_MODULE_CONFIG_RELATIVE_PATH ) )
{
$__pMoleConfigDir = dir( PUC_MODULE_CONFIG_RELATIVE_PATH );
while ( ( $__strEntry = $__pMoleConfigDir->read( ) ) !== false )
{
if ( ereg( "^Mole\\.([a-zA-Z0-9]+)\\.Config\\.inc\$", $__strEntry, $__regs ) )
{
$__strMoleIdentifier = $__regs[1];
include_once( PUC_MODULE_CONFIG_DIR_NAME."/".$__strEntry );
if ( !is_null( $__strMoleIdentifier ) )
{
$strFrontendMessagePath = $pCUICConfig->getmessagefilepath( $__strMoleIdentifier );
if ( @file_exists( $strFrontendMessagePath ) )
{
include_once( $strFrontendMessagePath );
}
}
}
}
}
$aInterfaceConfig = $aCSTPUCInterfaces[CST_PUC_IDENT];
if ( !isset( $mole ) )
{
$mole = trim( $_REQUEST['mole'] );
}
if ( in_array( $mole, array_keys( $aCSTPUCMoles[CST_PUC_IDENT] ) ) )
{
$aMoleConfig = $aCSTPUCMoles[CST_PUC_IDENT][$mole];
}
else
{
$aMoleName = array_keys( $aCSTPUCMoles[CST_PUC_IDENT] );
$mole = $aMoleName[0];
$aMoleConfig = $aCSTPUCMoles[CST_PUC_IDENT][$mole];
}
$aMyENV = array(
"strPSessionKey" => $strPSessionKey,
"aPSession" => $aPSession,
"bLogined" => $bLogined,
"strLoginSessionKey" => $strLoginSessionKey,
"nLoginID" => $nLoginID,
"strLoginName" => $strLoginName,
"nMemberID" => $nMemberID,
"nLevelID" => $nLevelID,
"aMember" => $aMember,
"strVisitorName" => $strVisitorName,
"nScopeID" => intval( $aMember['_login_scope_id'] ),
"nRoleID" => intval( $aMember['_login_role_id'] ),
"strWebSiteName" => $aWebSiteContent['website_cname'],
"strCurrentTheme" => $aWebSiteContent['current_theme'],
"aWebSiteContent" => $aWebSiteContent,
"mole" => $mole
);
if ( $aMoleConfig[2] == 1 )
{
include( $aMoleConfig[0] );
exit( );
}
$strPageTitle = $aPUCMoleDisplayMap[CST_PUC_IDENT][$mole];
$strLocation = ">".$strPageTitle;
if ( strlen( $aMoleConfig[1] ) )
{
$strLocation = sprintf( "><a href=\"%s?mole=%s\">%s</a>", $aInterfaceConfig[1], $aMoleConfig[1], $aPUCMoleDisplayMap[CST_PUC_IDENT][$aMoleConfig[1]] ).$strLocation;
}
$strMole = $aMoleConfig[0];
switch ( $mole )
{
case "myemail" :
$strService = "Emailbox";
}
?>

⑶ 如何把一个PHP文件解密

所谓的PHP文件加密,一般有两种方式,一是ZEND编译,二是BASE64等编码,理论上都不是加密,下面分别说说如何还原。

对于ZEND编译过的代码,用记事本打开是完全是乱码,除了前面的很小的头部,后面不是可见ASCII字符,有点像打开一个EXE文件的效果,是无法阅读的。这类处理的文件一般认为是无法还原的,网上有DEZEND工具,你可以下载来试试看,能还原早期ZEND版本编译后的代码。

对于使用BASE64等编码后的PHP文件,可以用记事本打开查看,所有字符都是可见ASCII字符,一般使用两种方法加大阅读难度:一是使用$ll111、$ooo000这样的变量,字母L的小写与1混在一起、字母O的小写与数字0混在一起,不容易分辨变量名称。二是使用BASE64编码对原始代码进行转换,最后使用eval进行处理。往往两种方式结合在一起。

第二种方式处理后的代码是很容易还原的,方法就是把eval换为exit,在CLI(命令提示符)下执行就会显示出eval那个语句对应的等效代码,替换原始语句即可。有时候还原一次后还是eval语句,那需要按照同样的方法反复处理。

⑷ PHP代码解密

<?php
$link=true;
if (file_exists('linkman_license.php'))
{
include_once('linkman_license.php');
if (@is_array($settings['linkman_license']))
{
$link=false;
}
}

if ($link)
{
echo '
<!--
Changing the "Powered by" credit sentence without purchasing a licence is illegal!
Please visit for more information.
-->
<p class="linkman">Powered by <a href="" target="_blank" class="linkman">PHP Link manager</a> '.$settings['verzija'].' from <a href="" target="_blank" class="linkman">PHP Junkyard - Free PHP scripts</a></p>';
}

include_once('footer.txt');
?>

你的补充问题里不是解了么?

⑸ 解密PHP混淆代码,求解码(过程)完整方法。。

不知道你给的代码全不全,解密后只有这一段
<?php

$v000000=;
if(preg_match(O0O0000O0('.'),$v000002[1],$v000003))
{
$v000000=str_replace(O0O0000O0(',,$y[0]);
$content=str_replace('),,$v000000);
$v000000=base64_decode($v000000);
}

?>

⑹ 加密的php文件怎么解密

只是用了一些特殊符号作为array的key和function的参数罢了,没啥好研究的,可以直接把这些特殊符号替换成英文就好了

⑺ PHP文件如何解密

所谓的PHP文件加密,一般有两种方式,一是ZEND编译,二是BASE64等编码,理论上都不是加密,下面分别说说如何还原。

对于ZEND编译过的代码,用记事本打开是完全是乱码,除了前面的很小的头部,后面不是可见ASCII字符,有点像打开一个EXE文件的效果,是无法阅读的。这类处理的文件一般认为是无法还原的,网上有DEZEND工具,你可以下载来试试看,能还原早期ZEND版本编译后的代码。

对于使用BASE64等编码后的PHP文件,可以用记事本打开查看,所有字符都是可见ASCII字符,一般使用两种方法加大阅读难度:一是使用$ll111、$ooo000这样的变量,字母L的小写与1混在一起、字母O的小写与数字0混在一起,不容易分辨变量名称。二是使用BASE64编码对原始代码进行转换,最后使用eval进行处理。往往两种方式结合在一起。

第二种方式处理后的代码是很容易还原的,方法就是把eval换为exit,在CLI(命令提示符)下执行就会显示出eval那个语句对应的等效代码,替换原始语句即可。有时候还原一次后还是eval语句,那需要按照同样的方法反复处理。

⑻ 如何解密这个php 代码

你发的代码不全吧?

应该还有一些!

<?php

$Str='这里写你这文件除了php代码之外的,也就是最后那一部分的代码,然后运行一下,查看源文件,即可';

$Html=(base64_decode(strtr($Str,'/LUoTZI5+VayHBsx7fXN=','+/')));

echo$Html;

下面的不是html加密, 下面的就是密文, 你不发上来, 解密不了!

⑼ php怎么解密

LZ说的是zend encrypt吧那个解不了的曾经dezender能解,我还解过,后来zend貌似发布过新版本了又解不了了

阅读全文

与解密php相关的资料

热点内容
单片机下载口叫什么 浏览:186
程序员的道 浏览:924
云服务器不实名违法吗 浏览:556
怎样查看文件夹图片是否重复 浏览:993
文件怎么导成pdf文件 浏览:805
打开sql表的命令 浏览:101
安卓手机如何面部支付 浏览:37
天元数学app为什么登录不上去 浏览:822
明日之后为什么有些服务器是四个字 浏览:102
安卓系统l1是什么意思 浏览:24
服务器一直崩应该用什么指令 浏览:922
cm202贴片机编程 浏览:729
php构造函数带参数 浏览:178
解压电波歌曲大全 浏览:345
为啥文件夹移到桌面成word了 浏览:859
命令符的安全模式是哪个键 浏览:760
编程中学 浏览:957
单片机求助 浏览:995
ug加工侧面排铣毛坯怎么编程 浏览:273
程序员有关的介绍 浏览:738