$ git clone https://github.com/extremecoders-re/php-eval-hook Run phpize. This will generate the Makefile and other files needed for buidling the extension. $ cd php-eval-hook $ phpize Build the extension. make install copies the .so to the appropriate location. $ ./configure --ena...
git https://github.com/extremecoders-re/php-eval-hook ``` 3. Run `phpize`. This will generate the `Makefile` and other files needed for buidling the extension. ``` $ cd php-eval-hook $ phpize ``` 4. Build the extension. `make install` copies the `.so` to the appropriate loca...
php编译好的evalhook文件~ php编译好的evalhook文件~评分: CTF/php后门分析中经常遇到加密压缩过的PHP文件, <? $O00OO0=urldecode("n1zb/ma5\vt0i28-pxuqy*6lrkdg9_ehcswo4+f37j");$O00O0O=$O00OO0{3}.$O00OO0{6}.$O00OO0{33}.$O00OO0{30};$O0OO00=$O00OO0{33}.$O00OO0{10}...
PHP中的eval函数在Zend里需要调用zend_compile_string函数,我们写一个拓展直接hook这个函数就行了。不过我不会写c代码,所以参考网上的文章,在GitHub中找到了现成的一个拓展库。 https://github.com/bizonix/evalhook需要编译,不过我在文末提供了编译好的so文件。 修改evalhook.c 中这部分代码,否则只能在命令行中...
A PHP extension for hooking eval(). Contribute to extremecoders-re/php-eval-hook development by creating an account on GitHub.
$ sudo apt install php7.2 php7.2-dev ``` 2. Clone the repository ``` git https://github.com/extremecoders-re/php-eval-hook ``` 3. Run `phpize`. This will generate the `Makefile` and other files needed for buidling the extension. ``` $ cd php-eval-hook $ phpize ``` 4. Bu...