mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-23 21:24:06 +00:00
77 lines
3.9 KiB
Markdown
77 lines
3.9 KiB
Markdown
|
# Información Básica
|
||
|
|
||
|
Un servicio de eco está ejecutándose en este host. El servicio de eco fue diseñado para fines de prueba y medición y puede escuchar en los protocolos TCP y UDP. El servidor devuelve cualquier dato que recibe, sin modificación.\
|
||
|
**Es posible causar una denegación de servicio conectando un servicio de eco al servicio de eco en la misma o en otra máquina**. Debido al número excesivamente alto de paquetes producidos, las máquinas afectadas pueden quedar efectivamente fuera de servicio.\
|
||
|
Información de [https://www.acunetix.com/vulnerabilities/web/echo-service-running/](https://www.acunetix.com/vulnerabilities/web/echo-service-running/)
|
||
|
|
||
|
**Puerto predeterminado:** 7/tcp/udp
|
||
|
```
|
||
|
PORT STATE SERVICE
|
||
|
7/udp open echo
|
||
|
7/tcp open echo
|
||
|
```
|
||
|
## Contactar el servicio Echo (UDP)
|
||
|
|
||
|
### Description
|
||
|
|
||
|
The Echo service is a simple service that echoes back whatever data is sent to it. It is available on both TCP and UDP protocols. In this section, we will focus on the UDP version.
|
||
|
|
||
|
### Usage
|
||
|
|
||
|
To contact the Echo service using UDP, we can use the `nc` command with the `-u` flag to specify the UDP protocol. For example:
|
||
|
|
||
|
```
|
||
|
$ echo "hello" | nc -u <target_ip> 7
|
||
|
```
|
||
|
|
||
|
This will send the string "hello" to the Echo service running on port 7 of the target IP address.
|
||
|
|
||
|
### Potential issues
|
||
|
|
||
|
Since the Echo service simply echoes back whatever data is sent to it, it can be used to amplify UDP traffic in a reflection attack. This can result in a denial-of-service (DoS) attack on the target network.
|
||
|
|
||
|
### Detection
|
||
|
|
||
|
To detect if the Echo service is running on a target system, we can use the `nmap` command with the `-sU` flag to specify UDP scanning. For example:
|
||
|
|
||
|
```
|
||
|
$ nmap -sU <target_ip>
|
||
|
```
|
||
|
|
||
|
This will scan the target IP address for open UDP ports, including port 7 if the Echo service is running.
|
||
|
|
||
|
### Prevention
|
||
|
|
||
|
To prevent the Echo service from being used in a reflection attack, it is recommended to block incoming UDP traffic on port 7 at the network perimeter. Additionally, it is recommended to disable the Echo service if it is not needed.
|
||
|
```bash
|
||
|
nc -uvn <IP> 7
|
||
|
Hello echo #This is wat you send
|
||
|
Hello echo #This is the response
|
||
|
```
|
||
|
## Shodan
|
||
|
|
||
|
* `port:7 echo`
|
||
|
|
||
|
# Referencias
|
||
|
|
||
|
[Wikipedia echo](http://en.wikipedia.org/wiki/ECHO\_protocol)
|
||
|
|
||
|
[CA-1996-01 Ataque de denegación de servicio del puerto UDP](http://www.cert.org/advisories/CA-1996-01.html)
|
||
|
|
||
|
|
||
|
<details>
|
||
|
|
||
|
<summary><a href="https://cloud.hacktricks.xyz/pentesting-cloud/pentesting-cloud-methodology"><strong>☁️ HackTricks Cloud ☁️</strong></a> -<a href="https://twitter.com/hacktricks_live"><strong>🐦 Twitter 🐦</strong></a> - <a href="https://www.twitch.tv/hacktricks_live/schedule"><strong>🎙️ Twitch 🎙️</strong></a> - <a href="https://www.youtube.com/@hacktricks_LIVE"><strong>🎥 Youtube 🎥</strong></a></summary>
|
||
|
|
||
|
- ¿Trabajas en una **empresa de ciberseguridad**? ¿Quieres ver tu **empresa anunciada en HackTricks**? ¿O quieres tener acceso a la **última versión de PEASS o descargar HackTricks en PDF**? ¡Consulta los [**PLANES DE SUSCRIPCIÓN**](https://github.com/sponsors/carlospolop)!
|
||
|
|
||
|
- Descubre [**La familia PEASS**](https://opensea.io/collection/the-peass-family), nuestra colección de exclusivos [**NFTs**](https://opensea.io/collection/the-peass-family)
|
||
|
|
||
|
- Consigue el [**swag oficial de PEASS y HackTricks**](https://peass.creator-spring.com)
|
||
|
|
||
|
- **Únete al** [**💬**](https://emojipedia.org/speech-balloon/) [**grupo de Discord**](https://discord.gg/hRep4RUj7f) o al [**grupo de telegram**](https://t.me/peass) o **sígueme** en **Twitter** [**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/hacktricks_live)**.**
|
||
|
|
||
|
- **Comparte tus trucos de hacking enviando PR al [repositorio de hacktricks](https://github.com/carlospolop/hacktricks) y al [repositorio de hacktricks-cloud](https://github.com/carlospolop/hacktricks-cloud)**.
|
||
|
|
||
|
</details>
|