Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
/ port-mapper Public archive

Port mapper console util (university lab project)

Notifications You must be signed in to change notification settings

GLEBR1K/port-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PORT MAPPER

This is a port mapper console utility written using JavaScript (NodeJS) as university lab project.

Basic usage

Help message:

$ port-mapper -h
Usage: port-mapper [options] <host> <ports>

Options:
  -o, --open     filter open ports
  -j, --json     json output
  -v, --version  output the version number
  -h, --help     output usage information

Check 80 port:

$ port-mapper 127.0.0.1 80

Check ports from 0 to 1023:

$ port-mapper 127.0.0.1 0-1023

Show only open ports:

$ port-mapper 127.0.0.1 0-1023 --open

Supress any output, but json result:

$ port-mapper 127.0.0.1 0-1023 --json

Build from source

# clone repository
$ git clone https://github.com/GLEBR1K/port-mapper.git

# go into the source folder
$ cd port-mapper

# build for windows
$ npm run build:win 
# or linux
$ npm run build:linux
# or mac
$ npm run build:mac

# executable files placed into build folder
$ ls build/