# Memcached Pentesting (Port 11211)

Source: https://pentest.h4rithd.com/tcp/11211-memcached/  
Section: TCP  
Ports: 11211  
Updated: 2026-05-30  
Author: Harith Dilshan (h4rithd), https://h4rithd.com

* Useful links
  * [https://www.hackingarticles.in/penetration-testing-on-memcached-server/](https://www.hackingarticles.in/penetration-testing-on-memcached-server/)
* Common usage / commands

```bash
# Connect to the memcached 
telnet 127.0.0.1 11211

# Get Version information
version

# List slabs
stats slabs

# List items of slabs with info
stats items

# Get key names (the 0 is for unlimited output size)
stats cachedump 1 0
stats cachedump 2 0

# Get saved info
get <>
```

* Tools

```bash
# Nmap script 
nmap -n -sV --script memcached-info -p 11211 <IP>  

# MSF extracts saved data
use auxiliary/gather/memcached_extractor      

# is UDP DDoS amplification attack is possible ?
use auxiliary/scanner/memcached/memcached_amp
```
