Cyber Anakins Lightsaber - A Minishell-based backdoor

Current Path : /home/bjb2293782/xn--80abaeoqbbrbgf8aea5a2a2z.xn--p1ai/docs/
Upload File :
Current File : /home/bjb2293782/xn--80abaeoqbbrbgf8aea5a2a2z.xn--p1ai/docs/counteradmin.js

function counterDialog(json)
{
	var dlg = openDialogBoxWithButtons("Правка счетчика", 600, 120);

	var grid;

	grid = createPropertyGrid(dlg.innerElement);

	dlg.totalEditor = createEditProperty(grid, "Всего посещений:", "100%", json.total);
	dlg.newEditor = createEditProperty(grid, "Всего пользователей:","100%",json._new);

	


	btn = dlg.buttonPanel.appendChild(createInput('button'));
    btn.value="OK";
    btn.dlg = dlg;
    btn.onclick=function()
    	{
    		var post = 'action=counter:set';
    		post+='&total='+encodeURIComponent(this.dlg.totalEditor.getValue());
    		post+='&_new='+encodeURIComponent(this.dlg.newEditor.getValue());

    		var btn = this;
    		btn.disabled=true;

    		sendXHR('api.php',post,
			function(response)
			{
				dlg.close();
				location.reload();
			},
			function(error)
			{
				btn.disabled=false;
				errorBox(error);
			});	
    	};



	btn = dlg.buttonPanel.appendChild(createInput('button'));
    btn.value="Закрыть";
    btn.dlg = dlg;
    btn.onclick=function()
    	{
    		this.dlg.close();
    	};

	dlg.alignInScreenCenter();
}


function editCounter()
{
	sendXHR("api.php","action=counter:get",
		function(response)
		{
			counterDialog(JSON.parse(response));
		},
		function(error)
		{
			errorBox(error);
		});		
}

May the force be with you, always.