WORM_BAGLE.AH侵入チェックの方法

■Terminal
①以下のコマンドで、抽出する。
 zcat -f log.2004.07.19.gz log.2004.07.20 |grep "smtp\["> smtp-log
②以下のコマンドで侵入を抽出
grep -i "\.COM " smtp-log |grep "contains no virus" >> WORM_BAGLE.AH
grep -i "\.CPL " smtp-log |grep "contains no virus" >> WORM_BAGLE.AH
grep -i "\.EXE " smtp-log |grep "contains no virus" >> WORM_BAGLE.AH
grep -i "\.SCR " smtp-log |grep "contains no virus" >> WORM_BAGLE.AH
grep -i "\.ZIP " smtp-log |grep "contains no virus" >> WORM_BAGLE.AH
Excel
①区切り文字スペースで、区切る。
②以下の関数で、検索分を作成する。
 ="grep -F """&C1&" "&D1& """ smtp-log >> WORM_BAGLE.AH_INFECTED"
 結果例)grep -F "smtp[4814]: smtp[172]:" smtp-log >> WORM_BAGLE.AH_INFECTED
■Terminal
①vi WORM_BAGLE.AH.shを作成する。
 内容は、上記Excelにて作成した文字列
②実行する。
③以下のコマンドでFROMとTOを抽出する
 cat WORM_BAGLE.AH_INFECTED | grep "mail delivered"