This project provides two functionalities:
- TCP Port Scanner: Scans TCP ports within a specified range for a given IP address.
- Network Scanner: Discovers devices within a specified IP network using ARP (Address Resolution Protocol).
- Python 3.x
socket
libraryscapy
library
-
Clone the repository:
git clone [repository_url]
-
Install the required Python libraries:
pip install scapy
- Enter
1
when prompted for the choice. - Provide the IP address, start port, and end port for scanning.
- Enter
2
when prompted for the choice. - Specify the target IP address in CIDR notation (e.g.,
172.17.3.1/24
).
The scanner will sequentially check each port within the specified range (inclusive) for the provided IP address. If a port is open, it will display a message indicating that the port is open.
This utilizes ARP to discover devices within the provided IP network. It sends ARP requests to all IP addresses in the network and listens for responses. Once completed, it displays the IP and MAC address of all discovered devices.
The output will list all open TCP ports for the specified IP address within the given range.
The output will display a list of devices along with their IP and MAC addresses that are active within the specified network.
- Ensure that you have the necessary permissions to scan the network or IP addresses.
- Use this tool responsibly and only on networks and systems you have permission to scan.
Feel free to modify or expand upon this README as needed!