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)

gaaara 09-14-2014 10:35 AM

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


 
Tomorrow we'll see if that changes or not :)

KSV 09-14-2014 08:08 PM

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


 
so my suspicion was correct. they are changing keys on rotational basis. anybody trying to use my script should extract new key from mulutibu.swf file (AES.iv function) and replace the same in my script before doing the decryption.

gaaara 09-14-2014 08:22 PM

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


 
how to download the swf files on my pc is not possible i use this website temporarily http://www.showmycode.com/

I would like to create a script to automatically download and decompile the files

denobis 09-15-2014 09:00 AM

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


 
You could try something like

Code:

                $video        ="http://animedigitalnetwork.fr/video/nabari/1209-episode-1-l-eveille";
                $mulutibu="http://animedigitalnetwork.fr/components/com_vodvideo/mediaplayer/plugins/mulutibu/mulutibu_v4_3.swf?2014-9-15";
               
                $cookie="18acd9b63ecbf50de0b8c010c2b7289f=scr7v5sbl1cigjea4r34t1o164; _gat=1; 029c45c1dfee71ebf42bcb3e469d93a8=192723e9683e7be6fe590f5e2cea5495; YWRuLWF1dGhfNTY0XzA=5416ddb290d49389328251; a2506a7b1c9f80a536e0f254bf8c954d=424441415146+A+5+B55465917+7425D595D141D1111+344444E5642+6415F404A+A5B465146+01D+D1219; _ayl_ga=GA1.2.979632947.1410784725; 4447d1d3085bd19536e003183aa51b5f=aa9fd9fdebdc9c032c71330332060f8d; _ga=GA1.2.884074519.1410784653; YWRuLWF1dGhfMTIwOV85Nzk1Mg=5416dea5ec396591227138";
                                       
                $opts = array(
                                'http'=>array(
                                    'method'=>"GET",
                                    'header'=>
                                            "User-Agent:                stagefright/1.2 (Linux;Android 4.2.2)\r\n".
                                        "Accept:                text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n".
                                        "Connection:                keep-alive\r\n".
                                        "Accept-Encoding:        gzip,deflate\r\n".
                                        "Cookie:                $cookie\r\n".
                                        "Referer:                $video\r\n",
                                    //'proxy' => "tcp://$prox",
                                    )
                                );
                       
                $context        = stream_context_create($opts);
                $swf                = file_get_contents($mulutibu, false, $context);
                                               
                $swf=bin2hex(gzuncompress(substr($swf,8)));
               
                $iv=explode("24",extrae($swf,"62052404d3a215d3ffff620848","d030","5620"));
               
                $key="";
               
                foreach ($iv as $c)
                        {
                        $actual=chr(hexdec(substr($c,0,2)));
                        $key.=$actual;
                        if (strlen($c)>2)
                                $key.=$actual;                                                       
                        }
               
                echo $key;

The cookies and the url of mulutibu can change, but the extractor seems fine if only changes the key inside the swf.

gaaara 09-15-2014 11:43 AM

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


 
how to use this script ?

denobis 09-15-2014 01:45 PM

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


 
Copy & save the next to adnivkey.php in the php directory

Code:

