View Single Post
  #68  
Old 10-12-2014, 05:44 PM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

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

Last edited by gaaara : 10-12-2014 at 06:50 PM.
Reply With Quote