<tr id="frcqn"></tr>
<strong id="frcqn"><optgroup id="frcqn"></optgroup></strong>
<tr id="frcqn"></tr>
<tr id="frcqn"></tr>
<tr id="frcqn"></tr>
  • 0712-2888027 189-8648-0214
    微信公眾號

    孝感風信網絡科技有限公司微信公眾號

    當前位置:主頁 > 技術支持 > Linux > CentOS Linux系統下查找webshell后門的常用命令

    CentOS Linux系統下查找webshell后門的常用命令

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

    Linux系統我們利用find命令、grep命令進行查找

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

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

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

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

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

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

    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

    查找網站修改的權限來判斷

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

    find ./ -type d -exec chmod 555{} ;
    熱門關鍵詞: CentOS Linux webshell 后門 常用命令
    欄目列表
    推薦內容
    熱點內容
    展開
    强奸乱伦之影音先锋,播放器男女免费,精品一区二区自拍偷拍,xxxxx日韩
    <tr id="frcqn"></tr>
    <strong id="frcqn"><optgroup id="frcqn"></optgroup></strong>
    <tr id="frcqn"></tr>
    <tr id="frcqn"></tr>
    <tr id="frcqn"></tr>