<?php     
        $video        ="http://animedigitalnetwork.fr/video/nabari/1209-episode-1-l-eveille";
                $mulutibu="http://animedigitalnetwork.fr/components/com_vodvideo/mediaplayer/plugins/mulutibu/mulutibu_v4_3.swf?2014-9-15";
               
                $cookie="18acd9b63ecbf50de0b8c010c2b7289f=scr7v5sbl1cigjea4r34t1o164; _gat=1; 029c45c1dfee71ebf42bcb3e469d93a8=192723e9683e7be6fe590f5e2cea5495; YWRuLWF1dGhfNTY0XzA=5416ddb290d49389328251; a2506a7b1c9f80a536e0f254bf8c954d=424441415146+A+5+B55465917+7425D595D141D1111+344444E5642+6415F404A+A5B465146+01D+D1219; _ayl_ga=GA1.2.979632947.1410784725; 4447d1d3085bd19536e003183aa51b5f=aa9fd9fdebdc9c032c71330332060f8d; _ga=GA1.2.884074519.1410784653; YWRuLWF1dGhfMTIwOV85Nzk1Mg=5416dea5ec396591227138";
                                       
                $opts = array(
                                'http'=>array(
                                    'method'=>"GET",
                                    'header'=>
                                                "User-Agent:                stagefright/1.2 (Linux;Android 4.2.2)\r\n".
                                                "Accept:                    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n".
                                                "Connection:                keep-alive\r\n".
                                                "Accept-Encoding:        gzip,deflate\r\n".
                                                "Cookie:                    $cookie\r\n".
                                                "Referer:                    $video\r\n",
                            //'proxy' => "tcp://213.174.124.185:3128",
                                    )
                                );
                       
                $context        = stream_context_create($opts);
       
                $swf                = file_get_contents($mulutibu, false, $context);
                                                               
                $swf=bin2hex(gzuncompress(substr($swf,8)));               
           
                $iv=explode("24",explode("5620",explode("d030",explode("62052404d3a215d3ffff620848",$swf)[1])[1])[0]);
               
                $key="";
               
                foreach ($iv as $c)
                        {
                        $actual=chr(hexdec(substr($c,0,2)));
                        $key.=$actual;
                        if (strlen($c)>2)
                                $key.=$actual;                                                       
                        }
               
        echo $key;
                file_put_contents("adnivkey.txt", $key);
?>

and run it with php.exe. The result in the archive adnivkey.txt. I think it works if you are in France, but with vpn i dont know. Try.

gaaara 09-15-2014 02:03 PM

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


 
i don not have any text files sorry im on linux

blurg 09-16-2014 05:44 AM

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


 
with windows i have this message in CMD

Code:

C:\php>php teste.php

Warning: gzuncompress(): data error in C:\php\teste.php on line 25


denobis 09-16-2014 02:04 PM

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


 
The problem are the cookies.

Try this

http://www.mediafire.com/view/jmx257...extractkey.php

with login

php adnextractkey.php --login=login --pass=password

If you dont want proxies pass --noproxy too.

gaaara 09-16-2014 10:54 PM

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


 
hello

it is not necessary to use cookie for downloads this swf test this smal script :)

Code:

<?php
$swffile = file_get_contents('http://animedigitalnetwork.fr/components/com_vodv$
file_put_contents('mulutibu_v4_3.swf', $swffile);
?>

it works :) is an exemple :)

denobis 09-17-2014 03:22 AM

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


 
The script works and the key is now

a446fc7f58805dbc1472105773367dac

Can you confirm it?

For me i need to get the call with the cookies and the returned swf seems corrupt, and then the correction changes.

blurg 09-17-2014 07:13 AM

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


 
i tryint whith an proxy "FR" (work to watch swf on adn.fr)

but i have message :

Code:

c:\php\php adnextractkey.php --login=XXXXXX --pass=XXXXX

trying init
c:\

and have not created txt file

denobis 09-17-2014 08:25 AM

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


 
Try the compiled exe

http://www.mediafire.com/download/o7...2/adnivkey.exe

Use without login if you're in France:

simply run the program.

Use login outside.

blurg 09-17-2014 10:17 AM

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


 
i have the same key but i insert in animedigital.php but the .ass is not decrypt
:/

denobis 09-17-2014 10:51 AM

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


 
I think you've substituted

$key = pack("C*", 48, 99, 101, 102, 56, 56, 56, 101, 56, 48, 99, 51, 49, 48, 57, 49, 54, 102, 55, 101, 97, 98, 100, 97, 54, 100, 51, 97, 51, 98, 57, 52);

to

$key="a446fc7f58805dbc1472105773367dac";

gaaara 09-17-2014 11:04 AM

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


 
denobis you have skype

blurg 09-17-2014 11:05 AM

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


 
i tried
Code:

$key = pack('H*', "a446fc7f58805dbc1472105773367dac");
and
Code:

$key = pack('C*', "a446fc7f58805dbc1472105773367dac");
i will try
$key="a446fc7f58805dbc1472105773367dac"; <= worked

jojos23 09-17-2014 11:07 AM

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


 
Thanks Denobis. It's worked for me :).

gaaara 09-17-2014 03:32 PM

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


 
denobis you speek french


edit

french poste
http://stream-recorder.com/forum/ext...0676#post70676

is not easy for everyone to speek english :)

blurg 10-02-2014 11:23 AM

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


 
i have found a program to decompile swf in dos shell
and put je sentence key in txt
with FFdec64

