PHP Classes

WebMap: Run nmap security audit tool from a Web interface

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 777 All time: 4,369 This week: 78Up
Version License PHP version Categories
webmap 1.4GNU General Publi...5.0HTML, Networking, PHP 5, Security


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.

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
Picture of Karl Holz
  Performance   Level  
Name: Karl Holz <contact>
Classes: 14 packages by
Country: Canada Canada
Age: 43
All time rank: 44918 in Canada Canada
Week rank: 25 Up2 in Canada Canada Up
Innovation award
Innovation award
Nominee: 9x



WebMap Class demo
require_once 'nmap.cls.php';
$n=new WebMap('/usr/bin/nmap');
$n->header(); // used for xhtml output
//print xhtml form
echo $n;
//set true to log nmap scan, prints when done
//close xhtml output



It has been over 8 years since I touched this project and since I'm looking for new job, this looked the perfect app to containerize with Docker while learning it. I have made some updates to the code, small fixes in the xHTML so it displays cleanly. I have set the form method to GET, you can bookmark your scans to run them again as needed.

This is the originally posted on and GitHub.


About me

I'm Abu Khadeejah Karl, a father and husband; I'm a full card member of IATSE Local 58 Toronto Stagehands, I was working for a large AV company before COVID-19 killed the events/hospitality industry in Toronto. so now I'm looking for full time employment in something Cloud Computing, InfoSec or Python related. My portfolio links are bellow:


Support my work

  • LBC: bFhwBzT2r5jCuvphQBJmX9xLUZoackz1J6
  • PayPal:

  • screenshot1.png
  • screenshot2.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file Dockerfile Data Auxiliary data
Accessible without login Plain text file index.php Example test script
Accessible without login Plain text file licence.txt Lic. licence
Plain text file nmap.cls.php Class this is the class that interfaces to nmap for network scanning
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,369
This week:78Up