Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

how to decrypt and decode png files to real file (.ass)

(http://stream-recorder.com/forum/showthread.php?t=16727)

kojiro 06-08-2015 04:59 AM

Re: how to decrypt and decode png files to real file (.ass)


 
I do not understand absolutely nothing.
Only half response everywhere it has become incomprehensible.
Can somebody explain everything from A to Z (how retrieve PNG, what and how to decrypt use etc ...)
Explain everything step by step in one post, please.
Thank you in advance.

(If anyone could do it in French post also it would be nice, it's been dead for a while)

-lolo666- 06-19-2015 05:00 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Thank you guys!

For those who are still searching, read posts from page 10 to now carefully. Answers are given, you just need to open your eyes. :)


// FRENCH //
Merci les gars !

Pour ceux qui cherchent encore, lisez attentivement les messages de la page 10 jusqu'a maintenant. Les réponses sont dedans, il n'y a qu'a ouvrir les yeux. :)

blurg 06-25-2015 05:33 AM

Re: how to decrypt and decode png files to real file (.ass)


 
new modification of mulutibu

need you ksv ^^

Legremlins_Keitaro 06-29-2015 12:10 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Yep new mulutibu, .bin file has been enamed 5.bin to 31.bin, it seems to have the same content, but the AES.as have changed

blurg 06-29-2015 12:59 AM

Re: how to decrypt and decode png files to real file (.ass)


 
i have sent a mp to KSV
waiting now ^^

KSV 07-01-2015 04:14 AM

Re: how to decrypt and decode png files to real file (.ass)


 
i don't have the sufficient time to look into it right now but probably later this weekend.

blurg 07-01-2015 08:48 AM

Re: how to decrypt and decode png files to real file (.ass)


 
thx a lot for helping us

gaaara 07-06-2015 08:54 PM

Re: how to decrypt and decode png files to real file (.ass)


 
no news ?

blurg 07-06-2015 10:23 PM

Re: how to decrypt and decode png files to real file (.ass)


 
nop
or ksv is very busy or the news script are strong (but i don't think so:D )

KSV 07-09-2015 12:39 AM

Re: how to decrypt and decode png files to real file (.ass)


 
i have looked into this today. they have changed few things but nothing too drastic. i have pushed the update to the repo.

blurg 07-09-2015 07:28 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Great thx KSV
your're our god

IzayoiSk 07-09-2015 08:17 AM

Re: how to decrypt and decode png files to real file (.ass)


 
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 !

ps : si y'a des frenchies dans le coin ^^

baka.shinji 07-09-2015 10:29 AM

Re: how to decrypt and decode png files to real file (.ass)


 
No need of mulutibu anymore ?

blurg 07-09-2015 10:50 AM

Re: how to decrypt and decode png files to real file (.ass)


 
always need constant and start variable in mulutibu sxf

baka.shinji 07-09-2015 10:57 AM

Re: how to decrypt and decode png files to real file (.ass)


 
It became too difficult for me.

Liluy 07-09-2015 11:25 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Thanks you, KSV.
Where is the start in the mulutibu now ?

blurg 07-09-2015 11:33 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Quote:

Originally Posted by Liluy (Post 78078)
Thanks you, KSV.
Where is the start in the mulutibu now ?

it is in mulutibu.as

Liluy 07-09-2015 11:38 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Quote:

Originally Posted by blurg (Post 78079)
it is in mulutibu.as

http://puu.sh/iT1QX/e5c4e7c4c0.png
Unfortunately, I can not find mulutibu.as
French : Je ne trouve pas le as dans le mulutibu.

kuroYaka 07-09-2015 11:43 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Hi

$start is 60 :)

blurg 07-09-2015 12:07 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Quote:

Originally Posted by Liluy (Post 78080)
http://puu.sh/iT1QX/e5c4e7c4c0.png
Unfortunately, I can not find mulutibu.as
French : Je ne trouve pas le as dans le mulutibu.

je le vois moi (1ier dans la liste)

Liluy 07-09-2015 12:09 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Quote:

Originally Posted by blurg (Post 78082)
je le vois moi (1ier dans la liste)

Oui, c'est bon j'ai trouvé, merci pour ton aide.

IzayoiSk 07-09-2015 01:10 PM

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 ! :)

baka.shinji 07-10-2015 05:49 AM

Re: how to decrypt and decode png files to real file (.ass)


 
One last thing. How to decompil the mulutibu please ?

