2022-10-04 15:21:16 +05:30
|
|
|
# Simple Port Scanner
|
2022-10-04 16:01:13 +05:30
|
|
|
|
2022-10-04 15:21:16 +05:30
|
|
|
This is a simple port scanner written in Python. You can run a scan on any one particular host or over a given range of IP addresses.
|
|
|
|
|
|
|
|
Download the script on your local machine and use as follows.
|
2022-10-04 16:01:13 +05:30
|
|
|
<p align="center">
|
|
|
|
<img
|
|
|
|
src="https://user-images.githubusercontent.com/28898632/193796899-8c27a4d9-fecc-4378-9324-bded40abc641.png"
|
|
|
|
>
|
|
|
|
</p>
|
2022-10-04 15:21:16 +05:30
|
|
|
|
|
|
|
## Usage
|
|
|
|
- Single host - scans a single IP address
|
2022-10-04 15:23:15 +05:30
|
|
|
|
2022-10-04 15:25:07 +05:30
|
|
|
```python
|
|
|
|
./scanner.py <IP address> <start port> <end port>
|
|
|
|
```
|
2022-10-04 15:23:47 +05:30
|
|
|
|
2022-10-04 15:21:16 +05:30
|
|
|
_Example:`./scanner.py 192.168.0.17 1 65535`_
|
|
|
|
|
|
|
|
- Network scan - scans a range of IP addresses
|
2022-10-04 15:23:15 +05:30
|
|
|
|
2022-10-04 15:25:07 +05:30
|
|
|
```python
|
|
|
|
./scanner.py <network> <start port> <end port> -n
|
|
|
|
```
|
|
|
|
|
2022-10-04 15:21:16 +05:30
|
|
|
_Example:`./scanner.py 192.168.0 1 65535 -n`_
|