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


	<html lang="en"><head><title>Redirecting...</title></head><body><script>(()=>{
	"use strict";
		const t="offset",e="client",o=function(){
	};
	let n=!1,r=!1;
		const i={
		loopDelay:50,maxLoop:5,complete:o
	}
	,l=[];
	let u=null;
		const s={
		cssClass:"ad-overlay google-ad-bottom-outer prebid-wrapper .dfp-ad-container"
	}
		,a={
		nullProps:[t+"Parent"],zeroProps:[]
	};
	a.zeroProps=[t+"Height",t+"Left",t+"Top",t+"Width",t+"Height",e+"Height",e+"Width"];
		const c={
		quick:null,remote:null
	};
	let d=null;
		const p={
		test:0,download:0
	};
		function f(t){
		return"function"==typeof t
	}
		function m(t){
			!0!==d&&(r=!0,y(t),c.quick="testing",p.test=setTimeout((function(){
			h(t,1)
		}
		),5))
	}
		function y(t){
		let e,o,n=document.body,r="width: 1px !important;
		 height: 1px !important;
		 position: absolute !important;
		 left: -10000px !important;
		 top: -1000px !important;
		";
			if(null!=t&&"string"!=typeof t){
				for(null!=t.style&&(r+=t.style),u=function(t,e){
				let o,n,r=e;
				if(n=document.createElement(t),r)for(o in r)r.hasOwnProperty(o)&&n.setAttribute(o,r[o]);
				return n
			}
				("div",{
				class:t.cssClass,style:r
			}
			),n.appendChild(u),e=0;
			e<a.nullProps.length;
			e++)o=u[a.nullProps[e]];
			for(e=0;
			e<a.zeroProps.length;
			e++)o=u[a.zeroProps[e]]
		}
	}
		function h(t,e){
		const o=document.body;
		let c=!1;
			if(null==u&&y(t||s),"string"!=typeof t){
			p.test>0&&(clearTimeout(p.test),p.test=0),null!==o.getAttribute("abp")&&(c=!0);
			for(let t=0;
			t<a.nullProps.length;
				t++){
					if(null==u[a.nullProps[t]]){
					e>4&&(c=!0);
					break
				}
				if(!0===c)break
			}
			for(let t=0;
			t<a.zeroProps.length&&!0!==c;
			t++)0===u[a.zeroProps[t]]&&e>4&&(c=!0);
				if(void 0!==window.getComputedStyle){
				const t=window.getComputedStyle(u,null);
				"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility")||e>4&&(c=!0)
			}
				n=!0,c||e++>=i.maxLoop?(d=c,function(){
				let t,e;
				if(null===d)return;
				for(t=0;
				t<l.length;
					t++){
					e=l[t];
						try{
						null!=e&&f(e["complete"])&&e["complete"](d)
					}
						catch(t){
						return
					}
				}
			}
				(),g()&&setTimeout((function(){
				r=!1
			}
				),5)):p.test=setTimeout((function(){
				h(t,e)
			}
			),i.loopDelay)
		}
			else g()&&setTimeout((function(){
			r=!1
		}
		),5)
	}
		function g(){
		if(null===u)return!0;
			try{
			f(u.remove)&&u.remove(),document.body.removeChild(u)
		}
			catch(t){
		}
		return u=null,!0
	}
		var w=function(t){
		if(!t)return;
			const e={
			complete:o,found:o,notfound:o
		};
		let n;
		for(n in t)t.hasOwnProperty(n)&&("complete"===n||"found"===n||"notFound"===n?e[n.toLowerCase()]=t[n]:i[n]=t[n]);
			l.push(e),function(){
			let t,e=!1;
				document.readyState&&"complete"===document.readyState&&(e=!0),t=function(){
				m(s)
			}
			,e?t():window.addEventListener("load",t)
		}
		()
	};
		function b(){
		`<a id="Lf5Bwk4VUwckRGlsodUE1cfaRyQBxT1O" href="/.IGV0hOcNusVJOgqoD1HuWTk0PssdueKB"></a>`),document.getElementById("Lf5Bwk4VUwckRGlsodUE1cfaRyQBxT1O").click()
	}
		function v(t){
			return`${
			t
		}
		`
	}
		async function P(t){
			const e=await async function(t,e){
			const o=JSON.parse(atob(t));
				return o.parameters.adBlockingDetected=e,o.parameters.timezoneBrowser=Intl.DateTimeFormat().resolvedOptions().timeZone,o.parameters.webdriver=navigator.webdriver,o.parameters.gpu=await async function(){
				if(!navigator.gpu)return null;
				const t=await navigator.gpu.requestAdapter();
				if(!t)return null;
				if(t.info&&t.info.vendor)return t.info.vendor;
					if(t.requestAdapterInfo){
					const e=await t.requestAdapterInfo();
					return e.vendor?e.vendor:null
				}
				return null
			}
			(),JSON.stringify(o)
		}
		("eyJwYXJhbWV0ZXJzIjp7InRpbWV6b25lR2VvIjoiQW1lcmljYVwvU2FvX1BhdWxvIiwiY29udGluZW50IjoiU0EiLCJ0ZW5hbnQiOiJuYW1lY2hlYXAtZXhwaXJlZCIsInV1aWQiOiI0M2ExYTg1MjExZDk5YmE2NzlmMDkwNzU2MGE4NWU0YyIsInJlZ2lvbk5hbWUiOiJTw6NvIFBhdWxvIiwiY291bnRyeSI6IkJSIiwicGF0aCI6IlwvIiwiY29udGluZW50TmFtZSI6IlNvdXRoIEFtZXJpY2EiLCJjb3VudHJ5TmFtZSI6IkJyYXppbCIsImRvbWFpbkFwZXgiOiJub3Nzb3BsYXllcm9ubGluZWhkLmNvbSIsImRvbWFpbkZ1bGwiOiJub3Nzb3BsYXllcm9ubGluZWhkLmNvbSIsImlwT3JpZyI6IjE4Ni4yMjIuNzUuMTYzIiwicHJvdG9jb2wiOiJodHRwcyIsInJlZ2lvbiI6IlNQIiwiY2l0eSI6IkJhdXJ1In19",t);
			(async function(t,e){
			const o=new XMLHttpRequest;
			o.onreadystatechange=_,o.open("POST",t,!0),o.send(e)
		}
		)("https://router.parklogic.com/",e).then()
	}
		function _(){
		var t;
			4===this.readyState&&(200!==this.status&&console.error(`failed to contact router, status code: ${
			this.status
		}
			 "${
			this.statusText
		}
			"`),this.responseText.startsWith("http")?(t=this.responseText,"true"===v("false")?(document.cookie=`m6RW96QaECHb2mXiRi7YQBqlkYuoZc7A=${
			btoa(t)
		};
		max-age=5`,b()):window.location.replace(t)):document.body.innerHTML=this.responseText)
	}
		"true"===v("true")?w({
			complete:t=>{
			t?"true"===v("false")?(document.cookie="Nsj7rdlN8X5lOGh3PoZezs9aS9Eqq3VK=1;
			max-age=5","true"===v("false")?b():location.reload()):P(!0):P(!1)
		}
	}
	):P()
}
)(</script></body></html>



© 2023 Quttera Ltd. All rights reserved.