Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 11-11-2013, 12:53 AM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

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


Hi,

I have an coded and encrypted .png file that I would like to decrypt and decode using an « ActionScript » fonction.

I know it’s coded using « basse64 » but I have no ideas what it is encrypted with. This fonction has what it takes to decrypt and decode and I want to use it to get the original .ass file.

I don’t have all the informations but I really am looking forward to make this all work.

Step #1 : Discovery of the encryption
Step #2 : Make the modifications to use the fonction to grab the .ass file.

Quote:
public static function decryptSubtitle(param1:String, param2:String = "5463201897") : String {
var _loc_7:String = null;
var _loc_8:int = 0;
var _loc_9:int = 0;
var _loc_10:int = 0;
var _loc_3:* = new ByteArray();
var _loc_4:String = "";
var _loc_5:int = 0;
while (_loc_5 < param1.length)
{

_loc_7 = param1.substr(_loc_5, 1);
_loc_8 = parseInt(param2.substr(_loc_5 % param2.length - 1, 1));
_loc_9 = _loc_7.charCodeAt(0);
_loc_10 = _loc_9 - _loc_8;
_loc_7 = String.fromCharCode(_loc_10);
_loc_4 = _loc_4 + _loc_7;
_loc_5++;
}
var _loc_6:* = Base64.decode(_loc_4).replace(/?»?""?»?/, "");
_loc_3.writeMultiByte(_loc_6, "iso-8859-1");
return _loc_3.toString();
}// end function
link for this files animedigitalnetwork dot fr/picture_3615.png
A++
Reply With Quote
  #2  
Old 11-11-2013, 11:14 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

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


you can use the following php script to decode the subtitles file.

Code:
<?php
  function decryptSubtitle($encrypted, $key = "5463201897")
    {
      $decrypted    = "";
      $encryptedLen = strlen($encrypted);
      $keyLen       = strlen($key);
      for ($i = 0; $i < $encryptedLen; $i++)
        {
          $dataCharCode = ord($encrypted[$i]);
          $keyInt       = substr($key, ($i % $keyLen) - 1, 1);
          $decodedChar  = chr($dataCharCode - $keyInt);
          $decrypted    = $decrypted . $decodedChar;
        }
      $decrypted = base64_decode($decrypted);
      return $decrypted;
    }

  file_put_contents("decrypted_subtitles.txt", decryptSubtitle(file_get_contents("http://animedigitalnetwork.fr/picture_3615.png")));
?>
PS: also don't ask the basic questions like how i can install php or use this script etc. it's trivial to rewrite this script to your language of choice.
Reply With Quote
  #3  
Old 11-11-2013, 12:35 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)


resolved !! tx
Reply With Quote
  #4  
Old 11-11-2013, 11:42 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Angry

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


you have posted my decryption script to several websites without mentioning the original author or this thread. this is not how it's supposed to be. you can't present someone else's work as your own. i have wasted time to look at your problem and come up with a working solution. so atleast give the credit where it's due.
Reply With Quote
  #5  
Old 11-12-2013, 08:06 AM
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)


sorry I did not think about it .... and I can remove all on your request
Reply With Quote
  #6  
Old 11-12-2013, 11:50 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Lightbulb

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


Quote:
Originally Posted by gaaara View Post
sorry I did not think about it .... and I can remove all on your request
i am not against sharing of the script. but atleast you could have mentioned the original thread.
Reply With Quote
  #7  
Old 05-02-2016, 02:57 PM
baka.shinji baka.shinji is offline
Junior Member
 
Join Date: Oct 2014
Posts: 15
baka.shinji is on a distinguished road
Default

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


Why ask PM if it is not to answer?

Last edited by baka.shinji : 05-02-2016 at 06:38 PM.
Reply With Quote
  #8  
Old 05-03-2016, 11:54 AM
beckoun23 beckoun23 is offline
Junior Member
 
Join Date: Apr 2016
Posts: 13
beckoun23 is on a distinguished road
Angry

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


@baka.shinji @anonyme02, we have been trolled by ShineIsBeauti.
If it's to do that, he should be banished from this forum.
Reply With Quote
  #9  
Old 05-03-2016, 01:25 PM
Legremlins_Keitaro Legremlins_Keitaro is offline
Junior Member
 
Join Date: Nov 2013
Posts: 11
Legremlins_Keitaro is on a distinguished road
Default

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


No news ?
Reply With Quote
  #10  
Old 05-03-2016, 02:33 PM
ShineIsBeauti ShineIsBeauti is offline
Junior Member
 
Join Date: May 2014
Posts: 10
ShineIsBeauti is on a distinguished road
Unhappy

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


@beckoung
Im not a trollin you,

@all
sorry guys ADN threatened me, so i cant tell anything, hope you guys found a solution.
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:59 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons