repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
7-tcp-udp-pentesting-echo.mdMarkdown46 lines1.5 KiBrendered raw download
---
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.<sup>[[1]](#references)</sup>

**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.<sup>[[2]](#references)</sup>

## Contact the UDP Echo Service

```bash
nc -uvn <IP> 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)