Création
d'entreprise
Posez votre question Signaler

Divocodec decrypter film

reyeam 26Messages postés 8 décembre 2007Date d'inscription - Dernière réponse le 28 déc. 2008 à 19:16
Bonjour,
J'avais récemment téléchargé un torrent, qui me disait nécessiter le divocodec pour le lire. Je vous passe la suite, vous la connaissez certainement. J'ai finalement réussi à me débarrasser du problème. Savez-vous néanmoins si les films sont regardables? J'ai trouvé le commentaire ci-dessous sur un autre poste mais est-ce possible? Si oui quelqu'un pourrait-il me l'expliquer par ce que je n'y parviens pas. Un tout grand merci
"'ai la solution =)
On peux décrypter la video grace à un petit script en perl :
#!/usr/bin/perl
# Turn of output buffer
$|++;
# The key for XOR decryption
my $key = 'UIERYQWORTWEHLKDNKDBISGLZNCBZCVNBADFIEYLJ' . chr(0);
print "Reading from \"$ARGV[0]\":\n";
$insize = -s $ARGV[0];
# Open the bogus AVI file
open(IN, $ARGV[0]) or die $!;
binmode IN;
# Read Header to check
read(IN, $buffer, 4);
if ($buffer ne 'RIFF') {
print " ERROR: \"$ARGV[0]\" is not an AVI\n";
close IN;
exit(1);
}
# Get Length of the unencrypted movie
read(IN, $buffer, 4);
$offset = unpack 'L', $buffer;
print " End of the unencrypted movie is at byte offset $offset\n";
# Jump to the read offset
seek(IN, $offset, 0);
# The next 4 or 8 Bytes seem to be either an unsinged long
# or an unsigned quad. This is another offset to jump
# over some filler bytes. Right now I can't really tell if
# it's 4 or 8 bytes, because I only have 1 file to test with.
# I assume it's a quad.
# low word
read(IN, $buffer, 4);
$offlo = unpack 'L', $buffer;
# high word
read(IN, $buffer, 4);
$offhi = unpack 'L', $buffer;
# Calculate offset
$offset = $offhi * 4294967296 + $offlo;
print " Offset after the unencrypted movie is $offset\n";
seek(IN, $offset, 0);
# Then there seem to be another 100 filler bytes
# with value 0xff. Jump over those too, to get
# to the offset where the real movie starts.
printf " Adding extra filler bytes, final offset is %s\n", $offset+100;
seek(IN, 100, 1);
# Update the size
$insize -= $offset+100;
# Open a file for writing the decrypted data to
print "Decrypting to \"$ARGV[1]\":\n";
open(OUT, ">$ARGV[1]");
binmode OUT;
truncate OUT, 0;
$bytes = 0;
$klen = length($key);
# Read key length bytes, decrypt them and
# write them to the output file untill you reach
# the end of the file
while ( read(IN, $buffer, $klen) ) {
$buffer ^= $key;
print OUT $buffer;
$bytes += $klen;
# print the status
printf "\r %d written (% .1f %%)", $bytes, ($bytes / $insize * 100);
}
# Close both files
close OUT;
close IN;
print "\n\nDONE!\n";
Pour executer le script, il vous faudra un compilateur comme : http://www.activestate.com/Products/activeperl/index.mhtml
Enregistrer le fichier sous decode.pl et ouvrez la commande en fesant :
perl decode.pl ENCRYPTED_FILE.avi DECRYPTED_FILE.avi
Si vous avez des questions je suis là ;)
A bientôt "
Lire la suite 

Divocodec decrypter film »

1 réponses
Réponse
+1
moins plus
slt merci de cette grande donner mai just comment utéliser se logiciel pour creéé lescripte et merci
Ajouter un commentaire
Ce document intitulé « Divocodec decrypter film » issu de CommentCaMarche (www.commentcamarche.net) est mis à disposition sous les termes de la licence Creative Commons. Vous pouvez copier, modifier des copies de cette page, dans les conditions fixées par la licence, tant que cette note apparaît clairement.
Dossier à la une
Passage au tout numérique : quel coût pour les particuliers ?