Exemplo n.º 1
0
 public function testNmapHelp()
 {
     $nmap = new Nmap();
     $help = $nmap->NmapHelp();
     //echo "*** This help is run without root permission ***\n";
     //echo $help;
     //echo "\n*** End help ***\n\n\n";
 }
Exemplo n.º 2
0
 public function testgetXmlObject()
 {
     /*
      * Set true to get root permission if php user is in sudo group
      */
     $nmap = new Nmap();
     $xml = $nmap->detectOS()->setTarget('172.16.25.203')->setTimeout('1200')->getArray();
     echo "\n*** This function run with root permission \n*** if php user is in sudo group.\n*** If not, run in normal user ***\n";
     var_dump($xml);
     echo "\n*** end xml output test***\n";
 }