#!/bin/bash
# Phase 10 — Network, WiFi & Wireless
source "$(dirname "$0")/lib.sh"

phase_header "PHASE 10 — Network Attacks, WiFi & Wireless"

section "Traffic Analysis"
chk "tcpdump"           tcpdump
chk "tshark"            tshark
chk "wireshark"         tshark
chk "netsniff-ng"       netsniff-ng
chk "arpwatch"          arpwatch
chk_opt "zeek"          zeek   # libc conflict on Kali 2026
chk_dir "PCredz"        /opt/PCredz

section "MITM & Sniffing"
chk "bettercap"         bettercap
chk "ettercap"          ettercap
chk "arpspoof"          arpspoof
chk "dsniff"            dsniff
chk "sslstrip"          sslstrip
chk "mitmproxy"         mitmproxy

section "Network Tools"
chk "ncat"              ncat
chk "socat"             socat
chk "hping3"            hping3
chk "proxychains4"      proxychains4
chk "macchanger"        macchanger

section "WiFi Attacks"
chk "aircrack-ng"       aircrack-ng
chk "airmon-ng"         airmon-ng
chk "airodump-ng"       airodump-ng
chk "aireplay-ng"       aireplay-ng
chk "wifite"            wifite
chk "hcxdumptool"       hcxdumptool
chk "hcxpcapngtool"     hcxpcapngtool
chk "hostapd-wpe"       hostapd-wpe

section "Bluetooth"
chk "ubertooth-util"    ubertooth-util
chk_py "bleak"          bleak
chk_dir "crackle"       /opt/crackle
chk_opt "GATTacker"     /opt/gattacker   # npm gyp build fails in container

section "VoIP / SIP"
chk "sipvicious"        svmap
chk "rtpbreak"          rtpbreak
chk_opt "ucsniff"       /opt/ucsniff   # old VoIP tool, rarely needed

section "Tunneling"
chk "iodine"            iodine
chk_dir "dnscat2"       /opt/dnscat2
chk "ptunnel-ng"        ptunnel-ng

section "Responder / Relay"
chk "responder"         responder
chk "mitm6"             mitm6
chk "impacket-ntlmrelayx" impacket-ntlmrelayx

phase_summary
