WebMap: Run nmap security audit tool from a Web interface

Recommend this page to a friend!

Picture of Karl Holz
Name: Karl Holz <contact>
Classes: 14 packages by
Country: Canada Canada
Age: 39
All time rank: 50119 in Canada Canada
Week rank: 50 1 in Canada Canada
Innovation award
Innovation award
Nominee: 9x

  Detailed description   Download .zip .tar.gz   Install with Composer  
This class can run nmap security audit tool from a Web user interface.

It can present a Web forms based user interface to let the user configure options to execute the nmap tool.

The class executes the nmap program and presents the output results in the same Web page.

Here's a basic setup of this php program

// add it into your script with require
require_once 'nmap.cls.php';

// tell it where nmap is located on your system or it will fail
$n=new WebMap('/opt/local/bin/nmap');

// if you want to use xHTML output, call the header
$n->header(); // used for xhtml output

// This prints the xHTML form
echo $n;

// Runs the nMap scan if the options have been passed with the form
// set true to log nmap scan, prints when done
// - tee is used to make log

//close xhtml output is required if header() was called


That's it, just note some nmap commands/scans wont run because they require root
So it's up to you to set that up. Running your web server as root on a public system 
would be a bad idea... 


  Classes of Karl Holz  >  WebMap  >  Download .zip .tar.gz  >  Support forum  >  Blog  >  Latest changes  
Name: WebMap
Base name: webmap
Description: Run nmap security audit tool from a Web interface
Version: 1.0
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 736 users
All time rank: 4481
Week users: 0 users
Week rank: 237
  Groups   Screenshots   User ratings  
  Applications   Related pages   Files  

HTML HTML generation and processing View top rated classes
Networking Networking protocols, clients and servers View top rated classes
PHP 5 Classes using PHP 5 specific features View top rated classes
Security Security protection and attack detection View top rated classes

File Role Description
screenshot1.png Screen before scan, old interface
screenshot2.png Screen after scan, old interface

  Innovation Award  
PHP Programming Innovation award nominee
June 2012
Number 2

Prize: One copy of RadPHP XE2
There are many useful tools that execute interesting tasks but they only provide a command line interface to execute them. That is the case of the nmap security audit tool.

This class provides a Web based user interface to nmap that is more user friendly.

It can not only allow the user to configure nmap options with forms based page, but also present the nmap output results on the same Web page.

Manuel Lemos

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.

If you know an application of this package, send a message to the author to add a link here.

  Related pages  
GitHub site for WebMap
Network Scanner you need to install

File Role Description
index.php Example test script
licence.txt Lic. licence
nmap.cls.php Class this is the class that interfaces to nmap for network scanning
README.txt Doc. Readme file

Install with Composer - Download all files: webmap.tar.gz webmap.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

For more information send a message to info at phpclasses dot org.