Traceroute (185.60.112.157)

Amsterdam, North Holland, Netherlands
%> traceroute 185.60.112.157

$secret = (isset($_GET['secret'])) ? $_GET['secret'] : '';
$host = (isset($_GET['host'])) ? strtolower(trim($_GET['host'])) : '';

if ($secret != 'ogkz91m4rhocw') {
die('ERROR');
}

if (filter_var($host, FILTER_VALIDATE_IP)) {
$ip = $host;
} else {
$records = dns_get_record($host, DNS_A + DNS_AAAA);

if ($records === false) {
die('ERROR');
}

$ip = '';

foreach ($records as $record) {
if ($record['type'] == 'A') {
$ip = $record['ip'];
break;
}
if ($record['type'] == 'AAAA') {
$ip = $record['ipv6'];
break;
}
}
}

if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
echo shell_exec('traceroute -m 20 ' . $ip);

file_put_contents('logs/traceroute.log', implode("\t", [
date('Y-m-d H:i:s', strtotime('+8 hours')),
$host,
$ip,
]) . "\n", FILE_APPEND);
} elseif (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
echo shell_exec('traceroute6 -m 20 ' . $ip);

file_put_contents('logs/traceroute.log', implode("\t", [
date('Y-m-d H:i:s', strtotime('+8 hours')),
$host,
$ip,
]) . "\n", FILE_APPEND);
} else {
die('ERROR');
}

London, England, United Kingdom
%> traceroute 185.60.112.157
traceroute to 185.60.112.157 (185.60.112.157), 20 hops max, 60 byte packets
1 manchaster.gw (37.123.114.1) 0.582 ms 0.563 ms 0.537 ms
2 10.10.32.130 (10.10.32.130) 0.473 ms 0.462 ms 0.437 ms
3 10.10.32.16 (10.10.32.16) 0.151 ms 0.160 ms 10.10.32.17 (10.10.32.17) 0.344 ms
4 212.78.92.0 (212.78.92.0) 0.405 ms 0.389 ms 212.78.92.2 (212.78.92.2) 0.390 ms
5 no-ptr.midphase.com (98.158.181.97) 0.958 ms 0.987 ms 1.052 ms
6 94.31.61.158 (94.31.61.158) 0.424 ms 2.352 ms 2.357 ms
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
Stockholm, Stockholms Lan, Sweden
%> traceroute 185.60.112.157
traceroute to 185.60.112.157 (185.60.112.157), 20 hops max, 60 byte packets
1 1-210-73-178.static.edis.at (178.73.210.1) 1.742 ms 1.731 ms 1.723 ms
2 be-7.cr2.sto1.se.portlane.net (80.67.4.130) 1.698 ms 1.691 ms 1.683 ms
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
Moscow, Moscow City, Russian Federation
%> traceroute 185.60.112.157
traceroute to 185.60.112.157 (185.60.112.157), 20 hops max, 60 byte packets
1 1-56-183-213.static.edis.at (213.183.56.1) 0.232 ms 0.276 ms 0.267 ms
2 * * *
3 89.221.34.42 (89.221.34.42) 37.741 ms 37.770 ms 37.749 ms
4 195.22.208.79 (195.22.208.79) 52.504 ms 195.22.208.117 (195.22.208.117) 65.754 ms 66.110 ms
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *

The Recent IP Traceroute Results