2016-04-08 18:26:54 -06:00
|
|
|
#!/bin/bash
|
|
|
|
. ./lib
|
|
|
|
|
|
|
|
options=()
|
|
|
|
options+=("rsync" "Sync files" on)
|
|
|
|
options+=("traceroute" "Trace network route" on)
|
|
|
|
options+=("bind-tools" "DNS tools (nslookup)" on)
|
|
|
|
options+=("dnsutils" "DNS tools (nslookup)" off)
|
|
|
|
options+=("nmap" "Network scanner" off)
|
2019-03-16 13:00:17 -06:00
|
|
|
options+=("netdiscover" "(AUR) Network scanner with MAC vendors" off)
|
2016-04-08 18:26:54 -06:00
|
|
|
options+=("speedtest-cli" "SpeedTest" off)
|
2021-02-17 17:53:16 -07:00
|
|
|
options+=("arp-scan" "ARP Scanner" off)
|
2016-04-08 18:26:54 -06:00
|
|
|
options+=("wavemon" "WIFI monitor" off)
|
|
|
|
options+=("net-tools" "(deprecated) old ifconfig" off)
|
|
|
|
options+=("dsniff" "tools for network auditing and penetration" off)
|
|
|
|
options+=("mitmproxy" "SSL-capable MITM HTTP proxy" off)
|
|
|
|
options+=("sslstrip" "tool to hijack HTTPS in MITM attack" off)
|
|
|
|
|
2016-04-08 18:39:33 -06:00
|
|
|
sel=$(whiptail --backtitle "$apptitle" --title "Console Network Tools :" --checklist "" --cancel-button "Back" 0 0 0 \
|
2016-04-08 18:26:54 -06:00
|
|
|
"${options[@]}" \
|
|
|
|
3>&1 1>&2 2>&3)
|
|
|
|
if [ ! "$?" = "0" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
for itm in $sel; do
|
|
|
|
case $itm in
|
2019-03-16 13:00:17 -06:00
|
|
|
'"netdiscover"')
|
|
|
|
aurpkg="$aurpkg $(echo $itm | sed 's/"//g')"
|
|
|
|
;;
|
2016-04-08 18:26:54 -06:00
|
|
|
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
instpkg "$pkg" "$aurpkg"
|
|
|
|
|
|
|
|
exit 0
|