Audio/video stream recording forums
|
| Attention Visitor: |
You may have to register or log in before you can post:
|
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
#141
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)Oui, c'est bon j'ai trouvé, merci pour ton aide.
|
|
#142
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)Apparently my post went unnoticed ^^
Hello ! I'm new here ! Someone can explain from A to Z ? How can I use THIS ? If I have understood correctly, it's to recover the subtitles video from ADN ? THANKS ! Fr : Apparemment mon post est passé inaperçu ^^ je voudrais juste savoir si c'est bel et bien une méthode pour avoir les .ass des vidéo de chez ADN ? Si oui pourrait-on m'expliquer la marche a suivre ? Merci ! ![]() |
|
#143
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)One last thing. How to decompil the mulutibu please ?
|
|
#144
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)Hello !
How to get the *correct* constants format, please ? In the swf file, the constants are an array of numbers, but how to convert them to the hex form ? I tried many converters, changed 0x to \x, but it doesn't work. ![]() Thanks for your help ! |
|
#145
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)Quote:
Code:
import os,sys,urllib,time,binascii
# -*- coding: utf-8 -*-
testfile = urllib.URLopener()
testfile.retrieve("url mulutibu_v4_3.swf", "mulutibu_v4_3.swf")
time.sleep(5)
cmd1='.\\video\\ffdec -export binaryData \\com\\longtailvideo\\plugins\\mulutibu6\\binaryData\\ mulutibu_v4_3.swf'
os.system(cmd1)
time.sleep(10)
data=open('.\\com\\longtailvideo\\plugins\\mulutibu6\\binaryData\\31.bin','r').read()
data1=binascii.a2b_hex(data.replace('0x', '').strip())
final=open('constanteskeys.txt','w')
final.write(data1)
edit = replace url of mulutibu by the correct url |
|
#146
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)Thanks a lot !
![]() |
|
#147
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)I re-wrote blurg's python script and changed a few K-S-V's php script (thanks to them), to get automatically the constants and the start variable.
Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, urllib, datetime, time, re
dirName = os.path.dirname(os.path.abspath(__file__))
mulutibuFile = "mulutibu_v4_3.swf"
command = "ffdec -export script \"%s\" %s" % (dirName, mulutibuFile)
os.system(command)
time.sleep(10)
with open(dirName + "\\com\\longtailvideo\\plugins\\mulutibu6\\Mulutibu.as", "r") as startFile:
start = re.findall("d1\([0-9]{2}\)", startFile.read())
command = "ffdec -export binaryData \"%s\" %s" % (dirName, mulutibuFile)
os.system(command)
time.sleep(10)
with open(dirName + "\\31.bin", "r") as fo:
binary = fo.read()
phpFile = '''<?php
if ( $argc < 2 )
die( "Usage: php adn.php <encrypted_subtitles>" );
// Read encrypted subtitles
$file = file_get_contents( $argv[1] );
$file = base64_decode( $file );
// Get decryption key from aes constants
$constants = "{CONSTANTS}";
$start = {START};
$key = substr( $constants, $start, 32 );
$salt = substr( $file, 8, 8 );
$key = $key . $salt;
$hash1 = md5( $key, true );
$hash2 = md5( $hash1 . $key, true );
$iv = md5( $hash2 . $key, true );
$key = $hash1 . $hash2;
// Decrypt subtitles
$td = mcrypt_module_open( "rijndael-128", "", "cbc", "" );
mcrypt_generic_init( $td, $key, $iv );
$decrypted = mdecrypt_generic( $td, $file );
$decrypted = substr( $decrypted, 32 );
mcrypt_generic_deinit( $td );
mcrypt_module_close( $td );
// Detect and remove PKCS#7 padding
$padded = true;
$len = strlen( $decrypted );
$pad = ord( $decrypted[$len - 1] );
for ( $i = 1; $i <= $pad; $i++ )
$padded &= ( $pad == ord( substr( $decrypted, -$i, 1 ) ) ) ? true : false;
if ( $padded )
$decrypted = substr( $decrypted, 0, $len - $pad );
// Save decrypted subtitles
$file = pathinfo( $argv[1], PATHINFO_FILENAME ) . ".ass";
file_put_contents( $file, $decrypted );
?>'''
phpFile = re.sub("\{CONSTANTS\}", binary.replace("0x", "\\x").strip(), phpFile)
phpFile = re.sub("\{START\}", re.findall(r"\d+", start[0])[1], phpFile)
with open("adn.php", "w") as out:
out.write(phpFile)
Code:
adn.py Code:
php adn.php "picture_file" P.S2 : When you finish, delete : 31.bin, mulutibu6.as and mulutibu_v4_3.swf files. Delete also com and mx folders. P.S3 : Be sure to have the path of the JPEXS Free Flash Decompiler folder in your environment path variable, e.g : C:\Programe Files\FFDec Hope it helps ! EDIT : You MUST download the mulutibu file with fiddler or from your browser to get the valid file and rename it to mulutibu_v4_3.swf, then put it in the same folder as adn.py and run the script ! Last edited by Paradox : 07-12-2015 at 06:09 PM. |
|
#148
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)@ Paradox : I tried your method but I get this message:
C:\adn.py Traceback (most recent call last): File "C:\adn.py", line 21, in <module> with open(dirName + "\\com\\longtailvideo\\plugins\\mulutibu6\\Mulutib u.as", "r") as startFile: IOError: [Errno 2] No such file or directory: 'C:\\com\\longtailvideo\\plugin s\\mulutibu6\\Mulutibu.as' |
|
#149
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)don't try anymore
they have change 1 more time the methode of decryptage plz don't indicate url or anything because they change every time |
|
#150
|
|||
|
|||
Re: how to decrypt and decode png files to real file (.ass)Quote:
Quote:
The script has been revised BTW. Last edited by Paradox : 07-13-2015 at 09:03 AM. |
|
| Tags: assfiles, rtmpdump |
| Thread Tools | |
| Display Modes | |
|
|