$traces = array( "http://p10072248.pureserver.de/trace.php?" => "AS8560 Puretec (Germany)", "http://www.susi.de/home/tino/trace.php?" => "AS8741 ECORE (Germany, Augsburg)", #"http://don.quixote.geht.net/trace.php?" => "AS12458 Telequest (AS12458 eBone)", #"http://nostradamus.geht.net/trace.php?" => "AS12657 Online-Kiosk", #"http://pandora.geht.net/trace.php?src=0&" => "AS15671 SKYTEC AG (AS15671 Completel)", #"http://pandora.geht.net/trace.php?src=1&" => "AS20600 SKYTEC AG", ""); function uot($s) { echo rawurlencode($s); } function out($s) { echo htmlentities($s); } function selected($x) { if ($x) echo " selected"; } $u="ip=".rawurlencode($ip); if ($ip=="") $ip=$REMOTE_ADDR; $oip=$ip; if ($ip!=escapeshellcmd($ip)) $ip="invalid"; $mu=""; $m=substr($mode,0,1); if ($m>="0" && $m<="9") $u.="&mode=$m"; else $m=""; $f = popen("dnsresolve.sh $ip", "r"); for ($l=array(); !feof($f); ) if ($s=trim(fgets($f,100))) $l[]=$s; pclose($f); ?>
All (currently active) traceroutes provided by me:
|
|
resolves to: if ($m!="") $m="-m $m"; reset($l); while (list($k,$v)=each($l)) echo " $v\n"; reset($l); while (list($k,$v)=each($l)) { echo "[ready]
"; flush(); $f=popen("traceroute.sh -n $m $v", "r"); while ($s=fgets($f, 40)) { print($s); flush(); } pclose($f); } ?>