|
@ -59,17 +59,23 @@ fi |
|
|
if [ -v steamport ]; then |
|
|
if [ -v steamport ]; then |
|
|
echo -e "Steam:\t${steamport}\t$(ss -tupl|grep ${steamport}|wc -l)\t$(ss -tupl|grep ${steamport}|grep tcp|awk '{ print $2 }')\t$(ss -tupl|grep ${steamport}|grep udp|awk '{ print $2 }')" |
|
|
echo -e "Steam:\t${steamport}\t$(ss -tupl|grep ${steamport}|wc -l)\t$(ss -tupl|grep ${steamport}|grep tcp|awk '{ print $2 }')\t$(ss -tupl|grep ${steamport}|grep udp|awk '{ print $2 }')" |
|
|
else |
|
|
else |
|
|
echo -e "HTTP:\tN/A" |
|
|
echo -e "Steam:\tN/A" |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -v rawport ]; then |
|
|
|
|
|
echo -e "Raw UDP:\t${rawport}\t$(ss -tupl|grep ${rawport}|wc -l)\t$(ss -tupl|grep ${rawport}|grep tcp|awk '{ print $2 }')\t$(ss -tupl|grep ${rawport}|grep udp|awk '{ print $2 }')" |
|
|
|
|
|
else |
|
|
|
|
|
echo -e "Raw UDP:\tN/A" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
} | column -s $'\t' -t |
|
|
} | column -s $'\t' -t |
|
|
echo -e "" |
|
|
echo -e "" |
|
|
|
|
|
echo -e "${lightgreen}Ports Raw Output${default}" |
|
|
|
|
|
echo -e "=================================" |
|
|
|
|
|
ss -tupl |
|
|
|
|
|
echo -e "" |
|
|
echo -e "${lightgreen}Query Port - Raw Output${default}" |
|
|
echo -e "${lightgreen}Query Port - Raw Output${default}" |
|
|
echo -e "==================================================================" |
|
|
echo -e "==================================================================" |
|
|
|
|
|
|
|
|
echo -e "=================================" |
|
|
|
|
|
echo -e "${lightgreen}Ports${default}" |
|
|
|
|
|
echo -e "=================================" |
|
|
|
|
|
echo -e "" |
|
|
echo -e "" |
|
|
echo -e "PORT: ${port}" |
|
|
echo -e "PORT: ${port}" |
|
|
echo -e "QUERY PORT: ${queryport}" |
|
|
echo -e "QUERY PORT: ${queryport}" |
|
|