Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2001 14:54:53 +0100
From:      Rahul Siddharthan <rsidd@physics.iisc.ernet.in>
To:        Brad Knowles <brad.knowles@skynet.be>
Cc:        Neil Blakey-Milner <nbm@mithrandr.moria.org>, Dan Langille <dan@langille.org>, freebsd-chat@FreeBSD.ORG
Subject:   signature (was Re: copyright issues regarding FreeBSD ISOs/CDs)
Message-ID:  <20010315145452.C33560@lpt.ens.fr>
In-Reply-To: <v04220803b6d529b86e09@[194.78.241.123]>; from brad.knowles@skynet.be on Wed, Mar 14, 2001 at 03:01:18PM %2B0100
References:  <200103141336.f2EDaZ215574@ns1.unixathome.org>; <20010314153955.A17985@rapier.smartspace.co.za> <200103141342.f2EDga215670@ns1.unixathome.org> <20010314154654.A18459@rapier.smartspace.co.za> <v04220803b6d529b86e09@[194.78.241.123]>

next in thread | previous in thread | raw e-mail | index | archive | help
Brad Knowles said on Mar 14, 2001 at 15:01:18:
> --
> Brad Knowles, <brad.knowles@skynet.be>
> 
> #!/usr/bin/perl -w
> # 531-byte qrpff-fast, Keith Winstein and Marc Horowitz <sipb-iap-dvd@mit.edu>
> # MPEG 2 PS VOB file on stdin -> descrambled output on stdout
> # arguments: title key bytes in least to most-significant order
> # Usage:
> # qrpff 153 2 8 105 225 /mnt/dvd/VOB_FILE_NAME | extract_mpeg2 | mpeg2_dec -
> $_='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,@z=(64,72,$a^=12*($_%16
> -2?0:$m&17)),$b^=$_%64?12:0,@z)[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h
> =5;$_=unxb24,join"",@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@a[128..$#a]}print+x"C*",@a}';s/x/pack+/g;eval


Speaking of signatures... have you seen this one?  Also from
Touretzky's site, and apparently very fast -- faster than the spec
allows for.


-- 
/*     efdtt.c     Author:  Charles M. Hannum <root@ihack.net>             */
/*                                                                         */
/*     Usage is:  cat title-key scrambled.vob | efdtt >clear.vob           */

#define K(i)(x[i]^s[i+84])<<
unsigned char x[5],y,z,s[2048];main(n){for(read(0,x,5);read(0,s,n=2048);write(1
,s,n))if(s[y=s[13]%8+20]/16%4==1){int i=K(1)17^256+K(0)8,k=K(2)0,j=K(4)17^K(3)9
^k*2-k%8^8,a=0,b=0,c=26;for(s[y]-=16;--c;i/=2,j/=2)a=a*2^i&1,b=b*2^j&1;for(j=
127;++j<n;c=z+c>y)a^=a>>14,a=a>>8^(y=a^a*8^a<<6)<<9,b=b>>8^(z=b^b/8^b>>4^b>>12)
<<17,i=s[j],i="7Wo~'G_\216"[i&7]+2^"cr3sfw6v;*k+>/n."[i>>4]*2^i*257/8,s[j]=i^(i
&i*2&34)*6^z+c+~y;}}

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010315145452.C33560>