Scripting Packet Analysis
Working with networking applications can be quite hard to troubleshoot sometimes. Wireshark is an amazingly helpful tool to debug problems, however sometimes it just can’t do exactly what you want it to do. Libraries are available in common scripting libraries such as Python and Ruby to quickly create scripts that can analyse network traffic in a specific way.
As well as troubleshooting problems, these libraries can be used to create useful tools useful in testing, helping developers in one of their most important goal: to automate everything.
Anyway here is the presentation Scripting Packet Analysis and Modifcation.