Categories
email postfix python

python content_filter for Postfix (rewriting the subject)

A python script which can be used as a Postfix content_filter to headers email going through it … (example shows changing the Subject).

Categories
postgresql python

PostgreSQL Backup script (python)

Perhaps the following will be of use to others. In a nutshell, it’s a python script which backs up a provided list of PostgreSQL databases. I’ve written it for Windows, but it should work on Linux too (just change the paths in the BACKUP_DIR and dumper variables. No doubt it could be changed to query […]

Categories
python

Automated snapshot backup of an Amazon EBS volume

I found the following Python script online, but it didn’t really work too well : http://aws-musings.com/manage-ebs-snapshots-with-a-python-script/ EBS – Elastic Block Storage … I had to easy_install boto, to get it to work. I’m not sure the Debian python-boto package in Lenny is up to date. Anyway, $server now has : from boto.ec2.connection import EC2Connection from […]

Categories
development php python

Logging … and how not to do it.

Grumpy man, back from battling with some legacy code, has a rant.

Categories
python

wapiti – web application vulnerability scanner (super quick review/intro)

Today, I finally looked at Wapiti, which is a web application vulnerability scanner. It operates on a black box basis (i.e. it doesn’t see the underlying PHP/ASP/Java source code), and effectively tries to ‘break’ any forms on a page. In order to get it to do anything useful, you’ll probably need to provide it with […]