Il seguente “spezzone” di codice in linguaggio in PHP può essere utilizzato per eseguire un Tracert (traceroute) da una pagina PHP
Lo script utilizza la funzione SYSTEM
<html>
<p align="center"><b>Indirizzo IP o nome dominio</b><br>
</p>
<form method="post" action="tracert.php?ping=ok">
<p align="center">
<input type="text" name="ip_dominio">
<input type="submit" value="Tracert">
</p>
</form>
<textarea rows="3335" name="Value" cols="109">
<?php
$ip_dominio = $_POST["ip_dominio"];
if ($_GET["ping"] == "ok")
{
$risposta = system("traceroute $ip_dominio");
//echo $risposta;
}
?>
</textarea>
</html>
Altri script in PHP che potrebbero interessarti :
- Server Management Tools: Gestire i Server da Azure
- Partecipa al DevOpsHeroes
- Ubuntu: Deploy Docker
- Annunciati Windows Server 2016 e System Center 2016
- ERROR: Module php5.6 does not exist!
- L’installazione di PHP non ha l’estensione MySQL necessaria per utilizzare WordPress.
- Installare PHP 5.6 su Ubuntu 16.04 LTS
- Annunciati Windows Server 2016 e System Center 2016
- Ubuntu: Deploy Docker
- Partecipa al DevOpsHeroes
- Server Management Tools: Gestire i Server da Azure
- [Tools] – Cloud9
- Generare un numero RANDOM senza duplicato
- Pastebin – Invio di Codice Sorgente…
- [PHP] Eseguire un Traceroute da PHP
- [PHP] Eseguire un PING da PHP
- Sessione Php con Indirizzo (Url) della pagina Corrente
- PHP – Indirizzo Completo della pagina Attuale
- Redirect con PHP in base al BROWSER
- La direttiva $cfg[‘PmaAbsoluteUri’] DEVE essere impostata nel file di configurazione!
- Client does not support authentication protocol
Fonti : Eseguire un Traceroute da PHP, Traceroute da PHP, esempio Traceroute da PHP, Eseguire un tracert da PHP, Tracert con PHP, Traceroute con PHP, script per Eseguire un Traceroute da PHP