Hi, I just wrote a set of scripts useful to retrive Hulu’s pid and auth parameters.
These tools can be used as helpers for applications like get_iplayer http://linuxcentre.net/getiplayer/
List of contents:
hulu-get-keys.c : Based on decswf.c by firstname.lastname@example.org
, this program must be compiled against
swfdec-0.9.2 and is useful to retrive pid encryption keys from enc.swf file
downloaded from Hulu.
hulu-get-keys.pl : This script first downloads player.swf from Hulu, decompiles it using flare (you
must download the command line version from http://www.nowrap.de/flare.html
retrieves the auth encryption key from the decompiled source and stores it in
hulu.auth.keys file; then it downloads enc.swf from Hulu, uses hulu-get-keys to
retrieve pid encryption keys and store them in hulu.pid.keys file.
hulu-get-pid.pl : This script, based on a script by Andrej Stepanchuk, accepts Hulu’s encrypted
pid as parameter and, using hulu.pid.keys files, returns decrypted pid on stdout.
hulu-get-auth.pl : This script accepts Hulu’s decrypted pid as parameter and, using hulu.auth.keys
files, returns auth parameter on stdout.
hulu-get-pid-auth.pl : This script accepts Hulu’s decrypted pid as parameter and, using both
hulu-get-pid.pl and hulu-get-auth.pl, returns both decrypted pid and auth
parameter on stdout. This script can be used as get_iplayer helper using its
You can download the package from http://www.megaupload.com/?d=G1ZKIOHQ
P.S.: the scripts are in perl, but it can be useful as a base for python scripts or called by python scripts.