Skip to content

Instantly share code, notes, and snippets.

@thehackersbrain
Last active May 31, 2021 06:44
Show Gist options
  • Select an option

  • Save thehackersbrain/87509d9dd5d128be66cc6b85fbcd26f8 to your computer and use it in GitHub Desktop.

Select an option

Save thehackersbrain/87509d9dd5d128be66cc6b85fbcd26f8 to your computer and use it in GitHub Desktop.
NetScan README Banner Image

NetScan

Simple TCP Port Scanner
Written in Go Lang by Gaurav Raj [TheHackersBrain]

bannerImage

NetScan is a simple TCP Port Scanner written in Golang while learning it.

NOTE: This tool only supports TCP Protocol, will add more eventually ;)

Version

NetScan 1.0.0

Requirement

Nothing Specifically Required just Golang should be installed.

Todo

  • To Add UDP and other method supports.
  • To Add Service Banner Grabbing for datails of the Port Service.
  • To Improve it further :)

Installation and Uses

Automated Installation (Recommanded)

Change the directory to where you want to install this tool and run the follwing command

curl https://raw.githubusercontent.com/thehackersbrain/netscan/main/install.sh -s | bash

Manual Installation

  • Make Sure Golang in Installed
go --version
  • Git clone this repo and change the directory
git clone https://github.com/thehackersbrain/netscan.git && cd netscan
  • Now Build the package
go build main.go && mv main netscan
  • Copy the binary in /usr/bin/ for easy access (optional)
sudo cp netscan /usr/bin/

How to Use

  • For specifing port, default is 1024
    ./netscan --port 1024
  • For specifing the target, default is scanme.nmap.org
    ./netscan --target 127.0.0.1

Author

Creator: Gaurav Raj
Portfolio: Here
Blog: TheHackersBrain Blog
Projects: Here
Twitter: @thehackersbrain
TryHackMe: hackersbrain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment