summaryrefslogtreecommitdiff
path: root/posts/deadface23_hostbusters3.md
diff options
context:
space:
mode:
authorVineet Kumar <git@vineetk.net>2026-05-05 11:43:52 -0400
committerVineet Kumar <git@vineetk.net>2026-05-05 11:43:52 -0400
commitc58adc06f9b7cfbe818fb7fd3a68f5b66960a620 (patch)
treee536b8de30ec450e2e7ce9c22e44fc5474640aec /posts/deadface23_hostbusters3.md
parentb35228ff7370f8d9ef2b45bd09cfb974acf1254d (diff)
switched to haunt from hugo
Diffstat (limited to 'posts/deadface23_hostbusters3.md')
-rw-r--r--posts/deadface23_hostbusters3.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/posts/deadface23_hostbusters3.md b/posts/deadface23_hostbusters3.md
new file mode 100644
index 0000000..238ea65
--- /dev/null
+++ b/posts/deadface23_hostbusters3.md
@@ -0,0 +1,37 @@
1title: "DEADFACE CTF 2023 Host Busters 3 Writeup"
2date: 2023-10-26 12:00
3---
4> Continue characterizing the machine. Is there any way you can
5escalate to a user that has permissions the vim user does not have? Find
6the flag associated with this user.
7Submit the flag as `flag{flag_here}`.
8
9```
10vim@ghost404.deadface.io letmevim
11```
12
13You first login to vim, which has vim open. Then you escape from it like you
14did in the OverTheWire Bandit challenges with `:set shell=bash` and `:shell`. Now you have a proper shell over SSH.
15
16The first thing I looked at after mistaking Host Busters 1's key in the home
17directory as 3 was look at what other user home directories there were by
18running `ls /home`. I saw there were a few users, notably `gh0st404` and
19`spookyboi`.
20
21`gh0st404`'s user home directory had his OpenSSH private key as
22world-readable and in plain sight not in his `.ssh` hidden
23directory. It being world-readable would have had OpenSSH scream at you, but
24them being stupid was good for us.
25
26So, once you use that SSH private key to login as `gh0st404`,
27you can check the contents of hostbusters3.txt and you got the flag.
28
29```
30cat hostbusters3.txt
31```
32
33> "This is why you should have come to the Monday meetings for OverTheWire."
34~Joey, FPUSEC President
35
36[Here's](https://asciinema.org/a/ZhQQwEVwgaqtGCuaqRf6NWu8N) an
37asciinema of the entire thing in action.