Download the PHP package palepurple/nmap without Composer
On this page you can find all versions of the php package palepurple/nmap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download palepurple/nmap
More information about palepurple/nmap
Files in palepurple/nmap
Package nmap
Short Description nmap is a PHP wrapper for Nmap, a free security scanner for network exploration. This is (mostly) a fork of willdurand/nmap with PHP 7 and vimeo/psalm static analysis improvements.
License MIT
Informations about the package nmap
This project is maintained fork of the original project: https://github.com/willdurand/nmap
Nmap
Nmap is a PHP wrapper for Nmap, a free security scanner for network exploration.
Starting a scan
You can specify the ports you want to scan:
OS detection and Service Info are disabled by default, if you want to
enable them, use the enableOsDetection()
and/or enableServiceInfo()
methods:
Turn the verbose mode by using the enableVerbose()
method:
For some reasons, you might want to disable port scan, that is why nmap
provides a disablePortScan()
method:
You can also disable the reverse DNS resolution with disableReverseDNS()
:
You can define the process timeout (default to 60 seconds) with setTimeout()
:
You can run specific scripts with setScripts()
and get the result with getScripts()
:
Nmap XML output
Parse existing output:
or
Validation output file using the Nmap DTD. A custom DTD path can be passed to the validate function.
Installation
The recommended way to install nmap is through Composer:
For PHP 8.0 and above -
For older versions of PHP, try ^2.0; see also https://github.com/DavidGoodwin/nmap/releases/tag/2.0.1
License
nmap is released under the MIT License. See the bundled LICENSE file for details.
All versions of nmap with dependencies
symfony/process Version ~2.0|~3.0|~4.0|~5.0|~6.0|~7.0
ext-simplexml Version *
symfony/filesystem Version ~6.0|~7.0