Reminder: Phoenix.pm: Meeting 03/08/2001

Bryan Lane Bryan.Lane at VITALPS.COM
Thu Mar 8 12:05:02 CST 2001


I thought everyone on the list would enjoy this little perl snippet.  It is
the DCSS program that decrypts DVD's only it's in perl.  ZDNET had it posted
today.  Enjoy!

#!/usr/bin/perl -w
# 531-byte qrpff-fast, Keith Winstein and Marc Horowitz
<sipb-iap-dvd at mit.edu>
# MPEG 2 PS VOB file on stdin -> descrambled output on stdout
# arguments: title key bytes in least to most-significant order
$_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map{$_%16or$t^=$c
^=(
$m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t^=(72, at z=(64,72,$a^=12*($_%
16
-2?0:$m&17)),$b^=$_%64?12:0, at z)[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$
h
=5;$_=unxb24,join"", at b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$
d=unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=$t&($d>>12^$d>>4^
$d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*8^$q<<6))<<9,$_=$t[$_]^
(($h>>=8)+=$f+(~$g&$t))for at a[128..$#a]}print+x"C*", at a}';s/x/pack+/g;eval


Bryan

-----Original Message-----
From: doug.miles at bpxinternet.com [mailto:doug.miles at bpxinternet.com]
Sent: Thursday, March 08, 2001 10:25 AM
To: phoenix-pm-list at happyfunball.pm.org
Subject: Re: Reminder: Phoenix.pm: Meeting 03/08/2001


Tran Forsythe wrote:
> 
> Barring any explosions, I'll be attending; I always seem to pick up at
> _least_ one new trick at these things ;)
> 

Not to mention keeping me on my toes... :)

-- 
- Doug

Encrypted with ROT-26 - all attempts to decrypt are illegal under the
DMCA!



More information about the Phoenix-pm mailing list