トップ «前の日記(2019-09-02(Mon)) 最新 次の日記(2019-09-10(Tue))» 編集

屑俺日記

僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。


2019-09-05(Thu) 昨日は晴れたり雷雨だったり

update.rb叩きうざい

外部からの編集は無効にしてあるのだけど。

$ grep -n Forbidden logwatch.txt 
79:    403 Forbidden
 
$ grep -c update.rb logwatch.txt 
624
 
$ grep -n update.rb logwatch.txt | sed -n '1,5p;620,$p'
80:       update.rb?edit=true;year=2004;month=12;day=1: 2 Time(s)
81:       update.rb?edit=true;year=2005;month=11;day=30: 2 Time(s)
82:       update.rb?edit=true;year=2005;month=12;day=1: 2 Time(s)
83:       update.rb?edit=true;year=2005;month=12;day=14: 2 Time(s)
84:       update.rb?edit=true;year=2005;month=12;day=15: 2 Time(s)
701:       update.rb?edit=true;year=2018;month=9;day=14: 1 Time(s)
702:       update.rb?edit=true;year=2018;month=9;day=15: 1 Time(s)
703:       update.rb?edit=true;year=2018;month=9;day=17: 1 Time(s)
704:       update.rb?edit=true;year=2018;month=9;day=18: 1 Time(s)
705:       update.rb?edit=true;year=2018;month=9;day=30: 1 Time(s)

ついでに。

$ sudo grep update.rb /var/log/apache2/taccess.log | \
>  grep 403 | awk '{print $1}' | sort | uniq -c
     93 194.247.173.123

あと何日

を表示するスクリプトを 書いた
今の所、まだ年を跨げていない。

$ sh last_days.sh 1108
当日まで、あと残すところ64日です。

リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。

index.htmlは ここから。