View Single Post
  #44  
Old 09-15-2014, 09:00 AM
denobis denobis is offline
Senior Member
 
Join Date: Sep 2013
Posts: 568
denobis is on a distinguished road
Default

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.
Reply With Quote