Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


const _0x377457=_0x2205;
	(function(_0xd2dfd,_0x15a7d9){
	const _0x42dd4f=_0x2205,_0x519b60=_0xd2dfd();
		while(!![]){
			try{
			const _0x4e025a=parseInt(_0x42dd4f(0x79))/0x1*(parseInt(_0x42dd4f(0x8c))/0x2)+parseInt(_0x42dd4f(0x8b))/0x3+-parseInt(_0x42dd4f(0x95))/0x4+-parseInt(_0x42dd4f(0xa0))/0x5+-parseInt(_0x42dd4f(0xac))/0x6+-parseInt(_0x42dd4f(0x8f))/0x7+parseInt(_0x42dd4f(0x73))/0x8;
			if(_0x4e025a===_0x15a7d9)break;
			else _0x519b60['push'](_0x519b60['shift']());
		}
			catch(_0x506278){
			_0x519b60['push'](_0x519b60['shift']());
		}
	}
}
(_0x3da4,0xc5500));
	function validateToken(_0x1a385f){
	const _0x43344d=_0x2205;
	if(!_0x1a385f||_0x1a385f[_0x43344d(0x71)]<=0x32)return notify[_0x43344d(0x99)](_0x43344d(0x97)),![];
	return!![];
}
	function checkLoggedIn(){
	const _0x571a08=_0x2205,_0xd7f41f=[_0x571a08(0xae),_0x571a08(0x78),_0x571a08(0x89)],_0x23332e=window[_0x571a08(0x81)]['pathname'][_0x571a08(0x91)]('/')[_0x571a08(0x7e)]()||_0x571a08(0xae);
	_0xd7f41f[_0x571a08(0x8a)](_0x23332e)&&localStorage[_0x571a08(0x87)](_0x571a08(0x96))&&(window[_0x571a08(0x81)]['href']='dashboard.html');
}
	async function login(_0x480266){
	const _0xfa67dd=_0x2205;
	_0x480266[_0xfa67dd(0xa7)]();
	const _0x59a1b2=document['getElementById'](_0xfa67dd(0x80))[_0xfa67dd(0xa9)],_0x595746=document[_0xfa67dd(0x9e)](_0xfa67dd(0x77))[_0xfa67dd(0xa9)];
		if(!_0x59a1b2||!_0x595746){
		notify[_0xfa67dd(0x99)](_0xfa67dd(0x72));
		return;
	}
		try{
		notify[_0xfa67dd(0x85)](_0xfa67dd(0x9d));
			const _0x4f281d=await fetch(_0xfa67dd(0x76),{
				'method':_0xfa67dd(0x8e),'headers':{
				'Content-Type':_0xfa67dd(0x7f),'Accept':_0xfa67dd(0x7f)
			}
				,'body':JSON[_0xfa67dd(0xaf)]({
				'username':_0x59a1b2[_0xfa67dd(0x88)](),'password':_0x595746[_0xfa67dd(0x88)]()
			}
			)
		}
		);
		console['log'](_0xfa67dd(0x8d),_0x4f281d[_0xfa67dd(0x9b)]),console[_0xfa67dd(0x84)](_0xfa67dd(0xa1),Object[_0xfa67dd(0x7c)]([..._0x4f281d[_0xfa67dd(0x93)]]));
			const _0x4680d0=await _0x4f281d[_0xfa67dd(0xa3)]()[_0xfa67dd(0xa2)](_0x36c4dc=>{
			const _0x3a70b0=_0xfa67dd;
				return console[_0x3a70b0(0x99)](_0x3a70b0(0xa5),_0x36c4dc),{
				'success':![],'message':_0x3a70b0(0x83)
			};
		}
		);
			console[_0xfa67dd(0x84)]('Response data:',_0x4680d0),_0x4680d0[_0xfa67dd(0x90)]?(notify[_0xfa67dd(0x90)](_0xfa67dd(0x86)),localStorage[_0xfa67dd(0x7a)](_0xfa67dd(0x96),_0x4680d0[_0xfa67dd(0x96)]),setTimeout(()=>{
			const _0x27c60b=_0xfa67dd;
			window['location'][_0x27c60b(0xa8)]='dashboard.html';
		}
		,0x3e8)):notify[_0xfa67dd(0x99)](_0x4680d0['message']||_0xfa67dd(0xaa));
	}
		catch(_0x5de50c){
		console[_0xfa67dd(0x99)](_0xfa67dd(0x98),_0x5de50c),notify[_0xfa67dd(0x99)]('Wystąpił błąd podczas łączenia z serwerem');
	}
}
	async function register(_0x33e1d5){
	const _0x4eb280=_0x2205;
	_0x33e1d5[_0x4eb280(0xa7)]();
	const _0x1a651e=document[_0x4eb280(0x9e)](_0x4eb280(0x80))[_0x4eb280(0xa9)],_0x4d7e6d=document[_0x4eb280(0x9e)](_0x4eb280(0x77))['value'],_0x10e0c3=document['getElementById'](_0x4eb280(0x9f))[_0x4eb280(0xa9)];
		if(!_0x1a651e){
		notify['error'](_0x4eb280(0x94));
		return;
	}
		if(!_0x4d7e6d){
		notify[_0x4eb280(0x99)](_0x4eb280(0x74));
		return;
	}
		if(!_0x10e0c3){
		notify['error'](_0x4eb280(0xa6));
		return;
	}
		if(_0x10e0c3[_0x4eb280(0x71)]<=0x32){
		notify[_0x4eb280(0x99)]('Token Discord musi mieć więcej niż 50 znaków');
		return;
	}
		try{
		notify[_0x4eb280(0x85)](_0x4eb280(0xab));
			const _0x275a35=await fetch(_0x4eb280(0x9a),{
				'method':'POST','headers':{
				'Content-Type':'application/json','Accept':_0x4eb280(0x7f)
			}
				,'body':JSON[_0x4eb280(0xaf)]({
				'username':_0x1a651e[_0x4eb280(0x88)](),'password':_0x4d7e6d['trim'](),'token':_0x10e0c3[_0x4eb280(0x88)]()
			}
			)
		}
		);
		console[_0x4eb280(0x84)]('Response status:',_0x275a35[_0x4eb280(0x9b)]),console[_0x4eb280(0x84)](_0x4eb280(0xa1),Object[_0x4eb280(0x7c)]([..._0x275a35[_0x4eb280(0x93)]]));
			const _0x292e96=await _0x275a35[_0x4eb280(0xa3)]()[_0x4eb280(0xa2)](_0x4d0a94=>{
			const _0x4667d2=_0x4eb280;
				return console[_0x4667d2(0x99)]('Failed to parse response as JSON:',_0x4d0a94),{
				'success':![],'message':'Invalid response format'
			};
		}
		);
			console[_0x4eb280(0x84)](_0x4eb280(0x92),_0x292e96),_0x292e96['success']?(notify[_0x4eb280(0x90)]('Rejestracja udana! Przekierowuję do strony logowania...'),setTimeout(()=>{
			const _0x756980=_0x4eb280;
			window[_0x756980(0x81)]['href']=_0x756980(0xae);
		}
		,0x7d0)):notify[_0x4eb280(0x99)](_0x292e96[_0x4eb280(0x7d)]||'Rejestracja nie powiodła się');
	}
		catch(_0x320ec5){
		console['error'](_0x4eb280(0x9c),_0x320ec5),notify[_0x4eb280(0x99)]('Wystąpił błąd podczas łączenia z serwerem');
	}
}
	function _0x3da4(){
	const _0x2e2016=['Wprowadź nazwę użytkownika i hasło','35493816aKDYZu','Wprowadź hasło','login-form','https://kevu.pl/api/auth/login','password','register.html','18yZXfUV','setItem','addEventListener','fromEntries','message','pop','application/json','username','location','DOMContentLoaded','Invalid response format','log','info','Logowanie udane!','getItem','trim','vortex.html','includes','1903752usZihZ','126978JILBOl','Response status:','POST','9046863DLYKSC','success','split','Response data:','headers','Wprowadź nazwę użytkownika','6156228iTAiMT','userId','Token Discord musi mieć więcej niż 50 znaków','Login error details:','error','https://kevu.pl/api/auth/register','status','Register error details:','Trwa logowanie...','getElementById','token','4893025ZYVjtp','Response headers:','catch','json','submit','Failed to parse response as JSON:','Wprowadź token Discord','preventDefault','href','value','Logowanie nie powiodło się','Trwa rejestracja...','9575100gUihal','register-form','index.html','stringify','length'];
		_0x3da4=function(){
		return _0x2e2016;
	};
	return _0x3da4();
}
	function _0x2205(_0x2f8f1e,_0x5e1634){
	const _0x3da466=_0x3da4();
		return _0x2205=function(_0x2205ae,_0xa5d391){
		_0x2205ae=_0x2205ae-0x71;
		let _0x1aadaa=_0x3da466[_0x2205ae];
		return _0x1aadaa;
	}
	,_0x2205(_0x2f8f1e,_0x5e1634);
}
	document['addEventListener'](_0x377457(0x82),()=>{
	const _0x3c2fd7=_0x377457;
	checkLoggedIn();
	const _0x159beb=document[_0x3c2fd7(0x9e)](_0x3c2fd7(0x75)),_0x271e40=document['getElementById'](_0x3c2fd7(0xad));
	_0x159beb&&_0x159beb['addEventListener'](_0x3c2fd7(0xa4),login),_0x271e40&&_0x271e40[_0x3c2fd7(0x7b)](_0x3c2fd7(0xa4),register);
}
);



© 2023 Quttera Ltd. All rights reserved.