https://github.com/rasbeetech/simple-port-scanner
A simple Python application for scanning ports
https://github.com/rasbeetech/simple-port-scanner
python3 socket
Last synced: over 1 year ago
JSON representation
A simple Python application for scanning ports
- Host: GitHub
- URL: https://github.com/rasbeetech/simple-port-scanner
- Owner: RasbeeTech
- License: mit
- Created: 2021-07-03T15:00:26.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-03T18:14:25.000Z (almost 5 years ago)
- Last Synced: 2025-01-25T10:26:13.231Z (over 1 year ago)
- Topics: python3, socket
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple-Port-Scanner
A Python application that uses sockets to scan for open ports on a given host/ip.
## Dependencies
```sh
Python 3.8.7
```
## Usage
### port_scanner:
**get_open_ports**("{**hostname/IP_address**}", [**start_port**, **end_port**], **verbose**=False)
```py
print( port_scanner.get_open_ports("104.26.10.78", [8079, 8090]) )
# returns:
[8080]
print( ports = port_scanner.get_open_ports("137.74.187.104", [440, 450], verbose=True) )
# returns:
Open ports for hackthissite.org (137.74.187.104)
PORT SERVICE
443 https
```