I’m home sick with a cold today and got bored. I wanted to play with packet capture in python, and the documentation for pcapy is a little sparse. I therefore wrote this simple little sample script: #!/usr/bin/python # A simple example of how to use pcapy. This needs to be run as root. import datetime…
Tag: example
Dear lazy web: writing to the win32 event log in Python
Dear Lazy Web, I have a need to be able to write to the MS Windows event log in Python. I must admit I don’t know a lot about Python on Windows. Does anyone have a good short sample they would like to share? Hugs and kisses, Mikal