Had this project planned for some time now, today I've written it and here it is.
It's a stream grabbing script which attempts to extract direct download links from websites that request a movie file.
I was very pumped to try out another new lib, it's called "scapy", read more about it
here if you didn't heard about it yet and/or are interested.
In short how the script works - it spawns a thread which sniffs your network packets, the main thread pops the gathered packets from the list(which gets refilled in the sniffer thread) and filters them for URLs ending with a movie file extension.
When the filtering of an URL occurs it gets printed to stdout.
The list of dependencies:
To be able to run this script you must be root!
[gist]Daxda/8585445[/gist]