2303.3 version

This commit is contained in:
2026-03-12 23:05:49 -04:00
parent 390d404e0d
commit 5d3fb430dd

View File

@@ -89,17 +89,19 @@ arrow_menu() {
show_status() {
clear
echo ""
echo "╔══════════════════════════════════════════════════════════════════════════╗"
echo "║ Network Interface Status ║"
echo "╠══════════════════════════════════════════════════════════════════════════╣"
echo "║ ║"
echo " ╔══════════════════════════════════════════════════════════════════════════╗"
echo " DAProgs HoneyPot Server 2303.3 ║"
echo " ╠══════════════════════════════════════════════════════════════════════════╣"
echo " Network Interface Status ║"
echo " ╠══════════════════════════════════════════════════════════════════════════╣"
echo " ║ ║"
local ifaces
mapfile -t ifaces < <(get_interfaces)
if [ ${#ifaces[@]} -eq 0 ]; then
echo "║ No interfaces found ║"
echo "║ ║"
echo " ║ No interfaces found ║"
echo " ║ ║"
else
for iface in "${ifaces[@]}"; do
local ip netmask gw method
@@ -118,15 +120,15 @@ show_status() {
method="Unknown"
fi
printf "║ Interface : %-20s Mode: %-10s ║\n" "$iface" "$method"
printf "║ IP Address: %-45s ║\n" "$ip"
printf "║ Netmask : %-45s ║\n" "$netmask"
printf "║ Gateway : %-45s ║\n" "$gw"
echo "║ ║"
printf " ║ Interface : %-20s Mode: %-10s ║\n" "$iface" "$method"
printf " ║ IP Address: %-45s ║\n" "$ip"
printf " ║ Netmask : %-45s ║\n" "$netmask"
printf " ║ Gateway : %-45s ║\n" "$gw"
echo " ║ ║"
done
fi
echo "╚══════════════════════════════════════════════════════════════════════════╝"
echo " ╚══════════════════════════════════════════════════════════════════════════╝"
echo ""
echo " Use ↑ ↓ to navigate, Enter to select, Ctrl+C to exit"
echo ""