# Memcache Pentesting

## Memcache Pentesting <a href="#memcache-pentesting" id="memcache-pentesting"></a>

Memcached is a general-purpose distributed memory caching system. A default port is 11211.

### Communication <a href="#communication" id="communication"></a>

We can communicate with memcache server using Netcat.

```
nc -vn <ip> 11211
Connection to <ip> 11211 port [tcp/*] succeeded!

# Commands in nc
version
stats
stats slabs
stats items
stats cachedump <number> 0
stats cachedump 1 0
get <item_name>
```

### References <a href="#references" id="references"></a>

* [HackTricks](https://book.hacktricks.xyz/network-services-pentesting/11211-memcache)
