TCP connect scan via /dev/tcp.
DNS enumerations with nslookup and dig.
The Port and DNS Scanner script is a Bash utility designed for basic network scanning.
Enumerate DNS and do a TCP port scan within a specified port range.
Quickly assess ports that accept TCP connection.
- DNS Enumeration: Uses nslookup, dig, and host commands to gather DNS information about the target.
- Port Scanning: Scans a range of TCP ports on the target to identify open ports.
- Logging: Outputs the results of the scan to a log file with a timestamp.
./scanner.sh example.com 20 80
Usage: ./scanner.sh <ip/hostname> <port_start> <port_end>
<ip/hostname>: The IP address or hostname of the target to scan.<port_start>: The starting port number for the port scan.<port_end>: The ending port number for the port scan.
This command will scan the target example.com for open TCP ports from 20 to 80 and perform DNS enumeration.
- The scan results are saved to a log file named scan_results.log in the current directory.
- The log file includes the target information, the time and date of the scan, and the results of DNS enumeration and port scanning.