File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 # Resolve each to an IPv4 address and write in hosts format
4747 missing=()
4848 for d in "${domains[@]}"; do
49- ip4=$(dig +short A "$d" | head -n1 || true)
49+ # Get only IPv4 addresses, filter out CNAME responses
50+ ip4=$(dig +short A "$d" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1 || true)
5051 if [[ -n "$ip4" ]]; then
5152 echo "$ip4 $d" >> "$HOSTS"
5253 else
9697 # Use primary Termux mirror (bypasses pkg mirror selection)
9798 echo "deb https://packages.termux.dev/apt/termux-main stable main" > /data/data/com.termux/files/usr/etc/apt/sources.list
9899 apt update -y
99- DEBIAN_FRONTEND=noninteractive apt install -y curl git -o Dpkg::Options::="--force-confnew"
100+ DEBIAN_FRONTEND=noninteractive apt install -y curl git libssh2 -o Dpkg::Options::="--force-confnew"
100101 '
101102
102103 - name : Run metasploit installer from this repo
You can’t perform that action at this time.
0 commit comments