Recent
Webserverwatcher.py
During our last information gathering and vulnerability assessment project our team realised that the IP address and web server software had changed from when we initially started out. Some time during the project the IT department had changed servers, which meant that some of our data from before the change was now obsolete.
Some one on our team came up with an idea for a program that would monitor the server for any changes and notify us when it had happened. We would then know as soon as possible and could document this in our final report.
The following Python code checks the web server every hour for changes in IP address, HTTP server header and x-powered-by header. If it notices any change it logs it to a log file aptly named log.txt.
Here is the code:
Any feedback welcomed!


One Response to “Webserverwatcher.py”
Dan said...
Nice little script, seems original too =]