MCPcopy Index your code
hub / github.com/cylentsec/nmapurls

github.com/cylentsec/nmapurls @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
10 symbols 13 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

nmapurls

Nmapurls parses Nmap xml reports from either piped input or command line arg and outputs a list of http(s) URL's to be used in an automation pipeline.

Edit: The output now prints hostnames when available. Otherwise it prints an IP address.

Usage:

Basic usage:

cat nmap.xml | ./nmapurls
http://192.168.1.1:80
https://192.168.1.1:443
http://192.168.1.4:80
https://192.168.1.4:443
http://192.168.1.4:8080
http://192.168.1.6:80
https://192.168.1.6:443
http://192.168.1.7:80
https://192.168.1.7:443
http://192.168.1.13:80
https://192.168.1.13:443
./nmapurls -f nmap.xml
http://192.168.1.1:80
https://192.168.1.1:443
http://192.168.1.4:80
https://192.168.1.4:443
http://192.168.1.4:8080
http://192.168.1.6:80
https://192.168.1.6:443
http://192.168.1.7:80
https://192.168.1.7:443
http://192.168.1.13:80
https://192.168.1.13:443

Extract only HTTPS services:

./nmapurls -f nmap.xml --https-only
https://192.168.1.1:443
https://192.168.1.4:443
https://192.168.1.6:443
https://192.168.1.7:443
https://192.168.1.13:443
./nmapurls -f nmap.xml -s
https://192.168.1.1:443
https://192.168.1.4:443
https://192.168.1.6:443
https://192.168.1.7:443
https://192.168.1.13:443

Options:

  • -f, --file: Nmap XML report file path
  • -s, --https-only: Extract only HTTPS services

Build:

You must already have go installed, then run go install github.com/sdcampbell/nmapurls@latest.

Core symbols most depended-on inside this repo

parseNmapXML
called by 1
nmapurls.go
main
called by 0
nmapurls.go

Shape

Struct 8
Function 2

Languages

Go100%

Modules by API surface

nmapurls.go10 symbols

For agents

$ claude mcp add nmapurls \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact