Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Function to check URL status code
- check_url_status() {
- local url="$1"
- echo "Checking status of: $url"
- response=$(curl -s -o /dev/null -w "%{http_code}" "$url") # Use curl to fetch the status code
- wget $url
- echo "Status code: $response"
- }
- # Function to get WHOIS information for a domain
- get_whois_info() {
- local domain="$1"
- echo "Getting WHOIS info for: $domain"
- whois "$domain"
- }
- # Function to dig name servers for a domain
- dig_domain_servers() {
- local domain="$1"
- echo "Getting info for: $domain"
- dig "$domain" NS
- nslookup "$domain"
- host -a -A "$domain"
- }
- # Function to perform recursive dns lookup on a domain
- recursive_dns_lookup() {
- local domain="$1"
- echo "Getting info for: $domain"
- dig "$domain" +trace
- }
- # Function to reverse dns lookuo for an IP address
- reverse_dns_lookup() {
- local domain="$1"
- echo "Getting info for: $domain"
- dig -x "$domain"
- }
- # Function to sslscan a domain
- sslscan_domain() {
- local domain="$1"
- echo "Getting info for: $domain"
- sslscan "$domain"
- }
- # Function to webtech scan an url
- webtech_urls() {
- local domain="$1"
- echo "Getting info for: $domain"
- webtech -u "$domain" --rua
- }
- # Function to get robots txt and http headers
- robots_txt() {
- local domain="$1"
- echo "Getting info for: $domain"
- curl -i "$domain"/page
- curl -ILk "$domain"
- curl -Lk "$domain"/robots.txt
- }
- # Function to trace a domains script http headers
- script_trace() {
- local domain="$1"
- echo "Getting info for: $domain"
- nmap -sV -A "$domain" --script-trace --script=http-headers --unprivileged -o "$domain".scrpt.trace
- }
- # Function to traceroute a domain or IP address
- traceroute_scan() {
- local domain="$1"
- echo "Getting info for: $domain"
- traceroute "$domain"
- }
- # Function to scan ports of a domain
- scan_ports() {
- local domain="$1"
- echo "Scanning common ports for: $domain"
- nmap -sT -p 80,443,22,21 "$domain" --unprivileged # Scan common web, SSH, and FTP ports
- }
- # Function to scan ports of a domain
- speed_test() {
- echo "Scanning Your System"
- speedtest-cli
- }
- # Main menu loop
- while true; do
- #clear # Clear the screen
- echo ""
- echo -e "\033[97m"
- echo ""
- echo "================================="
- echo " OPS - OSINT "
- echo "================================="
- echo ""
- echo " [1] Check URL Status"
- echo " [2] Get WHOIS Information"
- echo " [3] Domain Name Servers"
- echo " [4] Recursive DNS lookup"
- echo " [5] Reverse DNS Lookup"
- echo " [6] SSL/TLS Scanner"
- echo " [7] Webtech Scan Information"
- echo " (8] Robots.txt - HTTP Headers"
- echo " [9] NMAP Script Trace"
- echo " [10] Traceroute Domain or IP"
- echo " [11] Scan Common Ports of Domain"
- echo " [12] System Speed Test"
- echo " [13] Exit"
- echo ""
- echo "================================="
- echo ""
- read -p "Enter your choice: " choice
- case $choice in
- 1)
- echo ""
- echo " [*] Check Status "
- echo ""
- read -p "[URL]: " url
- check_url_status "$url"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 2)
- echo ""
- echo " [*] WHOIS Lookup "
- echo ""
- read -p "[Domain] [IP]: " domain
- get_whois_info "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 3)
- echo ""
- echo " [*] Check Name Servers "
- echo ""
- read -p "[Domain]: " domain
- dig_domain_servers "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 4)
- echo ""
- echo " [*] Recursive DNS Lookup "
- echo ""
- read -p "[Domain]: " domain
- recursive_dns_lookup "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 5)
- echo ""
- echo " [*] Reverse DNS Lookup "
- echo ""
- read -p "[IP]: " domain
- reverse_dns_lookup "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 6)
- echo ""
- echo " [*] Scan For Vulnerabilities"
- echo ""
- read -p "[Domain]: " domain
- sslscan_domain "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 7)
- echo ""
- echo " [*] Webtech Scan - Random User Agent Set "
- echo ""
- read -p "[URL]: " domain
- webtech_urls "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 8)
- echo ""
- echo " [*] Robots.txt - HTTP Headers "
- echo ""
- read -p "[Domain] [URL]: " domain
- robots_txt "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 9)
- echo ""
- echo " [*] NMAP Script Trace "
- echo ""
- read -p "[Domain]: " domain
- script_trace "$domain"
- echo ""
- echo " File Saved > "$domain".script.trace"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 10)
- echo ""
- echo " [*] Traceroute Domain or IP "
- echo ""
- read -p "[Domain] [IP]: " domain
- traceroute_scan "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 11)
- read -p "[Domain]: " domain
- scan_ports "$domain"
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 12)
- speed_test
- echo ""
- read -p "Press Enter to continue..."
- ;;
- 13)
- echo ""
- echo "Exiting..."
- exit 0
- ;;
- *)
- echo "Invalid choice. Please try again."
- echo ""
- read -p "Press Enter to continue..."
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement