php 如何解码 eval( gzinflate( base64_decode(
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3701291/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to decode eval( gzinflate( base64_decode(
提问by Miro J.
I have this code injected in my site. How can I decode the trailing string? I need to know what happened and what is the code behind it.
我在我的网站中注入了这段代码。如何解码尾随字符串?我需要知道发生了什么以及它背后的代码是什么。
回答by Ishtar
This should output the code that would be executed by eval()
:
这应该输出将被执行的代码eval()
:
<?php
echo gzinflate( base64_decode( /* insert code */ ));
?>
I hope that's what you were looking for.
我希望这就是你要找的。
回答by Andrei
I use this to remove the nasty code injected in all my PHP files from public_html folder:
我用它从 public_html 文件夹中删除了注入到我所有 PHP 文件中的讨厌代码:
find -name "*.php" -exec sed -i '/<?.*eval(gzinflate(base64.*?>/ d' '{}' \; -print
Cheers!
干杯!
回答by Kim
Try to use this eval gzinflate base64 decoder