403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/usagrantapplication.org/abot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/usagrantapplication.org/abot/ua.php
<?
function getUserAgent() 
{ 
    $u_agent = $_SERVER['HTTP_USER_AGENT']; 
    $bname = 'Unknown';
    $platform = 'Unknown';
    $version= "";
    if(preg_match('/linux/i', $u_agent)) 
	{
        $platform = 'linux';
    }
    else if(preg_match('/macintosh|mac os x/i', $u_agent)) 
	{
        $platform = 'mac';
    }
    else if(preg_match('/windows|win32/i', $u_agent)) 
	{
        $platform = 'windows';
    }
    if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) 
    { 
        $bname = 'Internet Explorer'; 
        $ub = "MSIE"; 
    } 
    else if(preg_match('/Firefox/i',$u_agent)) 
    { 
        $bname = 'Mozilla Firefox'; 
        $ub = "Firefox"; 
    } 
    else if(preg_match('/Chrome/i',$u_agent)) 
    { 
        $bname = 'Google Chrome'; 
        $ub = "Chrome"; 
    } 
    else if(preg_match('/Safari/i',$u_agent)) 
    { 
        $bname = 'Apple Safari'; 
        $ub = "Safari"; 
    } 
    else if(preg_match('/Opera/i',$u_agent)) 
    { 
        $bname = 'Opera'; 
        $ub = "Opera"; 
    } 
    else if(preg_match('/Netscape/i',$u_agent)) 
    { 
        $bname = 'Netscape'; 
        $ub = "Netscape"; 
    }
    $known = array('Version', $ub, 'other');
    $pattern = '#(?<browser>' . join('|', $known) . ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';
    if (!preg_match_all($pattern, $u_agent, $matches)) 
	{
		
    }
    $i = count($matches['browser']);
    if($i != 1) 
	{
        if(strripos($u_agent, "Version") < strripos($u_agent,$ub))
		{
            $version = $matches['version'][0];
        }
        else 
		{
            $version = $matches['version'][1];
        }
    }
    else 
	{
        $version= $matches['version'][0];
    }
    if($version == NULL || $version == "") 
	{
		$version = "?";
	}
    $ua = array(
        'userAgent' => $u_agent,
        'name'      => $bname,
        'version'   => $version,
        'platform'  => $platform,
        'pattern'   => $pattern
    );
    return $ua;
} 

$ua = array();
$ua = getUserAgent();
if(!function_exists('mobile'))
{
	function mobile($USERAGENT)  
	{
		if (preg_match("/mobile|android|blackberry|iphone|windows phone|tablet|ipad|playbook|opera mini/", strtolower($USERAGENT))) 
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}	
if(mobile($ua['userAgent'])) 
{
	if(preg_match('/blackberry/', strtolower($ua['userAgent'])))
	{
		$device = "blackberry";
		$phone = true;
		$tablet = false;
		$scale = 1;
	}
	else if(preg_match('/playbook/', strtolower($ua['userAgent'])))
	{
		$device = "tablet";
		$phone = false;
		$tablet = true;
		$scale = 1;
	}
	else if(preg_match('/tablet/', strtolower($ua['userAgent'])))
	{
		$device = "tablet";
		$phone = false;
		$tablet = true;
		$scale = 1;
	}
	else if(preg_match('/android/', strtolower($ua['userAgent'])))
	{
		$device = "android";
		$phone = true;
		$tablet = false;
		$scale = 1;
	}
	else if(preg_match('/iphone/', strtolower($ua['userAgent'])))
	{
		$device = "iphone";
		$phone = true;
		$tablet = false;
		$scale = 1;
	}
	else if(preg_match('/ipad/', strtolower($ua['userAgent'])))
	{				
		$device = "ipad";
		$phone = false;
		$tablet = true;
		$scale = 1;
	}
} 
else 
{
	$mobile = false;
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit