Skip to content

Commit 9239bf0

Browse files
author
Thomas Kapoulas
committed
added IPv6 support
1 parent 867b5a6 commit 9239bf0

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

index.php

+20-10
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,32 @@
77
?>
88
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="el" xml:lang="el">
99
<head>
10-
<META AUTHOR="Periklis Ntanasis a.k.a. Master_ex">
10+
<META AUTHOR="Periklis Ntanasis a.k.a. Master_ex && Thomas Kapoulas a.k.a. tomkap">
1111
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
12-
<meta name="keywords" content="traceroute ping nslookup foss aueb" />
13-
<meta name="description" content="free online network tools by foss.aueb" />
12+
<meta name="keywords" content="traceroute ping nslookup foss teimes ipv4 ipv6" />
13+
<meta name="description" content="free online network tools by foss.teimes" />
1414
<meta name="distribution" content="global" />
15-
<title>foss.aueb.gr &bull; Network Tools</title>
15+
<title>foss.tesyd.teimes.gr &bull; Network Tools</title>
1616
<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
17-
<link rel="shortcut icon" href="http://foss.aueb.gr/forum/images/favicon.ico" type="image/x-icon" />
17+
<link rel="shortcut icon" href="http://foss.tesyd.teimes.gr/favicon.ico" type="image/x-icon" />
1818
</head>
19-
<center><a href="http://foss.aueb.gr/" target="_blank"><img style="border-style: none" align="left" src="http://foss.aueb.gr/forum/styles/maxthon/imageset/penguin_logo-shadowed.png" /></a><font size=6><b>FOSS AUEB - Network Tools</b></font></center>
20-
<h5> Κοινότητα Ελεύθερου Λογισμικού και Λογισμικού Ανοιχτού Κώδικα Οικονομικού Πανεπιστημίου Αθηνών<br/>Free and Open Source Software Community of Athens University of Economics and Business</h5>
19+
<center><a href="http://foss.aueb.gr/" target="_blank"><img style="border-style: none" align="left" src="http://foss.tesyd.teimes.gr/favicon.png" /></a><font size=6><b>FOSS AUEB - Network Tools</b></font></center>
20+
<h5> Κοινότητα Ελεύθερου Λογισμικού και Λογισμικού Ανοιχτού Κώδικα ΤΕΙ Μεσολογγίου<br/>Free and Open Source Software Community of TEI of Messolonghi</h5>
2121
</br>
2222
<body>
2323
<form name="input" action="index.php" method="get">
2424
<select name="servise">
2525
<option value="traceroute">traceroute</option>
26+
<option value="traceroute6">traceroute (IPv6)</option>
2627
<option value="ping">ping</option>
28+
<option value="ping6">ping (IPv6)</option>
2729
<option value="nslookup">nslookup</option>
2830
</select>
2931
IP ADDRESS:
3032
<input type="text" name="address" />
3133
<input type="submit" name ="submit" value="Submit" />
3234
</form>
33-
<font size=1>IPv4 address examle : www.google.com or google.com or 209.85.129.99 - don't use 'http://' prefix </font>
35+
<font size=1>IPv4/IPv6 address example : www.google.com or google.com or 209.85.129.99 or 2a00:1450:4009:804::1003 - don't use 'http://' prefix </font>
3436
<hr>
3537
<?php
3638
if(isset($_GET['submit']))
@@ -52,10 +54,18 @@
5254
{
5355
exec("ping '".escapeshellcmd($address)."' -c 4",$results);
5456
}
57+
if($servise=="ping6")
58+
{
59+
exec("ping6 '".escapeshellcmd($address)."' -c 4",$results);
60+
}
5561
if($servise=="traceroute")
5662
{
5763
exec("traceroute '".escapeshellcmd($address)."'",$results);
5864
}
65+
if($servise=="traceroute6")
66+
{
67+
exec("traceroute6 '".escapeshellcmd($address)."'",$results);
68+
}
5969
if($servise=="nslookup")
6070
{
6171
exec("nslookup '".escapeshellcmd($address)."'",$results);
@@ -73,8 +83,8 @@
7383
}
7484
?>
7585
<center>
76-
<? readfile("../services.html"); ?><br/>
77-
<span style="font-family: sans-serif; text-decoration: none; font-size: 10px;">Powered by <a href="http://foss.aueb.gr">foss.aueb.gr</a> <(' )</span><br/>
86+
<br/>
87+
<span style="font-family: sans-serif; text-decoration: none; font-size: 10px;">Powered by <a href="http://foss.tesyd.teimes.gr">foss.tesyd.teimes.gr</a> <(' )</span><br/>
7888
</center>
7989
</body>
8090
</html>

0 commit comments

Comments
 (0)