Porter scanner : System Command « Development « PHP






Porter scanner

<?php
   $target = "www.java2s.com";
   echo "<pre>";
      system("/usr/bin/nmap $target");
   echo "</pre>";

   // Kill the task
   system("killall -q nmap");
?>


           
       








Related examples in the same category

1.Ping server
2.Execute shell command 'dir'
3.Ping command
4.Execute help command and check its output
5.Using exec() to Produce a Directory Listing
6.Calling the man Command
7.Using popen() to Read the Output of the UNIX who Command
8.Using popen() to Pass Data to the column Application