echo "test" | nc $rhost 7 && echo "Echo service responds"nc -vn $rhost 7nmap -sV -sC -p7 $rhostnmap -sU -p7 $rhost# TCP
echo "test" | nc $rhost 7
# UDP
echo "test" | nc -u $rhost 7Echo service can be used in amplification attacks
# Check if echo responds (potential amplification)
hping3 -c 1 --udp -p 7 $rhost# Use echo to verify host is alive
for ip in $(seq 1 254); do
echo "test" | nc -w1 192.168.1.$ip 7 2>/dev/null && echo "192.168.1.$ip is alive"
done