Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.218.61.200
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
wwwroot /
jdcpatala.org /
include /
[ HOME SHELL ]
Name
Size
Permission
Action
Khatauni_1.pdf
315.84
KB
-rw-r--r--
MainClass.php
13.17
KB
-rw-r--r--
MainClass11.php
12.75
KB
-rw-r--r--
config.php
182
B
-rw-r--r--
connection.php
179
B
-rw-r--r--
extra.php
2.23
KB
-rw-r--r--
footer.php
6.58
KB
-rw-r--r--
header.php
10.16
KB
-rw-r--r--
top_header.php
2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MainClass11.php
<?php ob_start(); session_start(); require_once("connection.php"); define('ENCRYPTION_KEY', 'd0a7e7997b6d5fcd55f4b5c32611b87cd923e88837b63bf2941ef819dc8ca282'); class MainClass{ private $connection; function __construct(){ $this->open_connection(); } public function open_connection(){ $this->connection=mysqli_connect(DB_SERVER,DB_USER,DB_PASS); if(!$this->connection){ die("sql server error".mysqli_error()); }else { $db_select=mysqli_select_db(DB_NAME,$this->connection); if(!$db_select) die("sql error".mysqli_error()); } } public function close_connection(){ if(isset($this->connection)){ mysqli_close($this->connection); unset($this->connection); } } public function query($sql){ $this->last_query=$sql; //mysqli_query("SET NAMES utf8"); $query=mysqli_query($sql,$this->connection); return $query; } public function fetch_array($res){ return mysqli_fetch_array($res); } public function real_escape($res){ return mysqli_real_escape_string($res); } public function remove_spec($res){ return preg_replace('/[^a-zA-Z0-9_ %\[\]\.\(\)%&-]/s', '', $res); } public function only_num($res){ $val=""; if(preg_replace("/[^0-9]/","",$res)==""){ $val=0; }else{ $val=preg_replace("/[^0-9]/","",$res); } return $val; } public function num_rows($res){ return mysqli_num_rows($res); } public function msg($msg){ echo $msg; } public function remoteFileExists($url) { $curl = curl_init($url); //don't fetch the actual page, you only want to check the connection is ok curl_setopt($curl, CURLOPT_NOBODY, true); //do request $result = curl_exec($curl); $ret = false; //if request did not fail if ($result !== false) { //if request was ok, check response code $statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ($statusCode == 200) { $ret = true; } } curl_close($curl); return $ret; } public function recaptcha($recaptcha){ $google_url="https://www.google.com/recaptcha/api/siteverify"; $ip=$_SERVER['REMOTE_ADDR']; $secret='6LdzXgYTAAAAABvIXs5J1v9hhWhC_kj9JhmdgHqf'; $url=$google_url."?secret=".$secret."&response=".$recaptcha."&remoteip=".$ip; $res=file_get_contents($url); $res= json_decode($res, true); return $res['success']; } function base_url($atRoot=FALSE, $atCore=FALSE, $parse=FALSE){ if (isset($_SERVER['HTTP_HOST'])) { $http = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http'; $hostname = $_SERVER['HTTP_HOST']; $dir = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']); $core = preg_split('@/@', str_replace($_SERVER['DOCUMENT_ROOT'], '', realpath(dirname(__FILE__))), NULL, PREG_SPLIT_NO_EMPTY); $core = $core[0]; $tmplt = $atRoot ? ($atCore ? "%s://%s/%s/" : "%s://%s/") : ($atCore ? "%s://%s/%s/" : "%s://%s%s"); $end = $atRoot ? ($atCore ? $core : $hostname) : ($atCore ? $core : $dir); $base_url = sprintf( $tmplt, $http, $hostname, $end ); } else $base_url = 'http://localhost/'; if ($parse) { $base_url = parse_url($base_url); if (isset($base_url['path'])) if ($base_url['path'] == '/') $base_url['path'] = ''; } return $base_url; } function doGeo($addr){ /*$addr=implode('%20',explode(" ",$addr)); $url = file_get_contents("http://api.geonames.org/searchJSON?q=$addr&maxRows=10&username=sandeep1024"); $ty=json_decode($url,true); $code=$ty['geonames']['0']['countryCode']; echo $f="http://ws.geonames.org/searchJSON?country=".$code."&name=$addr&maxRows=1&username=sandeep1024"; $url1 = file_get_contents($f); return json_decode($url1,true); */ $address=implode("+",explode(" ",$addr)); $url = "http://maps.google.com/maps/api/geocode/json?address=$address&sensor=false®ion=India"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_PROXYPORT, 3128); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $response = curl_exec($ch); curl_close($ch); $response_a = json_decode($response); return $response_a; } function distancetime($ad1,$ad2){ $or = implode('+',explode(" ",$ad1)); $des = implode('+',explode(" ",$ad2)); $url="http://maps.googleapis.com/maps/api/directions/json?origin=$or&destination=$des&alternatives=true&mode=driving&avoid=tolls,highways&sensor=false"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_PROXYPORT, 3128); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $response = curl_exec($ch); curl_close($ch); $response_a = json_decode($response); return $response_a; } function distance($lon1,$lat1, $lon2,$lat2,$unit) { $theta = $lon1 - $lon2; $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta)); $dist = acos($dist); $dist = rad2deg($dist); $miles = $dist * 60 * 1.1515; $unit = strtoupper($unit); if ($unit == "K") { return ($miles * 1.609344); } else if ($unit == "N") { return ($miles * 0.8684); } else { return $miles; } } function currency($from, $to, $amount){ $content = file_get_contents('http://www.google.com/finance/converter?a='.$amount.'&from='.$from.'&to='.$to); $doc = new DOMDocument; @$doc->loadHTML($content); $xpath = new DOMXpath($doc); $result = $xpath->query('//*[@id="currency_converter_result"]/span')->item(0)->nodeValue; return str_replace(' '.$to, '', $result); } public function get_client_ip() { $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); else if(getenv('HTTP_X_FORWARDED_FOR')) $ipaddress = getenv('HTTP_X_FORWARDED_FOR'); else if(getenv('HTTP_X_FORWARDED')) $ipaddress = getenv('HTTP_X_FORWARDED'); else if(getenv('HTTP_FORWARDED_FOR')) $ipaddress = getenv('HTTP_FORWARDED_FOR'); else if(getenv('HTTP_FORWARDED')) $ipaddress = getenv('HTTP_FORWARDED'); else if(getenv('REMOTE_ADDR')) $ipaddress = getenv('REMOTE_ADDR'); else $ipaddress = 'UNKNOWN'; return $ipaddress; } function getweather($location){ $content = file_get_contents('https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid%20from%20geo.places%281%29%20where%20text=%22'.$location.'%22%29&format=json'); $res1= json_decode($content, true); return $res1; } function getopenw($location){ $content=file_get_contents("http://api.openweathermap.org/data/2.5/weather?q=".$location."&mode=json"); $res2= json_decode($content, true); return $res2; } function gettimezone($lat,$lng){ $content = file_get_contents('http://api.geonames.org/timezoneJSON?lat='.$lat.'&lng='.$lng.'&username=sandeep1024'); $res2= json_decode($content, true); return $res2; } function randomPassword() { $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789"; $pass = array(); //remember to declare $pass as an array $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 8; $i++) { $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } return implode($pass); //turn the array into a string } function icsToArray($paramUrl) { $icsFile = file_get_contents($paramUrl); $icsData = explode("BEGIN:", $icsFile); foreach($icsData as $key => $value) { $icsDatesMeta[$key] = explode("\n", $value); } foreach($icsDatesMeta as $key => $value) { foreach($value as $subKey => $subValue) { if ($subValue != "") { if ($key != 0 && $subKey == 0) { $icsDates[$key]["BEGIN"] = $subValue; } else { $subValueArr = explode(":", $subValue, 2); $icsDates[$key][$subValueArr[0]] = $subValueArr[1]; } } } } return $icsDates; } // Encrypt Function function mc_encrypt($encrypt){ $encrypt = serialize($encrypt); $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_URANDOM); $key = pack('H*', ENCRYPTION_KEY); $mac = hash_hmac('sha256', $encrypt, substr(bin2hex($key), -32)); $passcrypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $encrypt.$mac, MCRYPT_MODE_CBC, $iv); $encoded = base64_encode($passcrypt).'|'.base64_encode($iv); return $encoded; } // Decrypt Function function mc_decrypt($decrypt){ $decrypt = explode('|', $decrypt.'|'); $decoded = base64_decode($decrypt[0]); $iv = base64_decode($decrypt[1]); if(strlen($iv)!==mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC)){ return false; } $key = pack('H*',ENCRYPTION_KEY); $decrypted = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $decoded, MCRYPT_MODE_CBC, $iv)); $mac = substr($decrypted, -64); $decrypted = substr($decrypted, 0, -64); $calcmac = hash_hmac('sha256', $decrypted, substr(bin2hex($key), -32)); if($calcmac!==$mac){ return false; } $decrypted = unserialize($decrypted); return $decrypted; } function getBrowser() { $u_agent = $_SERVER['HTTP_USER_AGENT']; $bname = 'Unknown'; $platform = 'Unknown'; $version= ""; //First get the platform? if (preg_match('/linux/i', $u_agent)) { $platform = 'linux'; } elseif (preg_match('/macintosh|mac os x/i', $u_agent)) { $platform = 'mac'; } elseif (preg_match('/windows|win32/i', $u_agent)) { $platform = 'windows'; } // Next get the name of the useragent yes seperately and for good reason if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) { $bname = 'Internet Explorer'; $ub = "MSIE"; } elseif(preg_match('/Firefox/i',$u_agent)) { $bname = 'Mozilla Firefox'; $ub = "Firefox"; } elseif(preg_match('/Chrome/i',$u_agent)) { $bname = 'Google Chrome'; $ub = "Chrome"; } elseif(preg_match('/Safari/i',$u_agent)) { $bname = 'Apple Safari'; $ub = "Safari"; } elseif(preg_match('/Opera/i',$u_agent)) { $bname = 'Opera'; $ub = "Opera"; } elseif(preg_match('/Netscape/i',$u_agent)) { $bname = 'Netscape'; $ub = "Netscape"; } // finally get the correct version number $known = array('Version', $ub, 'other'); $pattern = '#(?<browser>' . join('|', $known) . ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#'; if (!preg_match_all($pattern, $u_agent, $matches)) { // we have no matching number just continue } // see how many we have $i = count($matches['browser']); if ($i != 1) { //we will have two since we are not using 'other' argument yet //see if version is before or after the name if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){ $version= $matches['version'][0]; } else { $version= $matches['version'][1]; } } else { $version= $matches['version'][0]; } // check if we have a number if ($version==null || $version=="") {$version="?";} return array( 'userAgent' => $u_agent, 'name' => $bname, 'version' => $version, 'platform' => $platform, 'pattern' => $pattern ); } public function checkrand_($code){ if($this->num_row($this->query("select * from mem_register where sms_code='$code'"))>0){ $a=mt_rand(100000,999999); checkrand_($a); } return $code; } function iCalDateToUnixTimestamp($icalDate) { $icalDate = str_replace('T', '', $icalDate); $icalDate = str_replace('Z', '', $icalDate); $pattern = '/([0-9]{4})'; // 1: YYYY $pattern .= '([0-9]{2})'; // 2: MM $pattern .= '([0-9]{2})'; // 3: DD $pattern .= '([0-9]{0,2})'; // 4: HH $pattern .= '([0-9]{0,2})'; // 5: MM $pattern .= '([0-9]{0,2})/'; // 6: SS preg_match($pattern, $icalDate, $date); // Unix timestamp can't represent dates before 1970 if ($date[1] <= 1970) { return false; } // Unix timestamps after 03:14:07 UTC 2038-01-19 might cause an overflow // if 32 bit integers are used. $timestamp = mktime((int)$date[4], (int)$date[5], (int)$date[6], (int)$date[2], (int)$date[3], (int)$date[1]); return $timestamp; } } $db=new MainClass(); ?>
Close