0712-2888027 189-8648-0214
微信公眾號

孝感風信網(wǎng)絡科技有限公司微信公眾號

當前位置:主頁 > 技術(shù)支持 > Linux > CentOS Linux系統(tǒng)下查找webshell后門的常用命令

CentOS Linux系統(tǒng)下查找webshell后門的常用命令

時間:2024-09-19來源:風信官網(wǎng) 點擊: 3147次
檢測webshell后門,一般我們通過判斷文件修改的內(nèi)容,時間、匹配相應的內(nèi)容等信息進行判斷,Windows系統(tǒng)有專門針對性的軟件,如:D盾,支持win2003/win2008/win2012/win2016等系統(tǒng),為IIS設(shè)計的一個主動防御的保護軟件,以內(nèi)外保護的方式防止網(wǎng)站和服務器給入侵,在正常運行各類網(wǎng)站的情況下,越少的功能,服務器越安全的理念而設(shè)計! 限制了常見的入侵方法,讓服務器更安全!

Linux系統(tǒng)我們利用find命令、grep命令進行查找

# find ./ -name “*.php” |xargs egrep “phpspy|c99sh|milw0rm|eval(gunerpress|eval(base64_decoolcode|spider_bc))” > /tmp/php.txt

將查找的結(jié)果寫入/tmp/php.txt文件,我們可以查看該文件得到結(jié)果

grep -r –include=*.php  ‘[^a-z]eval($_POST’ . > /tmp/eval.txt

將查找的結(jié)果寫入/tmp/eval.txt文件,我們可以查看該文件得到結(jié)果

grep -r –include=*.php  ‘file_put_contents(.*$_POST[.*]);’ . > /tmp/file_put_contents.txt

將查找的結(jié)果寫入/tmp/file_put_contents.txt文件,我們可以查看該文件得到結(jié)果

find ./ -name "*.php" -type f -print0 | xargs -0 egrep "(phpspy|c99sh|milw0rm|eval(gzuncompress(base64_decoolcode|eval(base64_decoolcode|spider_bc|gzinflate)" | awk -F: '{print $1}’ | sort | uniq

組合型查找

另外,我們可以查找最近一天被修改的php文件來判斷

find -mtime -1 -type f -name *.php

查找網(wǎng)站修改的權(quán)限來判斷

find -type f -name *.php -exec chmod 444 {} ;

find ./ -type d -exec chmod 555{} ;
熱門關(guān)鍵詞: CentOS Linux webshell 后門 常用命令
欄目列表
推薦內(nèi)容
熱點內(nèi)容
展開