This is a simple Python script to scan ports on a target machine.
python3 scanner.py <ip>
Replace with the IP address of the target machine.
- This script takes an IP address as an argument and scans a range of ports (50 to 84) on that target machine.
- It prints a message indicating whether each port in the range is open or closed.
- It also handles errors gracefully, such as incorrect syntax, hostname resolution failure, and socket errors.
Do not use this tool to scan unauthorized target machines without proper authorization. Unauthorized scanning of machines or networks may be illegal and could result in legal action. Usage of this tool to scan target machines is at the user's discretion and responsibility.
- Python 3.x
Licensed under the MIT License, Copyright © 2024