Skip to content

πŸš€ A bash script that automates 🌐 domain-to-IP resolution, ⚑️ lightning-fast port scanning with Masscan, and πŸ›‘οΈ in-depth analysis with RustScan. Ideal for comprehensive πŸ•΅οΈβ€β™‚οΈ network security evaluations!

License

Notifications You must be signed in to change notification settings

WildWestCyberSecurity/-Domain-to-IP-Port-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”— Domain-to-IP Port Scanner

πŸš€ A bash script that automates 🌐 domain-to-IP resolution, ⚑️ lightning-fast port scanning with Masscan, and πŸ›‘οΈ in-depth analysis with RustScan. Ideal for comprehensive πŸ•΅οΈβ€β™‚οΈ network security evaluations!

πŸ“ Table of Contents

✨ Features

  • 🌐 Domain-to-IP Resolution: Automatically resolves domain names to their corresponding IP addresses.
  • ⚑️ Masscan Integration: Leverages Masscan to scan a wide range of ports quickly.
  • πŸ›‘οΈ RustScan Detailed Analysis: Performs detailed scanning on open ports identified by Masscan using RustScan.
  • πŸ“‚ Organized Output: Outputs results in a well-structured format for easy analysis.

πŸ’» Requirements

Make sure your system has the following tools installed:

  • bash: Unix shell and command language.
  • curl: Command-line tool for transferring data with URLs.
  • wget: Network file downloader.
  • dig: DNS lookup utility (usually part of bind-utils or dnsutils package).
  • RustScan: High-speed port scanner with a focus on ease of use.
  • Masscan: The fastest Internet port scanner.
  • xmllint: XML parser and validator (libxml2-utils package).

πŸ“¦ Installation

First, install the necessary tools:

sudo apt-get update
sudo apt-get install curl wget dnsutils libxml2-utils -y

The script will automatically install RustScan and Masscan if they are not already installed on your system.

πŸš€ Usage

To use the script, provide a file containing domain names and specify an output directory:

./port_scan.sh <domain_list_file> <output_directory>

Example

./port_scan.sh domains.txt results/
  • <domain_list_file>: Path to the file containing a list of domains (one per line).
  • <output_directory>: Path to the directory where the output files will be saved.

πŸ“‚ Output

The script generates the following output files in the specified directory:

  • ips.txt: Contains the resolved IP addresses.
  • masscan_results.xml: Masscan scan results in XML format.
  • ip_ports.txt: IP addresses with their corresponding open ports.
  • *-rustscan.txt: Detailed RustScan results for each IP and port.

🀝 Contributing

Contributions are welcome! If you have ideas for improvements or have found bugs, feel free to open an issue or submit a pull request.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details. ###HACK THE PLANET NERDS!

About

πŸš€ A bash script that automates 🌐 domain-to-IP resolution, ⚑️ lightning-fast port scanning with Masscan, and πŸ›‘οΈ in-depth analysis with RustScan. Ideal for comprehensive πŸ•΅οΈβ€β™‚οΈ network security evaluations!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages