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


var _0xae36=["a[role=link][tabindex='0']>img","querySelector","img[draggable=false]","querySelectorAll","stories","indexOf","location","video","alt","length","script","createElement","innerText"," document.head.setAttribute('SSvideoURL','null');
 videos = document.querySelectorAll('video');
 videoUrl = null;
 for (var i=videos.length - 1;
i >= 0;
	i--) {
	 var reactKey = '';
	 keys = Object.keys(videos[i]);
	 for (var j=0;
	j<keys.length;
		j++) {
			 if (keys[j].indexOf ('__reactFiber') != -1) {
			 reactKey = keys[j].split('__reactFiber')[1];
			 break;
			 
		}
		 
	}
		 try {
		 videoUrl = videos[i].parentElement.parentElement.parentElement.parentElement['__reactProps'+reactKey].children[0].props.children.props.implementations[1].data.hdSrc;
		 
	}
		 catch (e){
		 
	}
		 if (videoUrl == null){
			 try {
			 videoUrl = videos[i].parentElement.parentElement.parentElement.parentElement['__reactProps'+reactKey].children[0].props.children.props.implementations[1].data.sdSrc;
			 
		}
			 catch (e){
			 
		}
		 
	}
		 if (videoUrl == null){
			 try {
			 videoUrl = videos[i].parentElement.parentElement.parentElement.parentElement['__reactProps'+reactKey].children.props.children.props.implementations[1].data.hdSrc;
			 
		}
			 catch (e){
			 
		}
		 
	}
		 if (videoUrl == null){
			 try {
			 videoUrl = videos[i].parentElement.parentElement.parentElement.parentElement['__reactProps'+reactKey].children.props.children.props.implementations[1].data.sdSrc;
			 
		}
			 catch (e){
			 
		}
		 
	}
		 if (videoUrl == null){
			 try {
			 videoUrl = videos[i]['__reactFiber'+reactKey].return.stateNode.props.videoData.$1.hd_src;
			 
		}
			 catch (e){
			 
		}
		 
	}
		 if (videoUrl == null){
			 try {
			 videoUrl = videos[i]['__reactFiber'+reactKey].return.stateNode.props.videoData.$1.sd_src;
			 
		}
			 catch (e){
			 
		}
		 
	}
	 if (videoUrl != null) break;
	 
}
 document.head.setAttribute('SSvideoURL',videoUrl);
","append","head","SSvideoURL","getAttribute","null","facebook","sendMessage","runtime","src"];
var profile_pic=document[_0xae36[1]](_0xae36[0]);
var story=document[_0xae36[3]](_0xae36[2]);
	if(profile_pic!= null&& top[_0xae36[6]].toString()[_0xae36[5]](_0xae36[4])!=  -1){
	let videos=document[_0xae36[3]](_0xae36[7]);
	let username=profile_pic[_0xae36[8]];
		if(videos[_0xae36[9]]> 0){
		let script=document[_0xae36[11]](_0xae36[10]);
			script[_0xae36[12]]= `${
			_0xae36[13]
		}
		`;
		document[_0xae36[15]][_0xae36[14]](script);
			setTimeout(()=>{
			let _0xb8e5x6=document[_0xae36[15]][_0xae36[17]](_0xae36[16]);
				if(_0xb8e5x6== _0xae36[18]){
				savePhotoStory()
			}
				else {
					chrome[_0xae36[21]][_0xae36[20]](null,{
					site:_0xae36[19],username:username,url:_0xb8e5x6
				}
				)
			}
		}
		,300)
	}
		else {
		savePhotoStory()
	}
}
	else {
		chrome[_0xae36[21]][_0xae36[20]](null,{
		noData:true
	}
	)
};
	function savePhotoStory(){
	story= story[story[_0xae36[9]]- 1];
	let _0xb8e5x8=story[_0xae36[22]];
	let username=profile_pic[_0xae36[8]];
		chrome[_0xae36[21]][_0xae36[20]](null,{
		site:_0xae36[19],username,url
	}
	)
}



© 2023 Quttera Ltd. All rights reserved.