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

guisehn/willdurand-nmap

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

  • Saturday, May 19, 2018
  • by guisehn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 34 Forks
  • 0 Open issues
  • 10 Versions
  • 100 % Grown

The README.md

nmap

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

Build
Status, (*2)

Usage

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

$ports = $hosts->getOpenPorts();

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

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

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


**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:, (*6)

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


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():, (*8)

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


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:, (*10)

json { "require": { "willdurand/nmap": "@stable" } }, (*11)

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

License

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

The Versions

19/05 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

19/05 2018

0.7.0

0.7.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

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