ganlvtech / php-enphp-decoder Goto Github PK
View Code? Open in Web Editor NEWEnPHP Decoder written in PHP
Home Page: https://enphp.ganlv.tech/
License: GNU General Public License v3.0
EnPHP Decoder written in PHP
Home Page: https://enphp.ganlv.tech/
License: GNU General Public License v3.0
`
$ php bin/decode.php SearchController.class.php out.php
PHP Warning: gzinflate(): data error in C:\Users\qingmu-523\Desktop\dist\src\Au
toDecoder.php on line 82
Warning: gzinflate(): data error in C:\Users\qingmu-523\Desktop\dist\src\AutoDec
oder.php on line 82
PHP Warning: explode(): Empty delimiter in C:\Users\qingmu-523\Desktop\dist\src
\AutoDecoder.php on line 82
Warning: explode(): Empty delimiter in C:\Users\qingmu-523\Desktop\dist\src\Auto
Decoder.php on line 82
你好,能将这个包放到https://packagist.org/吗
想学习一下,要是有注释就更给力了
F:\php-enphp-decoder>php bin/decode.php tests/assets/admin.php output.php
Warning: gzinflate(): data error in F:\php-enphp-decoder\src\AutoDecoder.php on line 82
Fatal error: Uncaught TypeError: Argument 1 passed to PhpParser\Node\Scalar\String_::__construct() must be of the type string, null given, called in F:\php-enphp-decoder\src\NodeVisitors\GlobalStringNodeVisitor.php on line 32 and defined in F:\php-enphp-decoder\vendor\nikic\php-parser\lib\PhpParser\Node\Scalar\String_.php:36
Stack trace:
#0 F:\php-enphp-decoder\src\NodeVisitors\GlobalStringNodeVisitor.php(32): PhpParser\Node\Scalar\String_->__construct(NULL)
#1 F:\php-enphp-decoder\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(153): Ganlv\EnphpDecoder\NodeVisitors\GlobalStringNodeVisitor->leaveNode(Object(PhpParser\Node\Expr\ArrayDimFetch))
#2 F:\php-enphp-decoder\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(146): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Expr\FuncCall))
#3 F:\php-enphp-decoder\vendor\nikic\php-parser\lib\PhpParser\NodeTraverser.php(146): PhpParser\NodeTraverser->traverseNode(Object(PhpParser\Node\Expr\BinaryOp\Concat))
#4 F:\php-enphp-decoder\vendor\nikic\php-parser in F:\php-enphp-decoder\vendor\nikic\php-parser\lib\PhpParser\Node\Scalar\String_.php on line 36
<?php
namespace app\common\controller;error_reporting(E_ALL^E_NOTICE);define('س�', '�');����˔���������η��������ދ瞮�������եõ�읊��৵؇������ޢ��ʁ��Ņ������������ާɁ涙ϖ�Ɛ����������ɬ���Ѭ����;$_GET[س�] = explode('|%|9|.', 'error_reporting|%|9|.define|%|9|.��|%|9|.�|%|9|.��|%|9|.explode|%|9|.|8|!|(|%|9|._initialize|8|!|(isMobile|8|!|(url|8|!|(domain|8|!|(rtrim|8|!|(/|8|!|(m/Index/index|8|!|(.|8|!|(config|8|!|(default_return_type|8|!|(preg_replace|8|!|(/\\/index\\//|8|!|(/m/|8|!|(redirect');��������ꖴ⣜����ӣ��;$_GET{س�}[0](E_ALL^E_NOTICE);$_GET{س�}{0x001}($_GET{س�}[0x0002],$_GET{س�}{0x00003});��ϧٲ�����燙��ك�;$_SERVER[$_GET{س�}[0x000004]]=$_GET{س�}{0x05}($_GET{س�}[0x006],$_GET{س�}{0x0007});������ム���խ���������ŋ����ϵ���ׂ伅����;use app\common\controller\Base;class Pcend extends Base{protected function _initialize(){$ԕ��=&$_GET{س�};$���Ч=&$_SERVER{$ԕ��[0x000004]};������Ѱ�;parent::{$_SERVER{$ԕ��[0x000004]}[0]}();��ɜ�;if($this->request->{$_SERVER{$ԕ��[0x000004]}{0x001}}()){$��Δ=$this->request->{$_SERVER{$ԕ��[0x000004]}[0x0002]}(!0);$ܨ��=$this->request->{$_SERVER{$ԕ��[0x000004]}{0x00003}}();if($���Ч[0x000004]($��Δ,$���Ч{0x05})==$ܨ��){$��Δ=$���Ч[0x000004]($���Ч[0x006],$���Ч{0x0007}.$���Ч[0x00008]($���Ч{0x000009}));}else{$��Δ=$���Ч[0x0a]($���Ч{0x00b},$���Ч[0x000c],$��Δ,0x001);}$this->{$_SERVER{$ԕ��[0x000004]}{0x0000d}}($��Δ);}}}
最近拜读了大佬的zym乱码调试这篇文章
不才,我找了一个样本进行了一番尝试
最后发现好像是二次混淆了,我自己尝试的结果总是还有部分代码没还原回来
不知道大佬可否不吝赐教
过程中我尝试打开错误提示运行原始代码,会提示函数未定义 "die"
后用php_parser转换,得到的文件直接调试会报错
不知道是不是因为php_parser转换过程丢了东西
注释掉报错的语句后可以正常调试,最后没有还原到原始代码
其实我更想知道这些字节码是如何整理成算法的、、、
我用vscode调试的时候大部分函数都看不到名字
可能是我太菜吧
睡了2019年6月12日00:53:07
测试了一下类的解码,依旧含有部分乱码
这里有份样本可以测一下
Setting.zip
之后会出关于微擎2c goto解密的教程吗,看了大神的这个项目才学的php加解密,现在学习解密goto遇到一些问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.