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