Paradox 07-10-2015 09:07 AM

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 !

blurg 07-10-2015 09:19 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Quote:

Originally Posted by Paradox (Post 78107)
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 !

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)

try this with python script and JPEXS Free Flash Decompiler

edit = replace url of mulutibu by the correct url

Paradox 07-10-2015 10:24 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Thanks a lot ! ;)

Paradox 07-11-2015 06:12 PM

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)

Assuming you will save the script as adn.py, put :
Code:


adn.py

in your console and it will generate an adn.php file, then put:
Code:


php adn.php "picture_file"

P.S : You will need to get the picture file using fiddler.
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 !

baka.shinji 07-12-2015 08:29 AM

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'

blurg 07-12-2015 09:30 AM

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

Paradox 07-12-2015 04:43 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Quote:

Originally Posted by baka.shinji (Post 78163)
@ 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'

If you have this error, delete all generated files and run adn.py again.

Quote:

Originally Posted by blurg (Post 78166)
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

Hum... Now, if the mulutibu file is downloaded with a script(python, php, whatever) we get a non-valid file. I edited my previous post.

The script has been revised BTW.

Legremlins_Keitaro 07-13-2015 01:46 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Hmm where is the new $start in the multibu.as ? someone can give me the sample of the line please ?

Edit: is the line is this one => var _loc2_:String = AES.dec(param1,d1(20),false);
in this case 20 ?

NoWay 09-18-2015 01:25 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Can someone make a script to get the multibu file and the .png please ?

NoWay 09-28-2015 01:23 PM

Re: how to decrypt and decode png files to real file (.ass)


 
They have changed their method another time , can we have an update please ?

KSV 12-04-2015 03:00 AM

Re: how to decrypt and decode png files to real file (.ass)


 
People keep PM'ing me to ask if this script currently works or not because most of them don't bother to read few pages to know what needs to be done exactly. The short answer is Yes this script still works as expected and doesn't require any other update except the two values ($constants and $start) which they keep changing on rotational basis (probably daily).

1. First you need to grab the mulutibu swf file and encrypted png file correctly. I recommend using Fiddler to save both the swf file and encrypted png file. When you try to grab the file otherwise server may send you wrong file and decryption won't work even if you follow other steps correctly.

2. Now grab a good swf decompiler (JPEXS Free Flash Decompiler) and extract new constants which are embedded as binary data in swf file. in the saved file replace all 0x with \x.



Code:

\x61\x65\x63\x64\x61\x35\x33\x30\x65\x38\x36\x65\x61\x63\x33\x65\x64\x64\x36\x63\x38\x66\x66\x65\x61\x38\x36\x31\x64\x35\x32\x64\x39\x34\x31\x30\x65\x39\x39\x34\x37\x35\x38\x37\x38\x31\x62\x61\x34\x38\x63\x32\x64\x33\x36\x65\x31\x31\x36\x34\x61\x66\x35\x36\x65\x65\x37\x65\x32\x65\x36\x39\x31\x63\x38\x64\x36\x64\x62\x30\x34\x37\x62\x64\x65\x38\x63\x64\x33\x35\x63\x31\x34\x63\x37\x30\x36\x63\x30\x61\x62\x39
3. To get the start value you need to find the call to AES function as shown in following image. it's 61 in this case.



4. after updating those two values in the script you can now use it to decrypt the png file to ass file.

Code:

php AnimeDigital.php encrypted.png
it will save the decrypted file with .ass extension.

Tewx 12-13-2015 11:36 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Hello

WHen i start the php, i have this error

What's the problem ?

Tewx 12-15-2015 01:30 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Hey

Any News ?

Cordialy

Legremlins_Keitaro 01-09-2016 06:42 AM

Re: how to decrypt and decode png files to real file (.ass)


 
In this new year, new protection :) Doesn't work anymore ;)

KSV 01-09-2016 10:01 AM

Re: how to decrypt and decode png files to real file (.ass)


 
I will look into it in a day or two and provide the update.

Legremlins_Keitaro 01-09-2016 10:14 AM

Re: how to decrypt and decode png files to real file (.ass)


 
Ok thanks, I have MP you what I find on this update ;)

blurg 01-09-2016 01:33 PM

Re: how to decrypt and decode png files to real file (.ass)


 
Quote:

Originally Posted by KSV (Post 82131)
I will look into it in a day or two and provide the update.

do you see my MP


All times are GMT -6. The time now is 12:28 AM.