PHP code example of herzcthu / laravel-nmap

1. Go to this page and download the library: Download herzcthu/laravel-nmap library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

herzcthu / laravel-nmap example snippets


$help = new LaravelNmap();
$help->NmapHelp();

$nmap = new LaravelNmap();
$nmap->verbose();

$nmap->detectOS();

$nmap->getServices();

$nmap->disablePortScan();

$nmap->scanPorts('22,80,443');

$nmap->setTarget('192.168.43.0/24');

$nmap->getRawOutput();
$nmap->getXmlObject();
$nmap->getArray();

$nmap = new LaravelNmap(true);

$nmap->setTimeout('300');