Post

TryHackMe | TakeOver WriteUp

TryHackMe | TakeOver WriteUp

Özet

DNSMap aracından yararlanarak hedef domaine ait subdomainleri tespit edecek ve bu subdomainlerden birinin sertifikasından bayrağın bulunduğu adresi öğreneceğiz.

80/443 numaralı portun incelenmesi

Subdomainler ile ilgilenmemiz gerektiği belirtilmiş. Doğrudan dnsmap aracını kullanarak hedef uygulamanın subdomainlerini tespit edelim.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ dnsmap futurevera.thm
dnsmap 0.36 - DNS Network Mapper

[+] searching (sub)domains for futurevera.thm using built-in wordlist
[+] using maximum random delay of 10 millisecond(s) between requests

blog.futurevera.thm
IP address #1: 10.10.191.95
[+] warning: internal IP address disclosed

portal.futurevera.thm
IP address #1: 10.10.191.95
[+] warning: internal IP address disclosed

support.futurevera.thm
IP address #1: 10.10.191.95
[+] warning: internal IP address disclosed

[+] 3 (sub)domains and 3 IP address(es) found
[+] 3 internal IP address(es) disclosed
[+] completion time: 225 second(s)

Tarama sonucunda üç adet subdomaini tespit ettiğini görüyoruz. Her birini /etc/hosts dosyasına girdikten sonra subdomainleri tek tek incelemeye başladım. support.futurevera.thm adresinin sertifikasını görüntülediğimizde onun da altında bir subdomain olduğunu öğreniyoruz.

Bu subdomainide /etc/hosts dosyasına girdikten sonra ziyaret ettiğimizde bizi bayrağın url yapısında bulunduğu boş bir adrese yönlendiriyor.

1
2
3
4
5
6
7
$ curl secrethelpdesk934752.support.futurevera.thm -i
HTTP/1.1 302 Found
Date: Thu, 27 Mar 2025 20:52:15 GMT
Server: Apache/2.4.41 (Ubuntu)
Location: http://flag{beea0d6***ae81b2f}.s3-website-us-west-3.amazonaws.com/
Content-Length: 0
Content-Type: text/html; charset=UTF-8
This post is licensed under CC BY 4.0 by the author.