当前位置:网站首页>Originality: dozens of lines of pure PHP code decrypt goto encrypted PHP single file [for learning only]
Originality: dozens of lines of pure PHP code decrypt goto encrypted PHP single file [for learning only]
2022-06-22 09:02:00 【YUJIANYUE】
Use purpose
Security testing : Test whether the code you encrypt with network tools can be decrypted quickly .
Learning reference : Decrypt the source code you are interested in for programming learning , Or learn about encryption and decryption .
Safety assessment : Decrypt their own use of third-party source code whether there is dangerous behavior , Like the back door 、 act of espionage .
Shall not be used for
Decrypt for sale : Please respect the work of others , Not publicly 、 Stealing and selling others' intellectual property rights and other infringements .
Black is produced : Must not be used for network attacks 、 Illegal access to network data and other uses in violation of laws and regulations .
Remarks can Decrypt most encrypted content ( Incomplete ), It is enough for you to study network security analysis and decryption ideas .
<?php
// Recommended use
//1. Security testing : Test whether the code you encrypt with network tools can be decrypted quickly .
//2. Learning reference : Decrypt the source code you are interested in for programming learning , Or learn about encryption and decryption .
//3. Safety assessment : Decrypt their own use of third-party source code whether there is dangerous behavior , Like the back door 、 act of espionage .
// Shall not be used for
//1. Decrypt for sale : Please respect the work of others , Not publicly 、 Stealing and selling others' intellectual property rights and other infringements .
//2. Black is produced : Must not be used for network attacks 、 Illegal access to network data and other uses in violation of laws and regulations .
// Version Description
//1. fit php The single file is complete and correct goto Encrypted source code , Only for reference of decryption ideas
$mails = "[email protected]";
// Go to the beginning of the line goto+ Multiple letters ;
function Trimgoto($str,$stra){
$str = Trim($str);
preg_match_all('/goto.+?;/', $str, $goto);
foreach($goto[0] as $tiqu6){
$str = Trim(str_replace("@#@".$tiqu6,"","@#@".$str));
}
return $str;
}
// effect : Descending by length Replace \ start + Escape characters of numbers and letters
function Trimziti($str,$stra){
$str = Trim($str);
preg_match_all('/(\\\[a-zA-Z0-9_]{1,6})+/', $str, $ziti);
foreach($ziti[0] as $tiqu6){
$lans = strlen($tiqu6);
$liti[$tiqu6] = $lans;
}
arsort($liti);
$tiecho="";
$numberOfFiles = sizeOf($liti);
for($t=0;$t<$numberOfFiles;$t++){
$thisFile = each($liti);
$tiqu6 = $thisFile[0];
$tiqua = $thisFile[1];
eval("\$tsts = \"{$tiqu6}\";");
$tiqux = addslashes($tiqu6);
$str = str_replace($tiqux,$tsts,$str);
$str = str_replace($tiqu6,$tsts,$str);
}
return $str;
}
// Go to the beginning of the line Multiple letters : ;
function Trimgete($str,$stra){
global $mails;
$str = Trim($str);
preg_match_all('/\w+:/', $str, $gete);
$jj=0;
foreach($gete[0] as $tiqu6){
if(stristr("@#@".$str,"@#@".$tiqu6)){
$jj++;
$str = Trim(str_replace("@#@".$tiqu6,"","@#@".$str));
}
}
if($jj>0){return $str;}else{return $mails;}
}
$efile = "install.txt"; // The file to decrypt pure goto complete PHP Source code
$code = file_get_contents($efile);
if (strlen($code)>10){
$code1 = $code;
$code1 =str_replace(array('<?php','?>'),"\r\n // < ?php or ? > \r\n",$code1);
$code1 =str_replace(array('goto '),"\r\ngoto ",$code1);
$codes = "";
$tat0=explode("\r\n",$code1);
foreach($tat0 as $tat1){
$tat1 = Trim($tat1);
if(strlen($tat1)>0 && stristr("@".$tat1,"@goto ")){
$codo1 = Trimgoto($tat1,$stra);
$codo2 = Trimgete($codo1,$stra);
if($codo2==$mails){
$codo3 = "\$chalida .= '" . addslashes($codo1) ."<brbr>';\r\n";
$codel = str_replace($codo1,$codo3,$tat1);
$codes .= $codel."\r\n";
}else{
$codo3 = "\$chalida .= '" . addslashes($codo2) ."<brbr>';\r\n";
$codel = str_replace($codo2,$codo3,$tat1);
$codes .= $codel."\r\n";
}
}else{
$codes .= "\$chalida .= '" . addslashes($tat1) ."<brbr>';\r\n";
}
}
file_put_contents($efile.".01.txt",$codes); // Step 1 writes *.01.txt file
eval($codes);
$chalide = $chalida;
$chalide = Trimziti($chalide,"");
$chalide = stripslashes($chalide);
$chalide = str_replace("<brbr>","\r\n",$chalide);
$chalide = str_replace("\r\n} ","\r\n}\r\n",$chalide);
file_put_contents($efile.".02.txt",$chalide); // Result write *.02.txt file
}
// After testing and comparison , Can solve most , missing } And a small part of the code Only for reference of decryption ideas
边栏推荐
- Flask blog practice - realize the article list page and details page
- Epidemic situation of novel coronavirus
- 【自适应控制】最小二乘法离线辨识
- Didi's two-sided summary
- 12 享元模式
- 深入解析final关键字的用法
- [path planning] auxiliary points and multi segment Bessel smoothing RRT
- 07 适配器模式
- 电机学感应电动机重点知识总结(现有题目中反映的)
- Yolov5 export GPU inference model export
猜你喜欢

When easypoi imports the secondary header data of an excel file, the data in the first column of the @excelentity entity class is null

Report: in the technical field, men are more likely to get job interviews

我的第一个Go程序

Pytorch oserror: DLL load failed: problem solving

Solid from entry to practice (end)

Synchronized

【详解】神经网络矩阵的点乘与叉乘(pytorch版)

Message Oriented Middleware (message queue)
![[target detection] | detection error mechanism why object detectors fail: investigating the influence of the dataset](/img/d2/101c8ef5dac517718bbe44ee4fd607.png)
[target detection] | detection error mechanism why object detectors fail: investigating the influence of the dataset

09 组合模式
随机推荐
Thoroughly understand my SQL index knowledge points
[conda]conda switch to source of China University of science and technology
Message Oriented Middleware (message queue)
[path planning] auxiliary points and multi segment Bessel smoothing RRT
08 桥接模式
Flask blog practice - user management
Matrix decomposition
Xshell远程服务器tensorboard/visdom的本地可视化方法【亲测一步有效】
Thread. Source code analysis of start() method
[conda]conda切换为中科大源
Continuous training on tensorflow breakpoint (principle + code explanation)
PIP3 install XXX reports an error: command'lsb_ release -a' returned non-zero exit status 1.
09 组合模式
luogu P4557 [JSOI2018]战争
版本问题导致“无法定位程序输入点OPENSSL_sk_new_reserve于动态链接库C:\Users...\libssl-1_1-x64.dll”
面试突击59:一个表中可以有多个自增列吗?
13 proxy mode
Yolov5 export GPU inference model export
[detailed explanation] point multiplication and cross multiplication of neural network matrix (pytorch version)
How to troubleshoot OOM