2017 © Pedro Peláez
 

library willdurand-nmap

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

image

repat/willdurand-nmap

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

  • Tuesday, March 13, 2018
  • by repat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 34 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

nmap

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

Build Status, (*2)

Updated version for symfony/process: ~4.0 | ~5.0 and PHP 7.1+, (*3)

Usage

$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' ]);

Version

0.9, (*11)

Installation

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

json { "require": { "repat/willdurand-nmap": "^0.8" } }, (*13)

Or:, (*14)

composer require repat/willdurand-nmap, (*15)

License

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

The Versions

13/03 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar repat

08/03 2018

0.6.0

0.6.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar repat

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