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: 772 All time: 4,385 This week: 182Up
Version License PHP version Categories
webmap 1.4GNU General Publi...5.0HTML, Networking, PHP 5, Security
Description 

Author

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: 45118 in Canada Canada
Week rank: 654 Down19 in Canada Canada Down
Innovation award
Innovation award
Nominee: 9x

Example

<?php

/*
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
$n->run_nmap();
//close xhtml output
$n->footer();
?>


Details

WebMap

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 phpclasses.org and GitHub.

  • https://www.phpclasses.org/package/7550-PHP-Run-nmap-security-audit-tool-from-a-Web-interface.html
  • https://github.com/salamcast/WebMap

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:

  • https://github.com/salamcast
  • https://hub.docker.com/u/binholz
  • https://leetcode.com/salamcast/
  • https://www.kaggle.com/abukhadeejahkarl

Support my work

  • LBC: bFhwBzT2r5jCuvphQBJmX9xLUZoackz1J6
  • PayPal: https://www.paypal.com/paypalme/AbuKhadeejahKarl

Screenshots  
  • 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 README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:772
This week:0
All time:4,385
This week:182Up