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
  #31  
Old 09-08-2014, 09:07 PM
deltasebz deltasebz is offline
Junior Member
 
Join Date: Sep 2014
Posts: 2
deltasebz is on a distinguished road
Default

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


Hi, I use the php script of KSV and my .ass can't be open in aegisub.

Pictures :
http://www.hostingpics.net/viewer.ph...912aegisub.jpg

http://www.hostingpics.net/viewer.ph...038notepad.jpg


Png files are around 30 ko and .ass around 25.

Any ideas ?
Thanks
Reply With Quote
  #32  
Old 09-09-2014, 02:16 PM
blurg blurg is offline
Member
 
Join Date: Jul 2014
Posts: 32
blurg is on a distinguished road
Default

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


me too, i think adn change crypt in png files
we need you KSV


Code:
package com.wowza.encryptionAS3
{

    public class TEA extends Object
    {

        public function TEA()
        {
            return;
        }// end function

        public static function encrypt(param1:String, param2:String) : String
        {
            var _loc_9:Number = NaN;
            var _loc_10:Number = NaN;
            var _loc_14:Number = NaN;
            if (param1.length == 0)
            {
                return "";
            }
            var _loc_3:* = charsToLongs(strToChars(param1));
            if (_loc_3.length <= 1)
            {
                _loc_3[1] = 0;
            }
            var _loc_4:* = charsToLongs(strToChars(param2.substr(0, 16)));
            var _loc_5:* = _loc_3.length;
            var _loc_6:* = _loc_3[(_loc_5 - 1)];
            var _loc_7:* = _loc_3[0];
            var _loc_8:Number = 2654435769;
            var _loc_11:* = Math.floor(6 + 52 / _loc_5);
            var _loc_12:Number = 0;
            while (_loc_11-- > 0)
            {
                
                _loc_12 = _loc_12 + _loc_8;
                _loc_10 = _loc_12 >>> 2 & 3;
                _loc_14 = 0;
                while (_loc_14 < _loc_5)
                {
                    
                    _loc_7 = _loc_3[(_loc_14 + 1) % _loc_5];
                    _loc_9 = (_loc_6 >>> 5 ^ _loc_7 << 2) + (_loc_7 >>> 3 ^ _loc_6 << 4) ^ (_loc_12 ^ _loc_7) + (_loc_4[_loc_14 & 3 ^ _loc_10] ^ _loc_6);
                    var _loc_15:* = _loc_3[_loc_14] + _loc_9;
                    _loc_3[_loc_14] = _loc_3[_loc_14] + _loc_9;
                    _loc_6 = _loc_15;
                    _loc_14 = _loc_14 + 1;
                }
            }
            var _loc_13:* = longsToChars(_loc_3);
            return charsToHex(_loc_13);
        }// end function

        public static function decrypt(param1:String, param2:String) : String
        {
            var _loc_9:Number = NaN;
            var _loc_10:Number = NaN;
            var _loc_14:Number = NaN;
            if (param1.length == 0)
            {
                return "";
            }
            var _loc_3:* = charsToLongs(hexToChars(param1));
            var _loc_4:* = charsToLongs(strToChars(param2.substr(0, 16)));
            var _loc_5:* = _loc_3.length;
            var _loc_6:* = _loc_3[(_loc_5 - 1)];
            var _loc_7:* = _loc_3[0];
            var _loc_8:Number = 2654435769;
            var _loc_11:* = Math.floor(6 + 52 / _loc_5);
            var _loc_12:* = Math.floor(6 + 52 / _loc_5) * _loc_8;
            while (_loc_12 != 0)
            {
                
                _loc_10 = _loc_12 >>> 2 & 3;
                _loc_14 = _loc_5 - 1;
                while (_loc_14 >= 0)
                {
                    
                    _loc_6 = _loc_3[_loc_14 > 0 ? ((_loc_14 - 1)) : ((_loc_5 - 1))];
                    _loc_9 = (_loc_6 >>> 5 ^ _loc_7 << 2) + (_loc_7 >>> 3 ^ _loc_6 << 4) ^ (_loc_12 ^ _loc_7) + (_loc_4[_loc_14 & 3 ^ _loc_10] ^ _loc_6);
                    var _loc_15:* = _loc_3[_loc_14] - _loc_9;
                    _loc_3[_loc_14] = _loc_3[_loc_14] - _loc_9;
                    _loc_7 = _loc_15;
                    _loc_14 = _loc_14 - 1;
                }
                _loc_12 = _loc_12 - _loc_8;
            }
            var _loc_13:* = longsToChars(_loc_3);
            return charsToStr(_loc_13);
        }// end function

        private static function charsToLongs(param1:Array) : Array
        {
            var _loc_2:* = new Array(Math.ceil(param1.length / 4));
            var _loc_3:Number = 0;
            while (_loc_3 < _loc_2.length)
            {
                
                _loc_2[_loc_3] = param1[_loc_3 * 4] + (param1[_loc_3 * 4 + 1] << 8) + (param1[_loc_3 * 4 + 2] << 16) + (param1[_loc_3 * 4 + 3] << 24);
                _loc_3 = _loc_3 + 1;
            }
            return _loc_2;
        }// end function

        private static function longsToChars(param1:Array) : Array
        {
            var _loc_2:* = new Array();
            var _loc_3:Number = 0;
            while (_loc_3 < param1.length)
            {
                
                _loc_2.push(param1[_loc_3] & 255, param1[_loc_3] >>> 8 & 255, param1[_loc_3] >>> 16 & 255, param1[_loc_3] >>> 24 & 255);
                _loc_3 = _loc_3 + 1;
            }
            return _loc_2;
        }// end function

        private static function longToChars(param1:Number) : Array
        {
            var _loc_2:* = new Array();
            _loc_2.push(param1 & 255, param1 >>> 8 & 255, param1 >>> 16 & 255, param1 >>> 24 & 255);
            return _loc_2;
        }// end function

        private static function charsToHex(param1:Array) : String
        {
            var _loc_2:* = new String("");
            var _loc_3:* = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
            var _loc_4:Number = 0;
            while (_loc_4 < param1.length)
            {
                
                _loc_2 = _loc_2 + (_loc_3[param1[_loc_4] >> 4] + _loc_3[param1[_loc_4] & 15]);
                _loc_4 = _loc_4 + 1;
            }
            return _loc_2;
        }// end function

        private static function hexToChars(param1:String) : Array
        {
            var _loc_2:* = new Array();
            var _loc_3:* = param1.substr(0, 2) == "0x" ? (2) : (0);
            while (_loc_3 < param1.length)
            {
                
                _loc_2.push(parseInt(param1.substr(_loc_3, 2), 16));
                _loc_3 = _loc_3 + 2;
            }
            return _loc_2;
        }// end function

        private static function charsToStr(param1:Array) : String
        {
            var _loc_2:* = new String("");
            var _loc_3:Number = 0;
            while (_loc_3 < param1.length)
            {
                
                _loc_2 = _loc_2 + String.fromCharCode(param1[_loc_3]);
                _loc_3 = _loc_3 + 1;
            }
            return _loc_2;
        }// end function

        private static function strToChars(param1:String) : Array
        {
            var _loc_2:* = new Array();
            var _loc_3:Number = 0;
            while (_loc_3 < param1.length)
            {
                
                _loc_2.push(param1.charCodeAt(_loc_3));
                _loc_3 = _loc_3 + 1;
            }
            return _loc_2;
        }// end function

    }
}

