декомпилиране на файл?

Уроци и разработки по FLASH и Action Script
Post Reply
User avatar
embaka
Гуру
Гуру
Posts: 2045
Joined: Sun May 04, 2008 8:43 pm
Answers: 105
Location: В. Търново
Contact:

декомпилиране на файл?

Post by embaka » Mon Dec 03, 2012 12:15 am

здравейте, някой може ли да ми декомпилира тоя файл от тук

User avatar
vinsbg
Гуру
Гуру
Posts: 2604
Joined: Wed Jan 28, 2009 12:21 pm
Answers: 51
Location: София
Contact:

Post by vinsbg » Mon Dec 03, 2012 6:06 am

Това е от онлайн декомпилатор и е безплатен.

Code: Select all

package gkplugins {
    import flash.display.*;
    import flash.external.*;

    public class PluginGKModel extends Sprite {

        public var onFinish:Function;
        public var onShowText:Function;
        public var allowADS:Function;
        public var ngkplugins1l:Function;
        public var startCheckList:Function;
        public var checkPolicy:Boolean = false;
        protected var gkitem;
        protected var gkProxyConfig:Object;
        public var gkPlayer:Object;
        protected var inputItemArray:Array;
        protected var msgUseNewProxy:String;
        protected var fileNotFound:String = "File invalid or deleted";
        protected var curlNotFound:String = "CURL not enabled in your host";
        public var linkphp:String = "plugins_player.php";
        public var uagent:String = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0";
        public var encoding:String = "gzip, deflate";

        public function PluginGKModel(){
            this.msgUseNewProxy = this.arrNametoString([46, 110, 105, 97, 103, 97, 32, 121, 114, 116, 32, 100, 110, 97, 32, 114, 101, 115, 119, 111, 114, 98, 32, 101, 104, 99, 97, 99, 32, 114, 97, 101, 108, 99, 32, 44, 101, 103, 110, 97, 104, 99, 32, 116, 111, 110, 32, 116, 117, 98, 32, 100, 101, 116, 97, 100, 112, 117, 32, 102, 73, 32, 46, 41, 112, 105, 122, 46, 89, 88, 79, 82, 80, 47, 100, 97, 111, 108, 110, 119, 111, 100, 47, 109, 111, 99, 46, 115, 110, 105, 103, 117, 108, 112, 107, 103, 47, 47, 58, 112, 116, 116, 104, 40, 32, 102, 119, 115, 46, 121, 120, 111, 114, 112, 32, 119, 101, 110, 32, 101, 116, 97, 100, 112, 117, 32, 101, 115, 97, 101, 108, 80]);
            super();
        }
        protected function allowDomainRun(_arg1:Array):Boolean{
            var _local4:String;
            var _local5:String;
            var _local6:String;
            var _local2:Array = _arg1;
            var _local3:int;
            var _local7:int;
            while &#40;_local7 < _local2.length&#41; &#123;
                _local4 = _local2&#91;_local7&#93;;
                _local5 = this.loaderInfo.url.split&#40;"&#58;//"&#41;&#91;1&#93;.split&#40;"/"&#41;&#91;0&#93;;
                _local6 = _local5.substr&#40;Math.abs&#40;&#40;_local5.length - _local4.length&#41;&#41;, _local4.length&#41;;
                if &#40;_local6 != _local4&#41;&#123;
                    _local3++;
                &#125;;
                _local7++;
            &#125;;
            if &#40;_local3 != _local2.length&#41;&#123;
            &#125; else &#123;
                return &#40;false&#41;;
            &#125;;
            return &#40;true&#41;;
        &#125;
        protected function gkpluginsName&#40;_arg1&#58;String, _arg2&#58;String&#41;&#58;String&#123;
            var _local3&#58;String = this.arrNametoString&#40;&#91;32, 58, 32, 115, 110, 105, 103, 117, 108, 80, 107, 103&#93;&#41;;
            var _local4&#58;String = this.arrNametoString&#40;&#91;32, 58, 32, 101, 116, 97, 68, 10, 56, 50, 109, 101, 105, 107, 95, 99, 97, 103, 32, 58, 32, 114, 111, 104, 116, 117, 65, 10, 99, 105, 108, 98, 117, 80, 32, 58, 32, 101, 115, 110, 101, 99, 105, 76, 10&#93;&#41;;
            var _local5&#58;String = this.arrNametoString&#40;&#91;109, 111, 99, 46, 115, 110, 105, 103, 117, 108, 80, 107, 103, 32, 58, 32, 101, 109, 111, 72, 10&#93;&#41;;
            return &#40;&#40;&#40;&#40;&#40;_local3 + _arg1&#41; + _local4&#41; + _arg2&#41; + _local5&#41;&#41;;
        &#125;
        private function arrNametoString&#40;_arg1&#58;Array&#41;&#58;String&#123;
            var _local2 = "";
            _arg1.reverse&#40;&#41;;
            var _local3&#58;int;
            while &#40;//unresolved if
, true&#41; &#123;
                _local2 = &#40;_local2 + String.fromCharCode&#40;_arg1&#91;_local3&#93;&#41;&#41;;
                _local3++;
            &#125;;
            return &#40;_local2&#41;;
        &#125;
        public function linkMe&#40;&#41;&#58;String&#123;
            var _local1&#58;String = this.loaderInfo.url.split&#40;"?"&#41;&#91;0&#93;;
            if &#40;_local1.indexOf&#40;"file&#58;//"&#41; < 0&#41;&#123;
            &#125; else &#123;
                return &#40;""&#41;;
            &#125;;
            var _local2&#58;Array = _local1.split&#40;"/"&#41;;
            _local2.pop&#40;&#41;;
            var _local3 = &#40;_local2.join&#40;"/"&#41; + "/"&#41;;
            return &#40;_local3&#41;;
        &#125;
        public function showMSG&#40;_arg1&#58;String&#41;&#58;void&#123;
            if &#40;this.onShowText != null&#41;&#123;
                this.onShowText&#40;_arg1&#41;;
            &#125;;
        &#125;
        public function pluginsFinish&#40;&#41;&#58;void&#123;
            if &#40;this.inputItemArray != null&#41;&#123;
                this.inputItemArray&#91;0&#93; = this.gkitem;
                this.gkitem = this.inputItemArray;
            &#125;;
            if &#40;this.onFinish == null&#41;&#123;
            &#125; else &#123;
                this.onFinish&#40;this.gkitem&#41;;
            &#125;;
        &#125;
        protected function checkBrowser&#40;&#41;&#58;String&#123;
            var _local1&#58;String;
            try &#123;
                _local1 = ExternalInterface.call&#40;"function&#40;&#41;&#123;return navigator.userAgent;&#125;"&#41;;
            &#125; catch&#40;e&#58;Error&#41; &#123;
            &#125;;
            return &#40;_local1&#41;;
        &#125;
        protected function checkCURL&#40;_arg1&#58;String&#41;&#58;Boolean&#123;
            var _local2&#58;Boolean;
            if &#40;_arg1.indexOf&#40;"Call to undefined function  curl_init&#40;&#41;"&#41; >= 0&#41;&#123;
                _local2 = false;
            &#125;;
            return &#40;_local2&#41;;
        &#125;

    &#125;
&#125;//package gkplugins 
&#65279;package &#123;
    import gkplugins.*;
    import flash.external.*;
    import flash.events.*;
    import flash.text.*;
    import flash.net.*;
    import flash.system.*;

    public class GKLicense extends PluginGKModel &#123;

        public var licADS&#58;Function;
        public var licAllow&#58;Function;
        public var expiresTime&#58;Number = 1356501001566;
        public var allowDM&#58;Array;
        public var secretKey&#58;String = "30ee1a2aeec41f2591d768cf5348a097";

        public function GKLicense&#40;&#41;&#123;
            this.allowDM = new Array&#40;"onlinefilmi.info"&#41;;
            super&#40;&#41;;
            var _local1&#58;TextFormat = new TextFormat&#40;&#41;;
            _local1.align = TextFormatAlign.CENTER;
            _local1.color = 0;
            _local1.font = "Times New Roman";
            _local1.size = 15;
            var _local2&#58;TextField = new TextField&#40;&#41;;
            _local2.defaultTextFormat = _local1;
            _local2.multiline = true;
            _local2.wordWrap = false;
            var _local3 = "#009900";
            if &#40;this.checkExpires&#40;this.expiresTime&#41; != false&#41;&#123;
            &#125; else &#123;
                _local3 = "#FF0000";
            &#125;;
            var _local4 = "";
            if &#40;this.allowDM.length > 1&#41;&#123;
                _local4 = &#40;&#40;" & " + &#40;this.allowDM.length - 1&#41;&#41; + " other domain"&#41;;
            &#125;;
            var _local5 = "gkPlugins License Standard\n";
            _local5 = &#40;_local5 + &#40;&#40;&#40;"License &#58; " + this.allowDM&#91;0&#93;&#41; + _local4&#41; + "\n"&#41;&#41;;
            _local5 = &#40;_local5 + &#40;&#40;&#40;&#40;"<font color='" + _local3&#41; + "'>Expires &#58; "&#41; + this.timeToString&#40;this.expiresTime&#41;&#41; + "</font>\n"&#41;&#41;;
            _local2.htmlText = _local5;
            _local2.autoSize = TextFieldAutoSize.CENTER;
            _local2.x = &#40;&#40;250 - _local2.width&#41; / 2&#41;;
            _local2.y = &#40;&#40;60 - _local2.height&#41; / 2&#41;;
            addChild&#40;_local2&#41;;
        &#125;
        public function beginPlugins&#40;_arg1=null, _arg2&#58;Object=null, _arg3&#58;Object=null&#41;&#58;void&#123;
            var wloca&#58;* = null;
            var showLimit&#58;* = false;
            var embedAllow&#58;* = null;
            var embedDenied&#58;* = null;
            var arridm&#58;* = null;
            var adsLink&#58;* = null;
            var ga&#58;* = null;
            var gashow&#58;* = null;
            var gaclick&#58;* = null;
            var item = _arg1;
            var gkProxyConfig = _arg2;
            var player = _arg3;
            this.gkProxyConfig = gkProxyConfig;
            this.gkPlayer = player;
            if &#40;!&#40;item is Array&#41;&#41;&#123;
            &#125; else &#123;
                inputItemArray = item;
                this.gkitem = item&#91;0&#93;;
                //unresolved jump
            &#125;;
            this.gkitem = item;
            if &#40;ngkplugins1l != null&#41;&#123;
            &#125; else &#123;
                showMSG&#40;msgUseNewProxy&#41;;
                pluginsFinish&#40;&#41;;
                return;
            &#125;;
            var isAllow&#58;* = allowDomainRun&#40;this.allowDM&#41;;
            if &#40;!&#40;&#40;&#40;this.checkExpires&#40;this.expiresTime&#41; == false&#41;&#41; || &#40;&#40;isAllow == false&#41;&#41;&#41;&#41;&#123;
            &#125; else &#123;
                pluginsFinish&#40;&#41;;
                return;
            &#125;;
            if &#40;this.licAllow != null&#41;&#123;
                try &#123;
                    wloca = ExternalInterface.call&#40;"function&#40;&#41;&#123;try&#123;return window.location.href;&#125;catch&#40;err&#41;&#123;&#125;&#125;"&#41;;
                &#125; catch&#40;e&#58;Error&#41; &#123;
                &#125;;
                showLimit = true;
                embedAllow = this.loaderInfo.parameters.embedallow;
                embedDenied = this.loaderInfo.parameters.embeddenied;
                if &#40;!&#40;wloca == null&#41;&#41;&#123;
                &#125; else &#123;
                    &#40;wloca == null&#41;;
                &#125;;
                if &#40;&#40;wloca == null&#41;&#41;&#123;
                    gkitem.file = "error.flv";
                    showMSG&#40;"Please use full embed code with object & embed tag"&#41;;
                    pluginsFinish&#40;&#41;;
                    return;
                &#125;;
                if &#40;embedAllow == null&#41;&#123;
                &#125; else &#123;
                    arridm = embedAllow.split&#40;","&#41;;
                    if &#40;!&#40;&#40;&#40;embedAllow == "*"&#41;&#41; || &#40;this.dmInArrDm&#40;wloca, arridm&#41;&#41;&#41;&#41;&#123;
                    &#125; else &#123;
                        showLimit = false;
                    &#125;;
                    //unresolved jump
                &#125;;
                if &#40;embedDenied != null&#41;&#123;
                    arridm = embedDenied.split&#40;","&#41;;
                    if &#40;this.dmInArrDm&#40;wloca, arridm&#41; != false&#41;&#123;
                    &#125; else &#123;
                        showLimit = false;
                    &#125;;
                &#125;;
                if &#40;showLimit&#41;&#123;
                    if &#40;this.dmInArrDm&#40;wloca, this.allowDM&#41;&#41;&#123;
                        showLimit = false;
                    &#125;;
                &#125;;
                if &#40;showLimit&#41;&#123;
                    gkitem.file = "LicenseLimit.flv";
                    showMSG&#40;"License Limited"&#41;;
                    pluginsFinish&#40;&#41;;
                    return;
                &#125;;
                this.licAllow&#40;&#41;;
            &#125;;
            if &#40;this.licADS != null&#41;&#123;
                adsLink = this.loaderInfo.parameters&#91;"ads"&#93;;
                ga = this.loaderInfo.parameters&#91;"ga"&#93;;
                gashow = this.loaderInfo.parameters&#91;"gashow"&#93;;
                gaclick = this.loaderInfo.parameters&#91;"gaclick"&#93;;
                if &#40;!&#40;&#40;adsLink == null&#41;&#41;&#41;&#123;
                &#125; else &#123;
                    !&#40;&#40;adsLink == null&#41;&#41;;
                &#125;;
                if &#40;!&#40;&#40;adsLink == null&#41;&#41;&#41;&#123;
                    try &#123;
                        this.licADS&#40;adsLink, ga, gashow, gaclick&#41;;
                    &#125; catch&#40;ex&#58;Error&#41; &#123;
                        var _slot1 = ex;
                        licADS&#40;adsLink, ga&#41;;
                    &#125;;
                &#125;;
            &#125;;
            pluginsFinish&#40;&#41;;
        &#125;
        private function checkExpires&#40;_arg1&#58;Number&#41;&#58;Boolean&#123;
            var _local2&#58;Boolean;
            var _local3&#58;Date = new Date&#40;&#41;;
            var _local4&#58;Number = _local3.getTime&#40;&#41;;
            if &#40;_local4 <= this.expiresTime&#41;&#123;
            &#125; else &#123;
                _local2 = false;
            &#125;;
            return &#40;_local2&#41;;
        &#125;
        private function dmInArrDm&#40;_arg1&#58;String, _arg2&#58;Array&#41;&#58;Boolean&#123;
            var _local5&#58;String;
            if &#40;_arg1 == null&#41;&#123;
                return &#40;false&#41;;
            &#125;;
            var _local3&#58;String = _arg1.split&#40;"&#58;//"&#41;&#91;1&#93;.split&#40;"/"&#41;&#91;0&#93;;
            var _local4&#58;Boolean;
            var _local6&#58;int;
            while &#40;_local6 < _arg2.length&#41; &#123;
                _local5 = _local3.substr&#40;-&#40;_arg2&#91;_local6&#93;.length&#41;&#41;;
                if &#40;_local5 != _arg2&#91;_local6&#93;&#41;&#123;
                &#125; else &#123;
                    _local4 = true;
                    break;
                &#125;;
                _local6++;
            &#125;;
            return &#40;_local4&#41;;
        &#125;
        private function timeToString&#40;_arg1&#58;Number&#41;&#58;String&#123;
            var _local2&#58;Array = new Array&#40;"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"&#41;;
            var _local3&#58;Date = new Date&#40;&#41;;
            _local3.setTime&#40;_arg1&#41;;
            var _local4&#58;Number = _local3.getDate&#40;&#41;;
            var _local5&#58;Number = _local3.getHours&#40;&#41;;
            var _local6&#58;Number = _local3.getMinutes&#40;&#41;;
            var _local7&#58;String = _local4.toString&#40;&#41;;
            var _local8&#58;String = _local5.toString&#40;&#41;;
            var _local9&#58;String = _local6.toString&#40;&#41;;
            var _local10&#58;String = _local2&#91;_local3.getMonth&#40;&#41;&#93;;
            var _local11&#58;String = _local3.getFullYear&#40;&#41;.toString&#40;&#41;;
            if &#40;_local4 >= 10&#41;&#123;
            &#125; else &#123;
                _local7 = &#40;"0" + _local7&#41;;
            &#125;;
            if &#40;_local5 < 10&#41;&#123;
                _local8 = &#40;"0" + _local8&#41;;
            &#125;;
            if &#40;_local6 >= 10&#41;&#123;
            &#125; else &#123;
                _local9 = &#40;"0" + _local9&#41;;
            &#125;;
            var _local12&#58;String = &#40;&#40;&#40;&#40;&#40;&#40;&#40;&#40;_local7 + "-"&#41; + _local10&#41; + "-"&#41; + _local11&#41; + " "&#41; + _local8&#41; + "&#58;"&#41; + _local9&#41;;
            return &#40;_local12&#41;;
        &#125;

    &#125;
&#125;//package
ShowMyCode

Post Reply