Save
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
require_once __DIR__ . '/support/bootstrap.php';
|
||||
use Respect\Validation\Validator as v;
|
||||
use yzh52521\EasyHttp\Response;
|
||||
|
||||
|
||||
use GeoIp2\Database\Reader;
|
||||
#$reader = new Reader(base_path().'/geoip/GeoLite2-ASN/GeoLite2-ASN.mmdb');
|
||||
#$reader = new Reader(base_path().'/geoip/GeoLite2-City/GeoLite2-City.mmdb');
|
||||
|
||||
#$record = $reader->city('222.65.176.1');
|
||||
|
||||
#print_r($record);
|
||||
|
||||
/**
|
||||
use support\Redis;
|
||||
$redis = Redis::connection('default');
|
||||
|
||||
#$redis->hset('User','admin',json_encode(['account' => 'admin', 'email' => 'admin@admin.com', 'passwd' => hash("sha256", 'admin123456'), 'name' => '管理员']));
|
||||
|
||||
var_dump($redis->hget('User','enoch'));
|
||||
**/
|
||||
#$contenttype=v::ip()->validate('fe8::x');
|
||||
#var_dump(gethostbyaddr('119.29.29.29'));
|
||||
|
||||
|
||||
$whois = Http::get('https://api.devopsclub.cn/api/whoisquery?type=json&standard=true', ['domain' => "$content"])
|
||||
#$whois = json_decode($whois);
|
||||
print_r($whois);
|
||||
?>
|
||||
Reference in New Issue
Block a user