Net_Nmap Archive
Discovery hosts and services with PHP and Nmap
Requirements:
- PHP5
- PEAR::Net_Nmap
- nmap
<?php
/**
* Scan network to retrieve hosts and services information.
*/
require_once 'Net/Nmap.php';
//Define the target to scan
$target = array('127.0.0.1','www.yourserver.com');
$options = array('nmap_binary' => '/usr/local/bin/nmap');
try {
$nmap = new Net_Nmap($options);
//Enable nmap options
$nmap_options = array('os_detection' => true,
[...]
Net_Nmap 1.0.0 beta1 released!
The Net_Nmap Pear package is a simple interface for Nmap, the free and open source utility for network exploration or security auditing.
Net_Nmap can be used to auto discovery hosts and services in your network or simply to parse Nmap XML output.
You may install it on your system simply typing:
$ pear install Net_Nmap
or if prefer download [...]
Find It Quickly
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.


