https://github.com/ali1raz/port-scanner-python
port scanner using python, socket programming, python, computer networks, networking, project
https://github.com/ali1raz/port-scanner-python
cli-app computer-networks ethical-hacking ethical-hacking-tools networking networking-in-python nmap portscanner project-repository python python-app socket-programming sockets
Last synced: 9 months ago
JSON representation
port scanner using python, socket programming, python, computer networks, networking, project
- Host: GitHub
- URL: https://github.com/ali1raz/port-scanner-python
- Owner: Ali1raz
- Created: 2024-07-22T06:43:21.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-23T04:10:08.000Z (over 1 year ago)
- Last Synced: 2025-01-30T00:33:50.180Z (11 months ago)
- Topics: cli-app, computer-networks, ethical-hacking, ethical-hacking-tools, networking, networking-in-python, nmap, portscanner, project-repository, python, python-app, socket-programming, sockets
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Port Management Script
## Overview
This script provides functionality to manage TCP ports on your localhost. It allows you to scan for open ports, open and listen on specific ports, and close those ports when you're done.
## Features
- **Port Scanning:** Check which ports in a specified range are open.
- **Open Port:** Open a specific port and listen for incoming connections.
- **Close Port:** Close a specific port that was previously opened.
## Requirements
- Python 3.x
## Usage
### Scan Ports
```sh
python scanner.py s
```
### Example:
```sh
python scanner.py s localhost 1 500
```
### Open a port:
```sh
python scanner.py o
```
### Example:
```sh
python scanner.py o localhsot 133
```
### Closing a port:
- **Connect a client to that port first**
### Example:
```sh
python client.py
Enter server port: 133
```
- **send close from client and scanner to close that port**