VirtualZero / ports

A quick and easy solution for determining if a port is open on a web server. Simply enter the URL or IP address of the server and the port to scan. Ports leverages the power of the network mapping utility, Nmap, to scan and determine the target's port status. Check out the app in action: https://ports.virtualzero.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ports (Port Checker)

Powered by Virtualzero

A quick and easy solution for determining if a port is open on a web server. Simply enter the URL or IP address of the server and the port to scan. Ports leverages the power of the network mapping utility, Nmap, to scan and determine the target's port status.

Installation

Clone the repository:

git clone https://github.com/VirtualZero/ports.git

Environment

Install Miniconda

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh

Create Environment

conda create --name 'ports' python=3.7

Activate Environment

source activate ports

Install Dependencies

cd ports && pip install -r requirements.txt

Execution

It is bad practice to store passwords in applications. For this reason, sensitive information like account passwords, secret keys, and API keys are stored in environment variables. For simplicity, use the included bash script, env.sh, to create the environment variables before executing the application. With the 'ports' virtual environment activated, update env.sh with a secure password and execute the following command:

chmod +x env.sh && . env.sh

To run Ports on your local machine, make sure the 'ports' virtual environment is activated and that you are in the root ports directory. Enter the following command to start the app:

python run.py

Then, open a browser and go to the following URL:

http://127.0.0.1:5000

To use Ports in a production environment, it is recommended to deploy the app using Gunicorn and Nginx. An example Nginx host file is included, as well as an example systemd service file.

About

A quick and easy solution for determining if a port is open on a web server. Simply enter the URL or IP address of the server and the port to scan. Ports leverages the power of the network mapping utility, Nmap, to scan and determine the target's port status. Check out the app in action: https://ports.virtualzero.tech

License:GNU General Public License v3.0


Languages

Language:HTML 48.4%Language:JavaScript 34.1%Language:Python 17.3%Language:Shell 0.1%