Skip to content

Commit 1eac5df

Browse files
authored
Document Kafka broker detection and message saving
Added Kafka reconnaissance section with Nmap and kafkacat usage instructions.
1 parent f413836 commit 1eac5df

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Cloud.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,3 +640,32 @@ In Jira, privileges can be checked by any user, authenticated or not, through th
640640
# Check non-authenticated privileges
641641
curl https://org.atlassian.net/rest/api/2/mypermissions | jq | grep -iB6 '"havePermission": true'
642642
```
643+
644+
## Kafka Recon
645+
646+
Use Nmap to detect Kafka brokers and check for open ports:
647+
648+
```sh
649+
nmap -p 9092,9093,2181 -sV target.com
650+
```
651+
652+
List brokers via `kafkacat`:
653+
654+
```sh
655+
❯ kcat -b target.com -L
656+
Metadata for all topics (from broker -1: target.com:9092/bootstrap):
657+
1 brokers:
658+
broker 1 at target.com:9092 (controller)
659+
3 topics:
660+
topic "RemoteMonitoringConnectedDevices" with 1 partitions:
661+
partition 0, leader 1, replicas: 1, isrs: 1
662+
topic "AlertNotifications" with 1 partitions:
663+
partition 0, leader 1, replicas: 1, isrs: 1
664+
topic "__consumer_offsets" with 50 partitions:
665+
```
666+
667+
Save messages for offline analysis;
668+
669+
```sh
670+
kcat -b target.com:9092 -t AlertNotifications -C -J | jq . > messages.json
671+
```

0 commit comments

Comments
 (0)