This Python script is a simple port scanner that checks for open ports within a specified range on a given target (IP address or hostname).
- Scans a range of ports on a specified target to check for open ports.
- Provides information about open ports on the target machine.
-
Clone the repository:
git clone https://github.com/vgg-dev/py_portscan.git
-
Navigate to the project directory:
cd py_portscan
-
Run the port scanner with the following command:
python py_portscan.py <target> <start_port> <end_port>
Replace
<target>
with the IP address or hostname to scan,<start_port>
with the starting port number, and<end_port>
with the ending port number.
Scan ports 1 to 100 on example.com
:
python py_portscan.py example.com 1 100
- Be Cautious: It's important to use this tool responsibly and ethically. Unauthorized port scanning may violate network policies or laws.