{"id":685,"date":"2025-12-05T19:57:00","date_gmt":"2025-12-05T19:57:00","guid":{"rendered":"https:\/\/zombierollz.blog\/?p=685"},"modified":"2025-12-05T14:01:33","modified_gmt":"2025-12-05T14:01:33","slug":"aoc2025-room-1-linux-cli-shells-bells","status":"publish","type":"post","link":"https:\/\/zombierollz.blog\/?p=685","title":{"rendered":"AoC2025 Room 1 Linux CLI SHells Bells"},"content":{"rendered":"\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-1 wp-block-paragraph\">https:\/\/tryhackme.com\/room\/linuxcli-aoc2025-o1fpqkvxti<br>Created by: tryhackme, Maxablancas, TactfulTurtle<\/p>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-2 wp-block-paragraph\">It&#8217;s that time of the year again! Advent of Cyber at TryHackMe. I always enjoy this event. Last year, I was unable to participate due to college sucking up all of my time, so I&#8217;m excited to be back! This room is guided by THM&#8217;s protagonist, McSkidy!<\/p>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-3 wp-block-paragraph\">&#8220;The unthinkable has happened &#8211; McSkidy has been kidnapped. Without her, Wareville\u2019s defenses are faltering, and Christmas itself hangs by a thread. But panic won\u2019t save the season. A long road lies ahead to uncover what truly happened. The TBFC (The Best Festival Company) team already brainstorms what to do next, and their first lead points to the tbfc-web01, a Linux server processing Christmas wishlists. Somewhere within its data may lie the truth: traces of McSkidy\u2019s final actions, or perhaps the clues to King Malhare\u2019s twisted vision for EASTMAS.&#8221;<\/p>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-4 wp-block-paragraph\">This first room surrounds the linux terminal. This is a beginner friendly room and starts off with a few basic commands.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-054850-1024x457.png\" alt=\"\" class=\"wp-image-686\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-054850-1024x457.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-054850-300x134.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-054850-768x342.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-054850-1536x685.png 1536w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-054850.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-5 wp-block-paragraph\">McSkiddy shows how to find hidden files\/folders within Linux with the ls -la command. With this, we obtain our first Advent flag! At this point, we know the answer to the first question as well.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-055318-1024x397.png\" alt=\"\" class=\"wp-image-687\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-055318-1024x397.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-055318-300x116.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-055318-768x298.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-055318-1536x596.png 1536w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-055318.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-6 wp-block-paragraph\">Next, we move on to the powerful grep command. While in the \/var\/log, if you ls -la, you get a lot of files and folders. Per THM, \/var\/log is &#8220;\u2026where all the security events(logs) are stored.&#8221; In order to make it easier, let&#8217;s use grep to search for what we need. McSkidy wants us to look at the auth.log.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"748\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061747-1024x748.png\" alt=\"\" class=\"wp-image-688\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061747-1024x748.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061747-300x219.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061747-768x561.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061747.png 1230w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"529\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061953-1024x529.png\" alt=\"\" class=\"wp-image-689\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061953-1024x529.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061953-300x155.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061953-768x397.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-061953.png 1238w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-7 wp-block-paragraph\">That&#8217;s a lot of failed passwords from eggbox! Next up is the find command. With it, we find a file ending in .sh extension which means it&#8217;s a script! Scripts are used by admins but also attackers to automate commands.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"66\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062419-1024x66.png\" alt=\"\" class=\"wp-image-690\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062419-1024x66.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062419-300x19.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062419-768x49.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062419.png 1218w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"269\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062546.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062546.png 864w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062546-300x93.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062546-768x239.png 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"537\" height=\"342\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062717.png\" alt=\"\" class=\"wp-image-692\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062717.png 537w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062717-300x191.png 300w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"704\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062921.png\" alt=\"\" class=\"wp-image-693\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062921.png 550w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-062921-234x300.png 234w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-8 wp-block-paragraph\">Sir Carrotbane seems to be the one who has attacked the server and replaced the Xmas Wishlist with an Eastmas one! Going to the website, we see the details of what has transpired.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"501\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063633-1024x501.png\" alt=\"\" class=\"wp-image-694\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063633-1024x501.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063633-300x147.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063633-768x376.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063633.png 1160w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-9 wp-block-paragraph\">THM goes over some other Linux commands as well, such as uptime, ip addr, and ps aux. They also bring up \/etc\/shadow, which is where every username and hashed password is stored. Next up, we wanna switch to root command with sudo su. We are doing this because we are unable to look at the command history with our current account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"115\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063639.png\" alt=\"\" class=\"wp-image-695\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063639.png 641w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-063639-300x54.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-10 wp-block-paragraph\">Now, let&#8217;s look at the bash history. Instead of doing cat .bash_history, you can also just use the history command. Doing so, we obtain our last flag for the room!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"366\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064823-1024x366.png\" alt=\"\" class=\"wp-image-696\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064823-1024x366.png 1024w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064823-300x107.png 300w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064823-768x274.png 768w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064823.png 1420w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-11 wp-block-paragraph\">Let&#8217;s check out the other questions we need to answer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"197\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064257.png\" alt=\"\" class=\"wp-image-697\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064257.png 584w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064257-300x101.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"201\" src=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064506.png\" alt=\"\" class=\"wp-image-699\" srcset=\"https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064506.png 585w, https:\/\/zombierollz.blog\/wp-content\/uploads\/2025\/12\/Screenshot-2025-12-02-064506-300x103.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/figure>\n\n\n\n<p class=\"has-palette-color-7-color has-palette-color-4-background-color has-text-color has-background has-link-color wp-elements-12 wp-block-paragraph\">There is also an option to start a side quest. There is a hint in the room that tells you where to go, and you can follow along if you wish. I might try and do this later, but I really want to just focus on doing the main Advent events and keep doing the SOC path.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/tryhackme.com\/room\/linuxcli-aoc2025-o1fpqkvxtiCreated by: tryhackme, Maxablancas, TactfulTurtle It&#8217;s that time of the year again! Advent of Cyber at TryHackMe. I always enjoy this event. Last year, I was unable to participate due to college sucking up all of my time, so I&#8217;m excited to be back! This room is guided by THM&#8217;s protagonist, McSkidy! &#8220;The unthinkable has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=685"}],"version-history":[{"count":2,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":700,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions\/700"}],"wp:attachment":[{"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zombierollz.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}