explaingit

stefanosmarinos/mapg

Analysis updated 2026-05-18

5ShellAudience · ops devopsComplexity · 2/5Setup · moderate

TLDR

A Bash script that automates network reconnaissance for CTFs and authorized penetration tests by auto-detecting services and running the right scanning tools.

Mindmap

mindmap
  root((MAPG))
    What it does
      Auto service detection
      Runs matching scan tools
      Organized report output
    Tech stack
      Bash
      Nmap
      Gobuster
      WhatWeb
    Use cases
      CTF recon
      Authorized pentests
      Service enumeration
    Audience
      Security testers
      CTF players

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a quick, organized reconnaissance scan against an authorized CTF or lab target.

USE CASE 2

Automatically detect and enumerate HTTP, SSH, FTP, SMB, and DNS services on a target.

USE CASE 3

Generate a structured, timestamped folder of scan results for later review.

USE CASE 4

Run a deeper full scan with OS detection, Nuclei, and Nikto during authorized penetration tests.

What is it built with?

BashNmapGobusterWhatWebNiktoNuclei

How does it compare?

stefanosmarinos/mapganmoln7/agent-standard-ossdmaynard51/ultima5-ios
Stars555
LanguageShellShellShell
Setup difficultymoderateeasymoderate
Complexity2/52/53/5
Audienceops devopsdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Nmap, Gobuster, WhatWeb, and ssh-audit installed first, plus Nikto, Nuclei, and enum4linux-ng for full mode.

The README does not state a license, so reuse terms are unclear.

In plain English

MAPG is a command line script, written in Bash, that automates the early information gathering step of a penetration test or a Capture The Flag challenge. Instead of a tester manually running one scanning tool after another against a target, MAPG figures out which network services are running and runs the matching tools for you, then collects everything into one organized set of report files. You point it at a target IP address and choose a scan mode. The basic mode runs a quicker set of checks, including service detection, common scripted scans, web fingerprinting with WhatWeb, directory guessing with Gobuster, and an SSH configuration audit. The full mode adds a complete port scan, operating system and version detection, and deeper web and network checks using tools called Nuclei, Nikto, and enum4linux-ng, on top of everything basic mode already covers. MAPG currently understands several common service types out of the box: web servers over HTTP and HTTPS, SSH, FTP, SMB file sharing, and DNS, each mapped to the specific tool best suited to check it. Every scan writes its results into a timestamped folder, with separate files for each tool's output plus a summary file, so results from different targets or different runs stay organized and easy to compare later. To use it, you clone the repository and run the script with sudo, since some of the underlying scans need elevated permissions. It depends on several other tools being installed already, including Nmap, Gobuster, WhatWeb, and ssh-audit for basic mode, plus Nikto, Nuclei, and enum4linux-ng for full mode. The author lists planned future additions such as UDP scanning, SSL and TLS analysis, screenshot capture of web pages, and Docker support, but these are not built yet. The README states clearly that this tool is meant only for educational use, CTF competitions, and security assessments you are authorized to perform, and warns against using it on any system without explicit permission.

Copy-paste prompts

Prompt 1
Walk me through installing MAPG and running a basic scan against an authorized CTF target IP.
Prompt 2
Explain the difference between MAPG's basic and full scan modes.
Prompt 3
What tools do I need installed before running MAPG in full mode?
Prompt 4
Show me how to use a custom wordlist with MAPG's Gobuster step.

Frequently asked questions

What is mapg?

A Bash script that automates network reconnaissance for CTFs and authorized penetration tests by auto-detecting services and running the right scanning tools.

What language is mapg written in?

Mainly Shell. The stack also includes Bash, Nmap, Gobuster.

What license does mapg use?

The README does not state a license, so reuse terms are unclear.

How hard is mapg to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is mapg for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.