Skip to content

A simple CLI and web-based tool to scan a subnet for available ports on reachable devices.

Notifications You must be signed in to change notification settings

MrGhostlyOrb/network-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕵️‍♂️ Go Network Scan

A simple CLI and web-based tool to scan a subnet for available ports on reachable devices.

📦 Features

  • 🔍 Scans a subnet for IPs with open ports
  • 🌐 Web interface for user-friendly scanning
  • 💻 CLI mode for quick terminal use
localhost_8009_scan(Nest Hub Max)

🚀 Usage

CLI Mode

Run with 2 arguments: <port> <subnet>

go run main.go 8000 1

This will scan 192.168.1.0/24 for anything broadcasting on port 8000.

Web Mode

Start the server:

go run main.go

Then open your browser and navigate to: http://localhost:8009

Use the form to scan a given port and subnet (e.g., port 8000, subnet 1).

🧠 Examples

CLI Output:

Running in CLI mode...
Valid addresses:
192.168.1.12
192.168.1.21

Web Output:

Results are shown as a list of clickable IP addresses.

🔧 Configuration

Parameter Description
port Port to check (e.g. 8000)
subnet Subnet octet (e.g. 1 for 192.168.1.x)

📜 License

MIT — use freely, contribute gladly!

Let me know if you want badges, contribution guidelines, or Docker instructions added.

About

A simple CLI and web-based tool to scan a subnet for available ports on reachable devices.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published