Last edited by blurg : 09-10-2014 at 09:26 AM.
Reply With Quote
  #33  
Old 09-13-2014, 03:41 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)


out to date

Last edited by gaaara : 09-14-2014 at 11:13 AM.
Reply With Quote
  #34  
Old 09-14-2014, 05:21 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)


They have only updated the decryption key. i have updated the script accordingly.
Reply With Quote
  #35  
Old 09-14-2014, 05:57 AM
blurg blurg is offline
Member
 
Join Date: Jul 2014
Posts: 32
blurg is on a distinguished road
Default

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


the key have 1 more time change but........=>MP
Reply With Quote
  #36  
Old 09-14-2014, 08:24 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)


résolv

Last edited by gaaara : 09-14-2014 at 11:13 AM.
Reply With Quote
  #37  
Old 09-14-2014, 09:45 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)


i don't understand what you guys are trying to say. why you are replacing new key with something else and then asking why it's not working? i have tested the script on following sample and it works as expected.

http://www.filedropper.com/m321
Reply With Quote
  #38  
Old 09-14-2014, 09:55 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)


the new key in files swf

Last edited by gaaara : 09-14-2014 at 10:31 AM.
Reply With Quote
  #39  
Old 09-14-2014, 10:30 AM
blurg blurg is offline
Member
 
Join Date: Jul 2014
Posts: 32
blurg is on a distinguished road
Post

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


KSV i know, but ADN have 1 more time changing the key since last time
Reply With Quote
  #40  
Old 09-14-2014, 10:47 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)


hmm.. either it was a pure coincidence or they are changing keys on some rotational basis. anyway i have pushed the new key.
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 12:19 AM.


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