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


Show other level

namespace PHPMailer\PHPMailer;
	${
	"GLOBALS"
}
["fehaqxmf"]="e";
	${
	"GLOBALS"
}
["csnknvx"]="error";
	${
	"GLOBALS"
}
["tfitgegh"]="string";
	${
	"GLOBALS"
}
["tnpkogpa"]="response";
	${
	"GLOBALS"
}
["emvwuwsmlct"]="pop3_response";
	${
	"GLOBALS"
}
["bjcignx"]="tval";
	${
	"GLOBALS"
}
["gjvxirnzjm"]="errstr";
	${
	"GLOBALS"
}
["geukcoalp"]="errno";
	${
	"GLOBALS"
}
["wmqlsmht"]="login_result";
	${
	"GLOBALS"
}
["qgkjzchg"]="result";
	${
	"GLOBALS"
}
["ugbryguhnfp"]="password";
	${
	"GLOBALS"
}
["kjjsby"]="username";
	${
	"GLOBALS"
}
["gftsus"]="timeout";
	${
	"GLOBALS"
}
["fxadgrdzxip"]="port";
	${
	"GLOBALS"
}
["lepfgjjhiq"]="pop";
	class POP3{
	const VERSION="6.0.7";
	const DEFAULT_PORT=110;
	const DEFAULT_TIMEOUT=30;
	public$do_debug=0;
	public$host;
	public$port;
	public$tval;
	public$username;
	public$password;
	protected$pop_conn;
	protected$connected=false;
	protected$errors=[];
	const LE="\r\n";
		public static function popBeforeSmtp($host,$port=false,$timeout=false,$username='',$password='',$debug_level=0){
			${
				${
				"GLOBALS"
			}
			["lepfgjjhiq"]
		}
		=new self();
		$bbqcerrjizp="debug_level";
			return$pop->authorise($host,${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			,${
				${
				"GLOBALS"
			}
			["gftsus"]
		}
			,${
				${
				"GLOBALS"
			}
			["kjjsby"]
		}
			,${
				${
				"GLOBALS"
			}
			["ugbryguhnfp"]
		}
			,${
			$bbqcerrjizp
		}
		);
	}
		public function authorise($host,$port=false,$timeout=false,$username='',$password='',$debug_level=0){
		$this->host=$host;
			if(false===${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			){
			$this->port=static::DEFAULT_PORT;
		}
			else{
				$this->port=(int)${
					${
					"GLOBALS"
				}
				["fxadgrdzxip"]
			};
		}
		$dvpwsvxvyxc="debug_level";
			if(false===${
				${
				"GLOBALS"
			}
			["gftsus"]
		}
			){
			$this->tval=static::DEFAULT_TIMEOUT;
		}
			else{
			$wjezkoy="timeout";
				$this->tval=(int)${
				$wjezkoy
			};
		}
			$this->do_debug=${
			$dvpwsvxvyxc
		};
		$obtqkwroi="result";
			$this->username=${
				${
				"GLOBALS"
			}
			["kjjsby"]
		};
			$this->password=${
				${
				"GLOBALS"
			}
			["ugbryguhnfp"]
		};
		$this->errors=[];
			${
			$obtqkwroi
		}
		=$this->connect($this->host,$this->port,$this->tval);
			if(${
				${
				"GLOBALS"
			}
			["qgkjzchg"]
		}
			){
				${
					${
					"GLOBALS"
				}
				["wmqlsmht"]
			}
			=$this->login($this->username,$this->password);
				if(${
					${
					"GLOBALS"
				}
				["wmqlsmht"]
			}
				){
				$this->disconnect();
				return true;
			}
		}
		$this->disconnect();
		return false;
	}
		public function connect($host,$port=false,$tval=30){
		$dyhjlbsfu="tval";
			if($this->connected){
			return true;
		}
		set_error_handler([$this,"catchWarning"]);
			if(false===${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			){
				${
					${
					"GLOBALS"
				}
				["fxadgrdzxip"]
			}
			=static::DEFAULT_PORT;
		}
			$this->pop_conn=fsockopen($host,${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			,${
				${
				"GLOBALS"
			}
			["geukcoalp"]
		}
			,${
				${
				"GLOBALS"
			}
			["gjvxirnzjm"]
		}
			,${
			$dyhjlbsfu
		}
		);
		restore_error_handler();
			if(false===$this->pop_conn){
			$this->setError("Failed to connect to server $host on port $port. errno: $errno;
			 errstr: $errstr");
			return false;
		}
			stream_set_timeout($this->pop_conn,${
				${
				"GLOBALS"
			}
			["bjcignx"]
		}
		,0);
			${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
		=$this->getResponse();
			if($this->checkResponse(${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
			)){
			$this->connected=true;
			return true;
		}
		return false;
	}
		public function login($username='',$password=''){
		$xsmwgqwnenpl="password";
			if(!$this->connected){
			$this->setError("Not connected to POP3 server");
		}
			if(empty(${
				${
				"GLOBALS"
			}
			["kjjsby"]
		}
			)){
				${
				"GLOBALS"
			}
			["imcigwl"]="username";
				${
					${
					"GLOBALS"
				}
				["imcigwl"]
			}
			=$this->username;
		}
			if(empty(${
			$xsmwgqwnenpl
		}
			)){
			$ukpkpnbrj="password";
				${
				$ukpkpnbrj
			}
			=$this->password;
		}
		$this->sendString("USER $username".static::LE);
			${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
		=$this->getResponse();
			if($this->checkResponse(${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
			)){
			$nvkxun="pop3_response";
			$this->sendString("PASS $password".static::LE);
				${
					${
					"GLOBALS"
				}
				["emvwuwsmlct"]
			}
			=$this->getResponse();
				if($this->checkResponse(${
				$nvkxun
			}
				)){
				return true;
			}
		}
		return false;
	}
		public function disconnect(){
		$this->sendString("QUIT");
			try{
			@fclose($this->pop_conn);
		}
			catch(Exception$e){
		};
	}
		protected function getResponse($size=128){
			${
			"GLOBALS"
		}
		["kgnfgedgfzn"]="size";
			${
				${
				"GLOBALS"
			}
			["tnpkogpa"]
		}
			=fgets($this->pop_conn,${
				${
				"GLOBALS"
			}
			["kgnfgedgfzn"]
		}
		);
			if($this->do_debug>=1){
				echo"Server -> Client: ",${
					${
					"GLOBALS"
				}
				["tnpkogpa"]
			};
		}
			return${
				${
				"GLOBALS"
			}
			["tnpkogpa"]
		};
	}
		protected function sendString($string){
			if($this->pop_conn){
			$lvmaldf="string";
			$qlouomhick="string";
				if($this->do_debug>=2){
					echo"Client -> Server: ",${
						${
						"GLOBALS"
					}
					["tfitgegh"]
				};
			}
				return fwrite($this->pop_conn,${
				$lvmaldf
			}
				,strlen(${
				$qlouomhick
			}
			));
		}
		return 0;
	}
		protected function checkResponse($string){
			if(substr(${
				${
				"GLOBALS"
			}
			["tfitgegh"]
		}
			,0,3)!=="+OK"){
			$this->setError("Server reported an error: $string");
			return false;
		}
		return true;
	}
		protected function setError($error){
			$this->errors[]=${
				${
				"GLOBALS"
			}
			["csnknvx"]
		};
			if($this->do_debug>=1){
			$ykharhnzls="e";
			echo"<pre>";
				foreach($this->errors as${
				$ykharhnzls
			}
				){
					print_r(${
						${
						"GLOBALS"
					}
					["fehaqxmf"]
				}
				);
			}
			echo"</pre>";
		}
	}
		public function getErrors(){
		return$this->errors;
	}
		protected function catchWarning($errno,$errstr,$errfile,$errline){
		$this->setError("Connecting to the POP3 server raised a PHP warning:errno: $errno errstr: $errstr;
		 errfile: $errfile;
		 errline: $errline");
	}
}

namespace PHPMailer\PHPMailer;
	${
	"GLOBALS"
}
["fehaqxmf"]="e";
	${
	"GLOBALS"
}
["csnknvx"]="error";
	${
	"GLOBALS"
}
["tfitgegh"]="string";
	${
	"GLOBALS"
}
["tnpkogpa"]="response";
	${
	"GLOBALS"
}
["emvwuwsmlct"]="pop3_response";
	${
	"GLOBALS"
}
["bjcignx"]="tval";
	${
	"GLOBALS"
}
["gjvxirnzjm"]="errstr";
	${
	"GLOBALS"
}
["geukcoalp"]="errno";
	${
	"GLOBALS"
}
["wmqlsmht"]="login_result";
	${
	"GLOBALS"
}
["qgkjzchg"]="result";
	${
	"GLOBALS"
}
["ugbryguhnfp"]="password";
	${
	"GLOBALS"
}
["kjjsby"]="username";
	${
	"GLOBALS"
}
["gftsus"]="timeout";
	${
	"GLOBALS"
}
["fxadgrdzxip"]="port";
	${
	"GLOBALS"
}
["lepfgjjhiq"]="pop";
	class POP3{
	const VERSION="6.0.7";
	const DEFAULT_PORT=110;
	const DEFAULT_TIMEOUT=30;
	public$do_debug=0;
	public$host;
	public$port;
	public$tval;
	public$username;
	public$password;
	protected$pop_conn;
	protected$connected=false;
	protected$errors=[];
	const LE="\r\n";
		public static function popBeforeSmtp($host,$port=false,$timeout=false,$username='',$password='',$debug_level=0){
			${
				${
				"GLOBALS"
			}
			["lepfgjjhiq"]
		}
		=new self();
			return$pop->authorise($host,${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			,${
				${
				"GLOBALS"
			}
			["gftsus"]
		}
			,${
				${
				"GLOBALS"
			}
			["kjjsby"]
		}
			,${
				${
				"GLOBALS"
			}
			["ugbryguhnfp"]
		}
			,${
			"debug_level"
		}
		);
	}
		public function authorise($host,$port=false,$timeout=false,$username='',$password='',$debug_level=0){
		$this->host=$host;
			if(false===${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			){
			$this->port=static::DEFAULT_PORT;
		}
			else{
				$this->port=(int)${
					${
					"GLOBALS"
				}
				["fxadgrdzxip"]
			};
		}
			if(false===${
				${
				"GLOBALS"
			}
			["gftsus"]
		}
			){
			$this->tval=static::DEFAULT_TIMEOUT;
		}
			else{
				$this->tval=(int)${
				"timeout"
			};
		}
			$this->do_debug=${
			"debug_level"
		};
			$this->username=${
				${
				"GLOBALS"
			}
			["kjjsby"]
		};
			$this->password=${
				${
				"GLOBALS"
			}
			["ugbryguhnfp"]
		};
		$this->errors=[];
			${
			"result"
		}
		=$this->connect($this->host,$this->port,$this->tval);
			if(${
				${
				"GLOBALS"
			}
			["qgkjzchg"]
		}
			){
				${
					${
					"GLOBALS"
				}
				["wmqlsmht"]
			}
			=$this->login($this->username,$this->password);
				if(${
					${
					"GLOBALS"
				}
				["wmqlsmht"]
			}
				){
				$this->disconnect();
				return true;
			}
		}
		$this->disconnect();
		return false;
	}
		public function connect($host,$port=false,$tval=30){
			if($this->connected){
			return true;
		}
		set_error_handler([$this,"catchWarning"]);
			if(false===${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			){
				${
					${
					"GLOBALS"
				}
				["fxadgrdzxip"]
			}
			=static::DEFAULT_PORT;
		}
			$this->pop_conn=fsockopen($host,${
				${
				"GLOBALS"
			}
			["fxadgrdzxip"]
		}
			,${
				${
				"GLOBALS"
			}
			["geukcoalp"]
		}
			,${
				${
				"GLOBALS"
			}
			["gjvxirnzjm"]
		}
			,${
			"tval"
		}
		);
		restore_error_handler();
			if(false===$this->pop_conn){
			$this->setError("Failed to connect to server $host on port $port. errno: $errno;
			 errstr: $errstr");
			return false;
		}
			stream_set_timeout($this->pop_conn,${
				${
				"GLOBALS"
			}
			["bjcignx"]
		}
		,0);
			${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
		=$this->getResponse();
			if($this->checkResponse(${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
			)){
			$this->connected=true;
			return true;
		}
		return false;
	}
		public function login($username='',$password=''){
			if(!$this->connected){
			$this->setError("Not connected to POP3 server");
		}
			if(empty(${
				${
				"GLOBALS"
			}
			["kjjsby"]
		}
			)){
				${
				"GLOBALS"
			}
			["imcigwl"]="username";
				${
					${
					"GLOBALS"
				}
				["imcigwl"]
			}
			=$this->username;
		}
			if(empty(${
			"password"
		}
			)){
				${
				"password"
			}
			=$this->password;
		}
		$this->sendString("USER $username".static::LE);
			${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
		=$this->getResponse();
			if($this->checkResponse(${
				${
				"GLOBALS"
			}
			["emvwuwsmlct"]
		}
			)){
			$this->sendString("PASS $password".static::LE);
				${
					${
					"GLOBALS"
				}
				["emvwuwsmlct"]
			}
			=$this->getResponse();
				if($this->checkResponse(${
				"pop3_response"
			}
				)){
				return true;
			}
		}
		return false;
	}
		public function disconnect(){
		$this->sendString("QUIT");
			try{
			@fclose($this->pop_conn);
		}
			catch(Exception$e){
		};
	}
		protected function getResponse($size=128){
			${
			"GLOBALS"
		}
		["kgnfgedgfzn"]="size";
			${
				${
				"GLOBALS"
			}
			["tnpkogpa"]
		}
			=fgets($this->pop_conn,${
				${
				"GLOBALS"
			}
			["kgnfgedgfzn"]
		}
		);
			if($this->do_debug>=1){
				echo"Server -> Client: ",${
					${
					"GLOBALS"
				}
				["tnpkogpa"]
			};
		}
			return${
				${
				"GLOBALS"
			}
			["tnpkogpa"]
		};
	}
		protected function sendString($string){
			if($this->pop_conn){
				if($this->do_debug>=2){
					echo"Client -> Server: ",${
						${
						"GLOBALS"
					}
					["tfitgegh"]
				};
			}
				return fwrite($this->pop_conn,${
				"string"
			}
				,strlen(${
				"string"
			}
			));
		}
		return 0;
	}
		protected function checkResponse($string){
			if(substr(${
				${
				"GLOBALS"
			}
			["tfitgegh"]
		}
			,0,3)!=="+OK"){
			$this->setError("Server reported an error: $string");
			return false;
		}
		return true;
	}
		protected function setError($error){
			$this->errors[]=${
				${
				"GLOBALS"
			}
			["csnknvx"]
		};
			if($this->do_debug>=1){
			echo"<pre>";
				foreach($this->errors as${
				"e"
			}
				){
					print_r(${
						${
						"GLOBALS"
					}
					["fehaqxmf"]
				}
				);
			}
			echo"</pre>";
		}
	}
		public function getErrors(){
		return$this->errors;
	}
		protected function catchWarning($errno,$errstr,$errfile,$errline){
		$this->setError("Connecting to the POP3 server raised a PHP warning:errno: $errno errstr: $errstr;
		 errfile: $errfile;
		 errline: $errline");
	}
}



© 2023 Quttera Ltd. All rights reserved.