-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
55 lines (44 loc) · 1.45 KB
/
install.sh
File metadata and controls
55 lines (44 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
set -e
echo "[*] Installing HTTP/HTTPS Subdomain Scanner..."
# --- REPO FILES ---
MODULE_URL="https://raw.githubusercontent.com/Ryan6794/Metasploit_https_scanner/main/https_subdomain_scanner.rb"
WORDLIST_URL="https://raw.githubusercontent.com/Ryan6794/Metasploit_https_scanner/main/common.txt"
# --- PATHS ---
MSF_DIR="$HOME/.msf4"
MODULE_DIR="$MSF_DIR/modules/auxiliary/scanner/http"
WORDLIST_DIR="$MSF_DIR/data/subdomains"
# --- CREATE DIRECTORIES ---
echo "[*] Creating directories..."
mkdir -p "$MODULE_DIR"
mkdir -p "$WORDLIST_DIR"
# --- DOWNLOAD FILES ---
echo "[*] Downloading module..."
curl -sSL "$MODULE_URL" -o "$MODULE_DIR/https_subdomain_scanner.rb"
echo "[*] Downloading wordlist..."
curl -sSL "$WORDLIST_URL" -o "$WORDLIST_DIR/common.txt"
# --- PERMISSIONS ---
chmod 644 "$MODULE_DIR/https_subdomain_scanner.rb"
chmod 644 "$WORDLIST_DIR/common.txt"
# --- VERIFY ---
if [[ -f "$MODULE_DIR/https_subdomain_scanner.rb" ]]; then
echo "[+] Module installed successfully"
else
echo "[!] Module install failed"
fi
if [[ -f "$WORDLIST_DIR/common.txt" ]]; then
echo "[+] Wordlist installed successfully"
else
echo "[!] Wordlist install failed"
fi
# --- DONE ---
echo ""
echo "[*] Launch Metasploit:"
echo " msfconsole"
echo ""
echo "[*] Then run:"
echo " reload_all"
echo " use auxiliary/scanner/http/https_subdomain_scanner"
echo ""
echo "[*] Optional:"
echo " set SUBDOMAIN_FILE ~/.msf4/data/subdomains/common.txt"