vinissh

Whois with PHP

Jan 21st, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <html>
  2.  
  3.  <?php
  4.         $domain = $_GET["dominio"];
  5.         $protect = explode(" ", $domain);
  6.         if(in_array("&&", $protect) || in_array("rm", $protect)){
  7.                 echo "erro!";
  8.         }else{
  9.                 $cmd = "whois ".$domain;
  10.                 $whois = shell_exec ($cmd);
  11.         }
  12.  ?>
  13.  <pre>
  14.         <?php echo $whois; ?>
  15.  </pre>
  16.  
  17.  
  18. </html>
Advertisement
Add Comment
Please, Sign In to add comment