---
title: "7/TCP/UDP - Pentesting Echo Service"
section: "Network Services"
sectionSlug: "network-services-pentesting"
sourcePath: "src/network-services-pentesting/7-tcp-udp-pentesting-echo.md"
sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/network-services-pentesting/7-tcp-udp-pentesting-echo.md"
sha: "188de82beb54e70956b2952367a0af91d26758b8"
isIndex: false
modified: true
license: "CC-BY-NC-4.0"
---
# 7/TCP/UDP - Pentesting Echo Service
## Basic Information
The Echo Protocol is a diagnostic service that returns received data to its sender. RFC 862 defines both a TCP service and a UDP service on port 7.[[1]](#references)
**Default ports:** 7/TCP and 7/UDP
```text
PORT STATE SERVICE
7/udp open echo
7/tcp open echo
```
An exposed UDP echo service can participate in a denial-of-service loop if it is made to exchange traffic with another UDP character-generating service. CERT's advisory recommends disabling unnecessary UDP diagnostic services and filtering spoofed traffic.[[2]](#references)
## Contact the UDP Echo Service
```bash
nc -uvn 7
Hello echo # Sent by the client
Hello echo # Returned by the server
```
## Shodan
```text
port:7 echo
```
## References
- [1] [RFC 862 - Echo Protocol](https://datatracker.ietf.org/doc/html/rfc862)
- [2] [CERT Advisory CA-1996-01 - UDP Port Denial-of-Service Attack](https://insights.sei.cmu.edu/documents/503/1996_019_001_496172.pdf)