2017 © Pedro Peláez
 

library nmap

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

image

willdurand/nmap

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  • Tuesday, March 13, 2018
  • by couac
  • Repository
  • 16 Watchers
  • 100 Stars
  • 4,150 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 34 Forks
  • 7 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

nmap

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration., (*1)

Build Status, (*2)

Usage

use Nmap\Nmap;, (*3)

$hosts = Nmap::create()->scan([ 'williamdurand.fr' ]);

$ports = $hosts->getOpenPorts();

You can specify the ports you want to scan:, (*4)

``` php $nmap = new Nmap();, (*5)

$nmap->scan([ 'williamdurand.fr' ], [ 21, 22, 80 ]);, (*6)


**OS detection** and **Service Info** are disabled by default, if you want to enable them, use the `enableOsDetection()` and/or `enableServiceInfo()` methods: ``` php $nmap ->enableOsDetection() ->scan([ 'williamdurand.fr' ]); $nmap ->enableServiceInfo() ->scan([ 'williamdurand.fr' ]); // Fluent interface! $nmap ->enableOsDetection() ->enableServiceInfo() ->scan([ 'williamdurand.fr' ]);

Turn the verbose mode by using the enableVerbose() method:, (*7)

``` php $nmap ->enableVerbose() ->scan([ 'williamdurand.fr' ]);, (*8)


For some reasons, you might want to disable port scan, that is why **nmap** provides a `disablePortScan()` method: ``` php $nmap ->disablePortScan() ->scan([ 'williamdurand.fr' ]);

You can also disable the reverse DNS resolution with disableReverseDNS():, (*9)

``` php $nmap ->disableReverseDNS() ->scan([ 'williamdurand.fr' ]);, (*10)


You can define the process timeout (default to 60 seconds) with `setTimeout()`: ``` php $nmap ->setTimeout(120) ->scan([ 'williamdurand.fr' ]);

Installation

The recommended way to install nmap is through Composer:, (*11)

{
    "require": {
        "willdurand/nmap": "@stable"
    }
}

Or:, (*12)

composer require willdurand/nmap, (*13)

Protip: you should browse the willdurand/nmap page to choose a stable version to use, avoid the @stable meta constraint., (*14)

License

nmap is released under the MIT License. See the bundled LICENSE file for details., (*15)

The Versions

13/03 2018

dev-master

9999999-dev

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/05 2017

0.5.0

0.5.0.0

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2017

v0.4.0

0.4.0.0

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires

14/10 2015

v0.3.0

0.3.0.0

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/03 2015

v0.2.0

0.2.0.0

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/08 2014

v0.1.0

0.1.0.0

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/11 2013

v0.0.2

0.0.2.0

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/11 2013

v0.0.1

0.0.1.0

nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.

  Sources   Download

MIT

The Requires

 

The Development Requires