Skip to content

Runs nmap on the LAN and then generates a basic ASCII network diagram, a 'hand drawn' network diagram and an bootstrap themed web report of the scan

Notifications You must be signed in to change notification settings

Bedrovelsen/ascii-LAN-map

Repository files navigation

 ▄▄▄· .▄▄ ·  ▄▄· ▪  ▪      ▄▄▌   ▄▄▄·  ▐ ▄     • ▌ ▄ ·.  ▄▄▄·  ▄▄▄·
▐█ ▀█ ▐█ ▀. ▐█ ▌▪██ ██     ██•  ▐█ ▀█ •█▌▐█    ·██ ▐███▪▐█ ▀█ ▐█ ▄█
▄█▀▀█ ▄▀▀▀█▄██ ▄▄▐█·▐█·    ██▪  ▄█▀▀█ ▐█▐▐▌    ▐█ ▌▐▌▐█·▄█▀▀█  ██▀·
▐█ ▪▐▌▐█▄▪▐█▐███▌▐█▌▐█▌    ▐█▌▐▌▐█ ▪▐▌██▐█▌    ██ ██▌▐█▌▐█ ▪▐▌▐█▪·•
 ▀  ▀  ▀▀▀▀ ·▀▀▀ ▀▀▀▀▀▀    .▀▀▀  ▀  ▀ ▀▀ █▪    ▀▀  █▪▀▀▀ ▀  ▀ .▀   

		+-----------------------------+
		|                             |
		|     <192.68.1.64>           |
		|                             |
		|                       *     |
		+-----------------------+-----+
		                        |
		                        |
		                        |
		+-----------------------|-----+
		|                       *     |
		|     <192.68.1.66>           |
		| [+] 80:http                 |
		| [+] 111:rpcbind             |
		|                             |
		|                       *     |
		+-----------------------+-----+
		                        |
		                        |
		                        |
		+-----------------------|-----+
		|                       *     |
		|     <192.68.1.109>          |
		| [+] 53:domain dnsmasq       |
		| [+] 111:rpcbind             |
		|                             |
		|                       *     |
		+-----------------------+-----+
		                        |
		                        |
		                        |
		+-----------------------|-----+
		|                       *     |
		|     <192.68.1.254>          |
		| [+] 80:http                 |
		| [+] 443:http                |
		| [+] 8200:upnp               |
		|                             |
		|                             |
		+-----------------------------+

  1. Runs nmap using the awesome Ullaakut/nmap Idiomatic nmap library for go on the LAN.
  2. Generates a basic ASCII network diagram
  3. Generates a 'hand drawn' version of the ASCII network diagram using esimov/diagram
  4. Generates a bootstrap themed web report from the LAN scan using honze-net/nmap-bootstrap-xsl and xsltproc

How to use:

Pre-requisits

  1. If go is not installed, install go
  2. If diagram is not installed, install diagram

Usage from source

  1. clone repo
git clone https://github.com/Bedrovelsen/ascii-LAN-map
cd ascii-LAN-map

2a. Build binary and execute

go mod tidy
go build .
chmod +x asciiLANmap
./ascii-lan-map

OR

2b. run with go run directly

go run main.go

LAN_DRAWING


Notes:

  1. Requires esimov/diagram.
  2. Built in LAN CIDR network range discovery (Tested under debian and previously under Mac OS X, don't hesitate to make issue if fails to fetch CIDR on your setup)

About

Runs nmap on the LAN and then generates a basic ASCII network diagram, a 'hand drawn' network diagram and an bootstrap themed web report of the scan

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published