shell統計nginxログにおけるsqlおよびphp攻撃

1364 ワード

   :    ,       !
1:             ,。
2:         ,      。
3:              ,     ,       。

###shell統計nginxログのthinkphp攻撃##sql攻撃は類似しており、この原理に従って処理できる#統計当日
#!/bin/bash
today=$(date "+%Y-%m-%d")
cd nginx    
file=$(grep "/index.php" $today.log | awk \'{print $7}\' | uniq)
echo " " > "            "/public/gongji/$today.html

for gj in $file
do
echo "

"$gj"

" >> " "/public/gongji/$today.html done echo "" >> " "/public/gongji/$today.html chown -R www:www " "/public/gongji/$today.html # thinkphp , html

攻撃統計htmlファイルに基づいてリストページを作成
#!/bin/bash

cd "            "/public/gongji
echo " " > "            "/public/gongji/gongji.html 
file=$(ls)
for html in $file
do
echo "

$html

" >> " "/public/gongji/gongji.html done echo "" >> " "/public/gongji/gongji.html

#ブログ記事出典-毎日攻撃の詳細を添付