A simple and powerful Python script for scanning open ports on any target system.
- Efficiently scans for open ports on a specified host.
- Written in pure Python for cross-platform compatibility.
- Easy to use and modify for your own network security or automation needs.
-
Clone the repository:
git clone https://github.com/EmmazonTech/port-scanner-2.git cd port-scanner-2 -
Run the script:
python pt2.py
-
Follow the on-screen prompts to enter the target IP address or hostname and specify the range of ports to scan.
- Python 3.x
No additional dependencies are required, making this script lightweight and portable.
$ python pt2.py
Enter target host: 192.168.1.1
Enter start port: 1
Enter end port: 1024
Scanning ports 1-1024 on 192.168.1.1...
Open ports:
22
80
443
...Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License.
Scan responsibly. Only scan systems you own or have explicit permission to test.