baka.shinji 10-02-2014 02:59 PM

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


 
I tried several Times with denobis hints without result.
I 'can't get the decryption Key :/

denobis 10-02-2014 04:50 PM

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


 
Try http://www.mediafire.com/download/o7...2/adnivkey.exe

Usage

adnivkey --login=login --pass=pass

if you are in France add --noproxy

The ivkey now is 73e13fae869893a5d9d1bc7d9cb96836

baka.shinji 10-03-2014 12:53 AM

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


 
I works!
Thank you very much Denobis, for your work and your patience :)

blurg 10-03-2014 06:21 AM

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


 
@denobis : i have test your key but i have another problem

$key = 73e13fae869893a5d9d1bc7d9cb96836

shell dos :

error ligne xx e13fae869893a5d9d1bc7d9cb96836

denobis 10-03-2014 07:43 AM

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


 
Quote:

Originally Posted by blurg (Post 71164)
@denobis : i have test your key but i have another problem

$key = 73e13fae869893a5d9d1bc7d9cb96836

shell dos :

error ligne xx e13fae869893a5d9d1bc7d9cb96836

Code:

$key = "73e13fae869893a5d9d1bc7d9cb96836";

gaaara 10-12-2014 04:50 PM

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


 
hello

i have a probleme with key générated of your script dénobis

is a good key is not a probleme juste but it works randomly

on the script
Code:

  $open = fopen("php\key\keyfile.txt", "r");
  $okey=fgets($open,255);
  $td  = mcrypt_module_open('rijndael-128', '', 'ecb', '');
  $iv  = str_repeat("\x00", 16);

  $key = pack("A*",$okey); ## **not working**

  $key = $key . str_repeat("\x00", 32 - strlen($key));
  mcrypt_generic_init($td, $key, $iv);
  $key = mcrypt_generic($td, $key);
  $key = str_repeat(substr($key, 0, 16), 2);
  mcrypt_generic_deinit($td);

the key is readable

test code
Code:

<?php
$key = pack('A*', 'b8e3c43ee882b09ec4e7ace525dfd45');
echo "$key"
?>

résult
Code:

[gaaara@localhost adn]$ php test
b8e3c43ee882b09ec4e7ace525dfd45

jus actualy not works

denobis 10-12-2014 04:53 PM

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


 
Quote:

Originally Posted by gaaara (Post 71435)
hello

i have a probleme with key générated of your script dénobis

is a good key is not a probleme juste but it works randomly

on the script
Code:

  $open = fopen("php\key\keyfile.txt", "r");
  $okey=fgets($open,255);
  $td  = mcrypt_module_open('rijndael-128', '', 'ecb', '');
  $iv  = str_repeat("\x00", 16);

  $key = pack("A*",$okey); ## **not working**

  $key = $key . str_repeat("\x00", 32 - strlen($key));
  mcrypt_generic_init($td, $key, $iv);
  $key = mcrypt_generic($td, $key);
  $key = str_repeat(substr($key, 0, 16), 2);
  mcrypt_generic_deinit($td);

the key is readable

test code
Code:

<?php
$key = pack('A*', 'b8e3c43ee882b09ec4e7ace525dfd45');
echo "$key"
?>

résult
Code:

[gaaara@localhost adn]$ php test
b8e3c43ee882b09ec4e7ace525dfd45

jus actualy not works

$key = $okey; ## **working**

The key is 'b8e3c43ee882b09ec4e7ace525dfd45', dont repack it, but adjust it to 32 bytes

0b8e3c43ee882b09ec4e7ace525dfd45

change the script anyway to

Code:

                $iv=array_slice(explode("24",explode("5620",explode("d030",explode("62052404d3a215d3ffff620848",$swf)[1])[1])[0]),1);
               
                $key="";
               
                foreach ($iv as $c)
                        {
                        $actual=sprintf("%02x",chr(hexdec(substr($c,0,2))));
                        $key.=str_repeat($actual,strlen($c)/2);
                                                       
                        }


gaaara 10-12-2014 05:44 PM

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


 
What I have to replace exactl

Code:

<?php

