|
| 1 | +<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="el" xml:lang="el"> |
| 2 | +<head> |
| 3 | +<META AUTHOR="Periklis Ntanasis a.k.a. Master_ex"> |
| 4 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
| 5 | +<meta name="keywords" content="traceroute ping nslookup foss aueb" /> |
| 6 | +<meta name="description" content="free online network tools by foss.aueb" /> |
| 7 | +<meta name="distribution" content="global" /> |
| 8 | +<title>foss.aueb.gr • Network Tools</title> |
| 9 | +<link rel="icon" href="images/favicon.ico" type="image/x-icon" /> |
| 10 | +<link rel="shortcut icon" href="http://foss.aueb.gr/forum/images/favicon.ico" type="image/x-icon" /> |
| 11 | +</head> |
| 12 | +<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> |
| 13 | +<h5> Κοινότητα Ελεύθερου Λογισμικού και Λογισμικού Ανοιχτού Κώδικα Οικονομικού Πανεπιστημίου Αθηνών<br/>Free and Open Source Software Community of Athens University of Economics and Business</h5> |
| 14 | +</br> |
| 15 | +<body> |
| 16 | +<form name="input" action="index.php" method="get"> |
| 17 | +<select name="servise"> |
| 18 | +<option value="traceroute">traceroute</option> |
| 19 | +<option value="ping">ping</option> |
| 20 | +<option value="nslookup">nslookup</option> |
| 21 | +</select> |
| 22 | +IP ADDRESS: |
| 23 | +<input type="text" name="address" /> |
| 24 | +<input type="submit" name ="submit" value="Submit" /> |
| 25 | +</form> |
| 26 | +<font size=1>IPv4 address examle : www.google.com or google.com or 209.85.129.99 - don't use 'http://' prefix </font> |
| 27 | +<hr> |
| 28 | +<?php |
| 29 | +if(isset($_GET['submit'])) |
| 30 | +{ |
| 31 | + $servise = trim($_GET['servise']); |
| 32 | + $address = trim($_GET['address']); |
| 33 | + if( |
| 34 | + (strpos($address,';')>0) |
| 35 | + || (strpos($address,'|')>0) |
| 36 | + || (strpos($address,'\\')>0) |
| 37 | + || (strpos($address,'/')>0) |
| 38 | + || (strpos($address,'>')>0) |
| 39 | + || (strpos($address,'<')>0) |
| 40 | + || (strpos($address,'|')===0) |
| 41 | + || (strpos($address,';')===0) |
| 42 | + || (strpos($address,'\\')===0) |
| 43 | + || (strpos($address,'/')===0) |
| 44 | + || (strpos($address,'>')===0) |
| 45 | + || (strpos($address,'<')===0) ) |
| 46 | + { |
| 47 | + echo "Don't be naughty!"; |
| 48 | + exit(); |
| 49 | + } |
| 50 | + if($servise=="ping") |
| 51 | + { |
| 52 | + exec("ping ".$address." -c 4",$results); |
| 53 | + } |
| 54 | + if($servise=="traceroute") |
| 55 | + { |
| 56 | + exec("traceroute ".$address,$results); |
| 57 | + } |
| 58 | + if($servise=="nslookup") |
| 59 | + { |
| 60 | + exec("nslookup ".$address,$results); |
| 61 | + } |
| 62 | + foreach($results as $result) |
| 63 | + { |
| 64 | + echo $result; |
| 65 | + echo "</br>"; |
| 66 | + } |
| 67 | + if($results == null) |
| 68 | + { |
| 69 | + echo "Address format error or address doesn't exist"; |
| 70 | + } |
| 71 | + echo "<hr>"; |
| 72 | +} |
| 73 | +?> |
| 74 | +<center> |
| 75 | +<? readfile("../services.html"); ?><br/> |
| 76 | +<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/> |
| 77 | +</center> |
| 78 | +</body> |
| 79 | +</html> |
0 commit comments