0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【TryHackMe】Hidden Deep Into my Heart:Walkthrough

0
Posted at

概要

TryHackMe「Hidden Deep Into my Heart」のWalkthroughです。

Task1

Q1.What is the flag?

ポートスキャンを実行します。

$ nmap -Pn -sCV -T4 -p- 10.48.190.6 -oN nmap_result
PORT     STATE SERVICE VERSION
22/tcp   open  ssh     OpenSSH 8.9p1 Ubuntu 3ubuntu0.10 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey: 
|   256 c1:9d:e7:72:66:60:74:f2:d6:d6:76:d7:bd:fd:bd:ca (ECDSA)
|_  256 f7:fe:81:29:cb:d4:79:68:7b:52:85:28:2e:ac:77:6f (ED25519)
5000/tcp open  http    Werkzeug httpd 3.1.5 (Python 3.10.12)
|_http-title: Love Letters Anonymous
|_http-server-header: Werkzeug/3.1.5 Python/3.10.12
| http-robots.txt: 1 disallowed entry 
|_/cupids_secret_vault/*

ポートの稼働状況が分かりました。

ポート サービス バージョン
22 ssh OpenSSH 8.9p1
5000 http Werkzeug/3.1.5 Python/3.10.12

5000番ポートにアクセスします。

image.png

ディレクトリスキャンをします。

$ dirsearch -u http://10.48.190.6:5000/
[07:59:23] 200 -   70B  - /robots.txt

/robots.txtを確認すると、新たなパスを発見しました。

$ curl http://10.48.190.6:5000/robots.txt
User-agent: *
Disallow: /cupids_secret_vault/*

# cupid_arrow_2026!!!

/cupids_secret_vault/にアクセスします。

image.png

更にディレクトリスキャンをし、階層を深堀します。

$ dirsearch -u http://10.48.190.6:5000/cupids_secret_vault/
[08:11:31] 200 -    2KB - /cupids_secret_vault/administrator

/cupids_secret_vault/administratorを発見しました。
アクセスすると、ログイン画面が表示されました。

image.png

管理画面であること、robots.txtに記載の文字列、という情報を組み合わせます。
Username:admin、Password:cupid_arrow_2026!!!
でログインに成功しました。

image.png

A.THM{l0v3_is_in_th3_r0b0ts_txt}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?