//get the encryption key
$swf=file_get_contents("mulutibu_v4_3.swf");
$swf        = bin2hex(gzuncompress(substr($swf,8)));
        if (!strpos($swf,"62052404d3a215d3ffff620848")) die("bad");
       
                $iv=explode("24",explode("5620",explode("d030",explode("62052404d3a215d3ffff620848",$swf)[1])[1])[0]);
               
                $key1="";
               
                foreach ($iv as $c)
                        {
                        $actual=chr(hexdec(substr($c,0,2)));
                        $key1.=$actual;
                        if (strlen($c)>2)
                                $key1.=$actual;                                                       
                        }

echo "\r\nivkey:".trim($key1);
        echo "\r\nThe key is in the file adnivkey.txt";
                file_put_contents("adnivkey.txt", trim($key1));

?>

this part ?
Code:

$iv=explode("24",explode("5620",explode("d030",explode("62052404d3a215d3ffff620848",$swf)[1])[1])[0]);
               
                $key1="";
               
                foreach ($iv as $c)
                        {
                        $actual=chr(hexdec(substr($c,0,2)));
                        $key1.=$actual;
                        if (strlen($c)>2)
                                $key1.=$actual;                                                       
                        }

i have edited the files and get this
Code:

ivkey:0609070904010801000000000900050506010202060600040003070000070800
and test not working

I do not understand why the script can not decrypt the file

denobis 10-12-2014 06:52 PM

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


 
Send me a valid mulutibu.swf

gaaara 10-12-2014 06:58 PM

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


 
mp :)

gaaara 10-19-2014 09:04 AM

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


 
Hi everyone !

I need help with Python, I would like to be able to connect to a web page and then retrieve the cookies from it and then put them in a text file.
Thanks !

baka.shinji 10-25-2014 04:43 PM

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


 
Hello.
Now I have an error message when executing denobis script:

Checking login.OK

Login activo
Trying mulutibu.OK
Garbage found. Trying to recover
FATAL: erealloc(): Unable to allocate 1169326080 bytes

FRino 10-26-2014 10:23 AM

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


 
same problem

denobis 10-26-2014 12:02 PM

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


 
e9427317608d2db13a35b7d4e7c756b5

baka.shinji 10-26-2014 02:51 PM

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


 
Thank you denobis.

baka.shinji 11-02-2014 02:33 PM

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


 
Did anyone manage to find a new solution ? ^^;

baka.shinji 11-11-2014 12:03 PM

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


 
I guess no :(

Informatoque 11-12-2014 10:55 AM

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


 
2 Attachment(s)
Yeah please if anyone finds a new solution...

Denobis, it'd be great if you could help. I'm not asking for all the work to be done because I've researched the problem myself but now I'm stuck:

It seems to not be possible to access the mulutibu_v4_3.swf file anymore but I've done some research and decompiling and I found a file called mediaplayer.js (I've attached it) and here's what seems interesting:
Code:

var today =  new Date();
                                        var todayString = today.getFullYear() + "-" + (today.getMonth()+1) + "-" + today.getDate();
                                        var mulutibu = mediaPlayerDirectory + "plugins/mulutibu/mulutibu_v4_3.swf?" + todayString;
                                        if (this.get("simpleMode")) {
                                                mulutibu = mediaPlayerDirectory + "plugins/mulutibu/mulutibu_v4_3.simple.swf?" + todayString;
                                        }
                                        if (this.get("fan")) {
                                                mulutibu = mediaPlayerDirectory + "plugins/mulutibu/mulutibu_v4_3.fan.swf?" + todayString;
                                        }
                                        plugins[mulutibu] = {
                                                back: false,
                                                cc: this.get("login")
                                        };

So from that I tried the mulutibu_v4_3.simple.swf file and there seems to be no AES.as file.
So then I tried the mulutibu_v4_3.fan.swf file and there was an AES.as file (which I've also attached).
But now I'm stuck and can't go any further so any help is appreciated :)

Thanks

Stream Ripper 11-12-2014 10:52 PM

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


 
Did this work for you?

Informatoque 11-13-2014 04:00 AM

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


 
Quote:

Originally Posted by Stream Ripper (Post 71983)
Did this work for you?

I never had a chance to try the technique given on this thread because as it was stated, the key changes on a rotational basis, presumably every day. And something was changed on the websites because I can't seem to download the previously stated swf file containing the key. I tried both php scripts, the exe, the by hand technique and reproducing part of the php script actions by hand with no success. Which is why I posted here...


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