python-scripts/scripts/Port_Scanner
Samuel Jonathan 8bb59d3a0c
image
screenshot
2022-10-04 16:01:13 +05:30
..
readme.md image 2022-10-04 16:01:13 +05:30
scanner.py port scanner python 2022-10-04 15:21:16 +05:30

Simple Port Scanner

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.

Usage

  • Single host - scans a single IP address

    ./scanner.py <IP address> <start port> <end port>
    

    Example:./scanner.py 192.168.0.17 1 65535

  • Network scan - scans a range of IP addresses

    ./scanner.py <network> <start port> <end port> -n
    

    Example:./scanner.py 192.168.0 1 65535 -n