Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. $ip = $_POST['ip'];
  3. $output = shell_exec('ping -c 1 '.$ip);
  4. echo "<pre>$output</pre>";
  5. echo $ip;
  6. ?>
  7.  
  8.  
  9. <html>
  10. <head>Ping tool </head>
  11. <body>
  12. <form method="post">
  13. <input type="text" name="ip" value="ip"><br>
  14. <input type="submit" value="submit">
  15. </form>
  16. </body>
  17. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement