Skip to content

alexpfaller/gPScan

Repository files navigation

Logo

LinuxWindowsGitHub tag (latest SemVer)made-with-Go GoDoc reference example

gPScan

gPScan is a simple CLI tool, to check if specific ports are opened or closed.

Installation

To install/ build the binary, make sure that you have installed the go compiler.

  git clone https://github.com/alexpfaller/gPScan
  cd gPScan
  sudo make build

This will build the gPScan binary in your /bin/ directory.

Usage

It always follows this schema, where you first specify one of the two protocols (tcp, udp), after that you can insert your destination, which you want to check for open ports(localhost, any IP address). Last but not least, append the port that should be checked.

gpscan <protocol> <destination> <port>

For the port you can specify a port, or check all. For the all option, you can choose between different speed levels.

  • -a (normal speed)
  • -af (faster)
  • -asf (super fast)

Example:

gpscan tcp localhost 8080

To check if port 8080 on your machine is currently open, or closed.

gpscan tcp 132.203.220.211 443

To check if port 443 (https) on another machine is open.

gpscan tcp localhost -a

To check all ports on your local machine.

gpscan tcp localhost -af

To check all ports on your local machine, but faster than normal mode.

Contributors

IlliaFox brittonhayes