geekchick: (Default)
[personal profile] geekchick
Code Red scan count for the last seven days:
iniquity[cathy]28: grep -c default.ida /opt/apache/logs/site-access
202


Patch your damn machines, would you?

fun with php

Date: 2001-08-07 05:05 pm (UTC)
From: (Anonymous)

printf("<P>As of this moment, we've been poked by the Code Red worm %s times! Good thing we don't run Microsoft's IIS web server.</P>",
`grep -c default.ida /path/to/web/logs/access_log`);


displays a live count of hits at the downward spiral (http://downwardspiral.net) and gothic boston (http://gothicboston.org). thank Bunicula for the code. :-)

Note that the back-tick is essential. I didn't know what the backtick operator was until Brian explained it to me.

Profile

geekchick: (Default)
geekchick

April 2017

S M T W T F S
      1
2345 6 78
9101112131415
16 171819202122
23242526272829
30      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 24th, 2026 07:34 pm
Powered by Dreamwidth Studios