Portlistener is a bash script used for running a web server on a specified ports. The use of a web server eliminates the false connection refuse error caused by net cat utility, and its automated
This script is dependent on the followings:
* Linux OS
* Docker
* net-tools
Here are the steps needed to use the script
- Run the command listener [options] setup-server to setup server (one time setup, to setup the Nginx server)
- Specify all target ports in the ./comp/ports.txt file, each port on a new line
- To start port listening, run the command listener [options] start
- To stop port listening, run the command listener [options] stop
- Where the listener [options] stop command fails to stop the active runing instance of the listener, run the command listener [options] stop-all
- To check the status of the listener, run the command listener [options] status
- To view the applications making use of the none free ports, run the command listener [options] show-used-ports
WHERE
options: An optional flag to pass to the listener to change the way it behaves. Here are the available options:
- -a : Tells the listener to attempt opening all ports, without checking if a ports is free or not
- -s : Tells the listener to skip dependencies check.
The script supports global access, so you may register the path to the script and call the listener script from any directory