Grep php文件,以显示是否与某些关键字匹配

时间:2014-10-17 01:29:50

标签: grep

好的,所以我试图在服务器上查看恶意代码,但我无法快速完成:)

这就是我所拥有的

<?php
$command = "grep --file=list.txt ./*";
$output = shell_exec($command);
echo "$output";
echo "Grep job over.";
?>

list.txt - 包含...(每行一个字符串)

eval(base64_decode(
gzinflate(base64_decode(
cwd = @getcwd();
chr((ord(
substr(md5(strrev(
chr(ord(
cwd[strlen(\$cwd)
ini_get('safe_mode');
=\"\x62\"
\"+ r + \"&r=\" + document.referrer;\"
if(strtoupper(substr(PHP_OS, 0, 3) ) == \"WIN\")
window.top.location.href=\"http://
@ini_get(\"disable_functions\")
){if(@copy(
eval(\$___(\$__));
copy(\"endless.html\"
system(\"wget
symlink(\"/\",\"sym/root\");
@copy(\$_FILES['file']['tmp_name']
error_reporting(0);if(
x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74
hacked"

如果有人能解释哪里出错了,那将非常感激

0 个答案:

没有答案