<?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 Muhammad Bilal on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Bilal on Medium]]></description>
        <link>https://medium.com/@muhammadbilaly?source=rss-4fdea82cefda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fryJUqTQaexzd70v</url>
            <title>Stories by Muhammad Bilal on Medium</title>
            <link>https://medium.com/@muhammadbilaly?source=rss-4fdea82cefda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 08:34:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muhammadbilaly/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 Setup Kioptrix Level 1 in VirtualBox?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@muhammadbilaly/how-to-setup-kioptrix-level-1-in-virtualbox-ac86a5b35ec7?source=rss-4fdea82cefda------2"><img src="https://cdn-images-1.medium.com/max/1647/1*IA1ZiYTZjB6uN0JA1VvPDw.png" width="1647"></a></p><p class="medium-feed-snippet">During the training of interns, I found that many students struggle to setup kioptrix level 1 machine in setting up the virtualbox.</p><p class="medium-feed-link"><a href="https://medium.com/@muhammadbilaly/how-to-setup-kioptrix-level-1-in-virtualbox-ac86a5b35ec7?source=rss-4fdea82cefda------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@muhammadbilaly/how-to-setup-kioptrix-level-1-in-virtualbox-ac86a5b35ec7?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac86a5b35ec7</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[kioptrix-level-1]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[kioptrix]]></category>
            <category><![CDATA[environment-setup]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 09:16:09 GMT</pubDate>
            <atom:updated>2025-11-30T09:20:41.966Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The Puppet Master — HTB OSINT Challenge]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@muhammadbilaly/the-puppet-master-htb-osint-challenge-a15743b2887f?source=rss-4fdea82cefda------2"><img src="https://cdn-images-1.medium.com/max/1578/1*xq_DfGV8ou8YNvhBLzSjEw.png" width="1578"></a></p><p class="medium-feed-snippet">In this walkthrough, I would exploring puppet master challenge from hackthebox.</p><p class="medium-feed-link"><a href="https://medium.com/@muhammadbilaly/the-puppet-master-htb-osint-challenge-a15743b2887f?source=rss-4fdea82cefda------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@muhammadbilaly/the-puppet-master-htb-osint-challenge-a15743b2887f?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/a15743b2887f</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[osint-investigation]]></category>
            <category><![CDATA[hackthebox-challenge]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Tue, 04 Nov 2025 15:22:20 GMT</pubDate>
            <atom:updated>2025-11-04T15:30:46.037Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Hack The Box — Starting Point Tier 0 (Free Machines & Without Flags)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@muhammadbilaly/hack-the-box-starting-point-tier-0-free-machines-without-flags-1ebcbbc08783?source=rss-4fdea82cefda------2"><img src="https://cdn-images-1.medium.com/max/1051/1*3UTC5VHy49-kdCAklCDQPw.png" width="1051"></a></p><p class="medium-feed-snippet">This is a revisit of HackTheBox&apos;s starting point machines, tier 0. I was familiar with the techniques before writing the walkthrough. In&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@muhammadbilaly/hack-the-box-starting-point-tier-0-free-machines-without-flags-1ebcbbc08783?source=rss-4fdea82cefda------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@muhammadbilaly/hack-the-box-starting-point-tier-0-free-machines-without-flags-1ebcbbc08783?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ebcbbc08783</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[starting-point-machines]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 06:45:26 GMT</pubDate>
            <atom:updated>2025-10-11T06:45:26.625Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Sherlock — PhishNet]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@muhammadbilaly/sherlock-phishnet-331ff8b0a591?source=rss-4fdea82cefda------2"><img src="https://cdn-images-1.medium.com/max/1058/1*65_aop-q0h4pV2S7eQ9d8w.png" width="1058"></a></p><p class="medium-feed-snippet">This task is specifically related to phishing emails with an attachment. This is the description of the task.</p><p class="medium-feed-link"><a href="https://medium.com/@muhammadbilaly/sherlock-phishnet-331ff8b0a591?source=rss-4fdea82cefda------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@muhammadbilaly/sherlock-phishnet-331ff8b0a591?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/331ff8b0a591</guid>
            <category><![CDATA[phishnet]]></category>
            <category><![CDATA[phishing-email-analysis]]></category>
            <category><![CDATA[hacktheblue]]></category>
            <category><![CDATA[sherlock]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 05:35:42 GMT</pubDate>
            <atom:updated>2025-10-08T05:35:42.999Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Sherlocks —  introduction and Brutus Machine]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@muhammadbilaly/sherlocks-introduction-and-brutus-machine-430882aab232?source=rss-4fdea82cefda------2"><img src="https://cdn-images-1.medium.com/max/630/1*Zv5_PkJ1_rT47pFL2PLVdQ.png" width="630"></a></p><p class="medium-feed-snippet">I read the following articles and found that Sherlock hackthebox has the following categories</p><p class="medium-feed-link"><a href="https://medium.com/@muhammadbilaly/sherlocks-introduction-and-brutus-machine-430882aab232?source=rss-4fdea82cefda------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@muhammadbilaly/sherlocks-introduction-and-brutus-machine-430882aab232?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/430882aab232</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hacktheblue]]></category>
            <category><![CDATA[brutus]]></category>
            <category><![CDATA[sherlock]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Sun, 05 Oct 2025 06:24:52 GMT</pubDate>
            <atom:updated>2025-10-05T06:24:52.435Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Sherlocks — SalineBreeze-1]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@muhammadbilaly/sherlocks-salinebreeze-1-437bf3f2cfba?source=rss-4fdea82cefda------2"><img src="https://cdn-images-1.medium.com/max/902/1*Ab_yBytySDJKkC-HHdon2g.png" width="902"></a></p><p class="medium-feed-snippet">SalineBreeze-1 is the Sherlock task in hackthebox. This is the CTI Scanerio.</p><p class="medium-feed-link"><a href="https://medium.com/@muhammadbilaly/sherlocks-salinebreeze-1-437bf3f2cfba?source=rss-4fdea82cefda------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@muhammadbilaly/sherlocks-salinebreeze-1-437bf3f2cfba?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/437bf3f2cfba</guid>
            <category><![CDATA[cti]]></category>
            <category><![CDATA[salinebreeze-1]]></category>
            <category><![CDATA[sherlock]]></category>
            <category><![CDATA[cyber-threat-intelligence]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Sat, 04 Oct 2025 06:00:40 GMT</pubDate>
            <atom:updated>2025-10-04T06:00:40.070Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Overthewire - Bandit]]></title>
            <link>https://medium.com/@muhammadbilaly/overthewire-bandit-03ff0b58779b?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/03ff0b58779b</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[openssl]]></category>
            <category><![CDATA[overthewire]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Thu, 29 May 2025 08:13:12 GMT</pubDate>
            <atom:updated>2025-05-29T08:13:12.498Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bandit Level 0</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUEQ2hdcEuKMymyTFtlmyQ.png" /></figure><p>The task is about learning SSH. Nothing fancy!</p><p><strong>#</strong>ssh <a href="/service/mailto:bandit0@bandit.labs.overthewire.org">bandit0@bandit.labs.overthewire.org</a> -p 2220</p><p>By default, the port of SSH is 22, but in this scenario, SSH is not running on the default port. It running on port 2220.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMpnV8Hpu60iCnCNEj77iQ.png" /></figure><h3><strong>Bandit Level 0 → Level 1</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6oq6GalCvCU9Pe5KGvHhzw.png" /></figure><p>A file was present with the readme name, and it had the password for the next level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uj00j5f_ysjnZj4DQBOp3w.png" /></figure><p>I used the discovered password and logged into the next level according to instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BS381N0WGIE477mOdI4vUA.png" /></figure><h3>Bandit Level 1 → Level 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*Lq0tOoMSheY-mefxAZIa7w.png" /></figure><p>I used the full path technique to read the dashed filename.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*U8yQNlF2l-xNK45wFm5V7Q.png" /></figure><h3>Bandit Level 2 → Level 3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*5439U46m-Nl2jTgrwu9t6Q.png" /></figure><p>I did SSH into bandit2 using the discovered password from the previous level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cB5Id9a_NXEeh9kT9lbyzg.png" /></figure><p>There was one file that had spaces in its name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tiMBOJRbrudq9un7JmJgrQ.png" /></figure><p>I used the \ technique to read the file.</p><h3>Bandit Level 3 → Level 4</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*Cj8MUryfyWfJ5fdmnjePYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LNA5Uj6eLwOO20UrpSD1Nw.png" /></figure><p>I used the following command to check the name of the hidden file.</p><p><strong>#</strong>ls -a</p><p>I used the following command to read the name of the hidden file.</p><p>#cat &lt;filename&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1n_pxUOMVh14JAlAL9mq0Q.png" /></figure><h3>Bandit Level 4 → Level 5</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*difS-AyGPHrYs5MLvbra0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_ggaQ7n7CfcP_iVIYEupw.png" /></figure><p>There are so many files inside inhere folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mv3eaA_1tyfMEasGvQQ-Cg.png" /></figure><p>I used cat to read all the files, and there is only one readable text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cvKwoV4TOU0BlYRrTz_cA.png" /></figure><p>The readable string is probably a password. I found the password in -file07</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*MQS3b_r46d-ekWKWZuP8HA.png" /></figure><h3>Bandit Level 5 → Level 6</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G_A-2GbtSlwqvJ2LIvK3tQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eaxW_7nS12tkde0I8pbKMg.png" /></figure><p>After doing a little research, I found a <a href="https://www.ducea.com/2008/02/12/linux-tips-find-all-files-of-a-particular-size/">website</a> that had similar commands.</p><p><strong>#</strong>find . -type f -size 1033c</p><p>where</p><p>. means the current working directory</p><p>type f is for file</p><p>-Size is for the writing size of the file. The file was in bytes, so I wrote c with it according to the website article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*KNHX-FxWiOVp69Qr1JNvrg.png" /></figure><h3>Bandit Level 6 → Level 7</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*vp5pBqwUNEpChR65Tz1uNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*svtpBWCNTKmqFYSoHTxHGg.png" /></figure><p>I used the following command to identify the file.</p><p><strong>#</strong>find / -size 33c -user bandit7 -group bandit6 2&gt;/dev/null</p><p>where</p><p>-user is for searching for a file owned by a username</p><p>-group is for searching for files owned by a group</p><p>2&gt;/dev/null is for handling the permission errors</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1N4V__KP3Tvpsb-jMIMsQ.png" /></figure><h3>Bandit Level 7 → Level 8</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*f8dDoTxSBBeFA7IYZwq2Mw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMuWJjNU3ks9z2EfJQjbtQ.png" /></figure><p>I used grep with the cat command for text filtering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*zyTxhSGR0ak2Y0KaGXJnjQ.png" /></figure><h3>Bandit Level 8 → Level 9</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*L92Xxlko9Sz9h9oA4LokhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3FWtDNo4pMaEC01UbIvPA.png" /></figure><p>I used the sort command to sort all the rows and uniq -c to count all the rows. grep “1 ” was helpful in filtering the line with a 1 count only.</p><p><strong>#</strong>cat data.txt|sort|uniq -c|grep “1 “</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*g9K37V3Vl4VzfGupBx9iKA.png" /></figure><h3>Bandit Level 9 → Level 10</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbFf7qtsZUfXTPwsHeKuhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMBwlCUFzzvOeOx7ej7raw.png" /></figure><p>I used strings to get only readable text in terminal output and used grep “==” for further text filtering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*KijOJs_pv-3MEuYTUvX1JA.png" /></figure><h3>Bandit Level 10 → Level 11</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*8GPhwleDlFH3hnJxkEJaUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-oWj7Fc4C_DsUi1AgiNag.png" /></figure><p>I found the following text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SMwwiQVdFwrH1rUA0EOdw.png" /></figure><p>I tried cyberchef and found the password by base64.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vqQsJQogrd43oWC9o4d3pg.png" /></figure><h3>Bandit Level 11 → Level 12</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lWWClNzlWEAixAgJRNh5ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v-judGDNsTZXvk8-Qbgkrg.png" /></figure><p>I used the following website to decrypt rot13.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UqhgQwBvMPSbZXNCfDCnuA.png" /></figure><h3>Bandit Level 12 → Level 13</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2IOC4Qr4z0FT-7By1AX8fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1QdDTHICYmxpQOCkEnxeQA.png" /></figure><p>According to task, the file given is hexdump. We need to reverse that first. I created a folder hexd in /tmp and used cd to go there.</p><p>I saw xxd man pages and found -r flag for reverting file from hexdump to binary.</p><p><strong>#</strong>man xxd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFDpKf9Mabj_YnUIOlTlmQ.png" /></figure><p>I redirected binary output in data2 file and used file command to check its signatures. It is gunzip compressed.</p><p><strong>#</strong>xxd -r data.txt &gt; data2</p><p><strong>#</strong>file data2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLejZ7GiSQ_NpkVuIRgNtg.png" /></figure><p>On research, I found an article on <a href="https://medium.com/@redswitches/gunzip-command-in-linux-with-examples-f78d9f792429">website</a>. the file extension visible in article was .gz so I added this extension with data2 file and used the following command to decompress the file.</p><p><strong>#</strong>mv data2 data2.gz</p><p><strong>#</strong>gunzip -d data2.gz</p><p><strong>#</strong>file data2</p><p>After extraction data2 file was not readable so I used file command and found that it bzip2 compressed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAAIjTBOG2QvYvk-w94BtQ.png" /></figure><p>I followed the same process.</p><p><strong>#</strong>mv data2 data2.bz2</p><p><strong>#</strong>bzip2 -d data2.bz2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBIMlmHqUiSKHcmW4ky-Tg.png" /></figure><p>The extracted file is again gzip compressed. I followed the same process which I used in previous step for gzip file extraction (renaming, gunzip command etc). The extracted file is tar file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*6g_eW3g-R1vVmSRqfbCMCg.png" /></figure><p>The man pages for tar command is overwhelming. I googled and found the following command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6G2nqbAxn4E4yG8BQEV9A.png" /></figure><p>I followed the similar technique and found data5.bin file which is also compressed with tar</p><p><strong>#</strong>mv data2 data2.tar</p><p><strong>#</strong>tar -xvf data2.tar</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*pOkyh2s-8MJu72D9kxHQ1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*oq_uoV8VqPTQ-T51wHJzkg.png" /></figure><p>I performed the same procedure again and found multiple compressions again. I kept using the needed commands from previous steps and found the password. It was irritating tbh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*3kAs1c__UJ_GFrR96KNJfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*_MMi8w7XFBhFPuK7HtZFAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p9VEcCS7sgwvbJOlbuozng.png" /></figure><h3>Bandit Level 13 → Level 14</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWaVvO15p8gDaXGR5aSG-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbgorTUAQQ-S4Fow3xYD1g.png" /></figure><p>I used the following command to access the bandit14</p><p><strong>#</strong>ssh bandit14@localhost -p 2220 -i sshkey.private</p><p>where -i is for using the key instead of a password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ltf1Sqwy3QI4IbDz7HOsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*O1dylEsRX57zx_1Wr2bziw.png" /></figure><h3>Bandit Level 14 → Level 15</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Y0FErqAvGgBHveO3wJfgA.png" /></figure><p>I tried to log in from my terminal and tried SSH with localhost from the previous user. Nothing worked, so I realized that only a connection was needed, so I used netcat.</p><p><strong>#</strong>netcat localhost 30000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*_dDpoxxgg7gsy_ybxKI_Jw.png" /></figure><h3>Bandit Level 15 → Level 16</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUuFk3bSZ8xTYQZ1nHKQxQ.png" /></figure><p>I tried to search on google about “netcat with tls” and found this in <a href="https://superuser.com/questions/346958/can-the-telnet-or-netcat-clients-communicate-over-ssl">superuser website</a> discussion.</p><p><strong>#</strong>openssl s_client -connect localhost:30001</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*nu6_N8RqJNNJFnm6tPkisg.png" /></figure><h3>Bandit Level 16 → Level 17</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9NdEx6efGnndhUBKvZnZA.png" /></figure><p>From the reading material, I guessed the need for nmap.</p><p><strong>#</strong>nmap localhost -sV -p31000–32000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGs-voIm4YaL5Ai1R0mWqQ.png" /></figure><p>There are 2 ports with SSL.</p><p><strong>#</strong>openssl s_client -connect localhost:31790</p><p>This command did not work, but it worked with echo.</p><p><strong>#</strong>echo “kSkvUpMQ7lBYyCM4GBPvCvT1BfWRy0Dx”|openssl s_client -connect localhost:31790</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J01vd2cWyEHkMIeo-7HQbg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03ff0b58779b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What a Beginner’s Malware Sample Actually Does to a Host]]></title>
            <link>https://medium.com/@muhammadbilaly/develop-a-simple-malware-for-prank-bbf5e0453f35?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf5e0453f35</guid>
            <category><![CDATA[pranks]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[malware-protection]]></category>
            <category><![CDATA[malware-removal]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Fri, 02 May 2025 15:06:56 GMT</pubDate>
            <atom:updated>2026-09-04T09:22:53.528Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of what gets called “malware” isn’t clever. It’s a few lines doing something the operating system already permits, placed somewhere the system already checks on every boot. That’s the idea I want to get across, so I use the smallest example I can: a Windows batch script that shuts the machine down, set to run at startup.</p><p>On its own it’s harmless in a VM and useless to a real attacker. But it demonstrates two things cleanly — a disruption payload and a persistence mechanism — and once you understand why those two pieces matter, you’ve got most of what you need to start reading real samples.</p><p>⚠️ Lab only. Run this inside a virtual machine, never on a machine you care about.</p><h3>Step 1: Create a snapshot of the Virtual Machine</h3><p>Go to the Machine and click on “Take Snapshot”. The snapshot name can be random or specific.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*JnIHnkCMRwMrW8tJkkTYXA.png" /></figure><p>I created a snapshot a few minutes ago, and it looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*DjAWaTo43v4ZZ-h3c9ddVg.png" /></figure><h3>Step 2: Write a Basic Shutdown Script</h3><p>Open Notepad and add the following line to the file.</p><pre>@echo off <br>shutdown.exe /s /f /t 2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*LfucypdSkrs39V8TOE_diw.png" /></figure><p>/t is for time (in seconds).</p><p>Save the file as shutdown.bat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*wpbBCvBFVVZJ0n92Dnj13Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/1*37ENCKNSFu70BXeT1aB9nA.png" /></figure><p>Test the script by double-clicking and see if it shuts down the windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*-lOqjT7DkTAOz9gA4Q6pXw.png" /></figure><h3>Step 3: Achieve Persistence</h3><p>We will achieve persistence by using the startup folder method. If we drag any file into this folder, then the file runs at startup.</p><p>Press Win + R, type <strong>shell:startup</strong> and press Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*_ROljwWSwMxARD9k5Ri-kQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*ovpoiksggg9o2p3y8Dvyfw.png" /></figure><p>Copy shutdown.bat into the folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*C-N0_3n77yuRkY6hbWqdvw.png" /></figure><p>Reboot the system (in VM) and observe behaviour. It will start and shutdown after a few seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*opvYPjbBjxRm1vzCfRCpdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*hl4SpNVPagiyDOh670Ck-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*aeAjuY4nLGX3CALySzHBbw.png" /></figure><p><strong>Step 4 (Optional): Monitor Registry Changes</strong></p><p>This step is optional and especially for people learning malware analysis.</p><p>Take a Regshot before and after adding the file to the startup folder or Task Scheduler. To be clear, take the first snapshot, then copy the file, and only after that take the second snapshot. Do <strong>not</strong> restart the computer in between — otherwise, the malware will execute and shut down the system as expected (you know what I mean).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*mnYmzRWkzz0zsOP87DwQOw.png" /><figcaption>After copying and before clicking on 2nd shot</figcaption></figure><p>After you click on compare and see the output. You will find the shutdown.bat file somewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNv8TG8kroxa8G6ZNxfizQ.png" /></figure><p><strong>Note:</strong> If you’re using this malware as a prank, make sure to set a sufficient delay in seconds. During that time, if you remove the .bat file from the startup folder, the malware will not execute again after removal.</p><p><strong>Conclusion:</strong> We created a basic form of script-based malware that demonstrates <em>Persistence mechanisms, the importance of monitoring startup entries, and why user education and system restrictions are critical</em> to preventing even basic malware execution.</p><p>You can follow me or message me on <a href="https://www.linkedin.com/in/bilal-younis/">LinkedIn</a> for help. To show support, you can buy me a coffee: <a href="https://www.buymeacoffee.com/bilalyounis">https://www.buymeacoffee.com/bilalyounis</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf5e0453f35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Cloud Learning Using Cloudskillsboost Labs]]></title>
            <link>https://medium.com/@muhammadbilaly/gcp-learning-using-gcp-labs-69959a8470a1?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/69959a8470a1</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[gcp-certification]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 12:04:53 GMT</pubDate>
            <atom:updated>2025-02-09T18:39:17.193Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Note:</strong> I was learning from <a href="https://www.cloudskillsboost.google/">https://www.cloudskillsboost.google/</a> and all concepts are being learned based on the labs.</p><blockquote><strong>Day 1 (06/02/2025) — Project ID, IAM, Google Cloud API</strong></blockquote><p>Today I explored a lab “<a href="https://www.cloudskillsboost.google/focuses/2794?parent=catalog&amp;path=8"><strong><em>A Tour of Google Cloud Hands-on Labs</em></strong></a>”. I followed the instructions and logged into the lab using the provided link and credentials.</p><p>At the start, they introduced temporary labs, the concept of credits, and scores in Cloudskillsboost.</p><p><strong>Project ID:</strong> A <a href="https://cloud.google.com/docs/overview/#projects">Google Cloud project</a> is an organizing entity for your Google Cloud resources. It often contains resources and services; for example, it may hold a pool of virtual machines, a set of databases, and a network that connects them together. Projects also contain settings and permissions, which specify security rules and who has access to what resources.</p><p>A <em>Project ID</em> is a unique identifier that is used to link Google Cloud resources and APIs to your specific project. Project IDs are unique across Google Cloud: there can be only one <strong>qwiklabs-gcp-xxx….</strong>, which makes it globally identifiable. If applications are unrelated (e.g., different clients, businesses), create a separate project. Each project has its own billing, resource limits (e.g., API requests, VM instances), and IAM policies.</p><p>when I started the lab, I was assigned a specific project ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*kgJkGPItRhsb2hZdfaAx1A.png" /></figure><p>The same project ID was visible in the console after I logged in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*9BTbKbMUijRCfUA9wp1Dzg.png" /></figure><p>Even after clicking on it, only one project entry is visible because it is a practice environment. In real life, multiple projects are common. Project ID cannot be changed once the project is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*wkkcsCkJ4Iu9RnzGQhiUaQ.png" /></figure><p><strong>Core services </strong>are visible in the navigation menu of the Google Cloud console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*txCi5jQKODMqTxzhNsk8vQ.png" /></figure><p>All services will be displayed if click on “<em>VIEW ALL PRODUCTS</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*cp8JP8UB7BNG_2fdtIt17A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKJYfxathmBalY0FJUf57Q.png" /></figure><p>You can refer to the <a href="https://cloud.google.com/products/?hl=en#top_of_page">Google Cloud products overview page</a> for documentation that covers each of these categories in more detail.</p><p><a href="https://cloud.google.com/iam/"><strong>Cloud Identity and Access Management (Cloud IAM)</strong></a> service is used to inspect and modify roles and permissions.</p><p>On the <strong>Navigation menu</strong>, click <strong>IAM &amp; Admin &gt; IAM</strong>. This opens a page that contains a list of users, permissions, and roles granted to specific accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*vhxIBOiIXEGlvsIANPn_PQ.png" /></figure><p>As you can, the current student account is not an owner account. The <em>Role</em> column displays Editor, which is one of three <em>basic roles</em> offered by Google Cloud. Basic roles set project-level permissions and, unless otherwise specified, control access and management to all Google Cloud services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7o564PMO1c3n7FtThxNcog.png" /></figure><p>The following table pulls definitions from the <a href="https://cloud.google.com/iam/docs/understanding-roles/#primitive\_roles">roles documentation</a>, which gives a brief overview of viewer, editor, and owner role permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*l9es-WBnMzQRPbI_L6xMfw.png" /></figure><p>As an editor, you can create, modify, and delete Google Cloud resources. However, you can’t add or delete members from Google Cloud projects.</p><p>To grant access, I clicked on “Grant Access”, added email and Role</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I8AICA0MZKic5kCnMqMQCg.png" /></figure><p>After saving it, it was reflected on the IAM page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SiVie8El_ZcD6OTM_FXbWw.png" /></figure><p><strong>Google Cloud APIs</strong> are a key part of Google Cloud. Like services, the 200+ APIs range in areas from business administration to machine learning and all easily integrate with Google Cloud projects and applications.</p><p>In Google Cloud Platform (GCP), most services require you to <strong>enable their APIs</strong> before you can use them. This ensures that only necessary services are activated, improving security and reducing unnecessary costs.</p><p>On the <strong>Navigation menu</strong>, click <strong>APIs &amp; Services &gt; Library</strong>. The left pane, under the header <strong>Category</strong>, displays the different categories available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*oAr6fXYMcD2q5NVyKzKnTA.png" /></figure><p>The task of this lab was to enable the “<strong>Dialogflow</strong>” API so I searched the keyword.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQC4qIvoCXt6FvRS1_I_kw.png" /></figure><p>There was an option to enable API and I clicked on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ES4HXqKh3eX4nrYZVaYgEg.png" /></figure><p><strong>Conclusion:</strong> I learned about project ID, IAM page role in permissions (editor, viewer, etc,) and the security purpose of Cloud API which we need to enable in real projects before using GCP services (not required to enable in the lab).</p><blockquote><strong>Day 2 (07/02/2025) — Region, Zone, Cloud Shell, VM</strong></blockquote><p>Today, I am exploring “<a href="https://www.cloudskillsboost.google/focuses/3563?catalog_rank=%7B%22rank%22%3A1%2C%22num_filters%22%3A0%2C%22has_search%22%3Atrue%7D&amp;parent=catalog&amp;search_id=41734175"><strong><em>C</em></strong><em>reate a Virtual Machine</em></a>”. Compute Engine allows you to create virtual machines.</p><p><strong>Virtual Machines (VMs)</strong> run different operating systems, including multiple Linux versions (Debian, Ubuntu, Suse, Red Hat, CoreOS) and Windows Servers, on Google&#39;s infrastructure. You can run thousands of virtual CPUs on a system that is designed to be fast and to offer strong consistency of performance.</p><p>VM can be created using either the console or the cloud shell</p><p><strong>Cloud Shell</strong> is a web-based terminal provided by <strong>Google Cloud Platform (GCP)</strong> that allows you to manage and interact with your cloud resources without needing to install anything on your local machine.</p><p>If you click on “<em>Activate Cloud Shell (G then S)</em>”, Cloud Shell will be launched.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*KpSDJ2L-zypv1jDbhIXeoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qAl8YDTiu6wK98u3zOzx2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*ifNwC4BVTMy6Ut10Zj7PNA.png" /></figure><p>When you are connected, you are already authenticated, and the project is set to your <strong>Project_ID</strong>, qwiklabs-gcp-00-2f6613980505. The output contains a line that declares the <strong>Project_ID</strong> for this session:</p><pre>Your Cloud Platform project in this session is set to qwiklabs-gcp-00-2f6613980505</pre><p>gcloud is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab completion.</p><ol><li>You can list the active account name with this command:</li></ol><pre>gcloud auth list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*Nd3bEO-VhmR9qssZ781bUg.png" /></figure><ol><li>You can list the project ID with this command:</li></ol><pre>gcloud config list project</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*TrHT6KVVIVXCbPloyUk4LA.png" /></figure><p>Certain Compute Engine resources live in regions or zones.</p><p><strong>Region</strong> is a specific geographical location where you can run your resources. Each region has one or more zones. For example, the us-central1 region denotes a region in the Central United States that has zones us-central1-a, us-central1-b, us-central1-c, and us-central1-f.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*4OgwfeStrRPUJg1zzCTz-w.png" /></figure><p>Resources that live in a zone are referred to as zonal resources. Virtual machine Instances and persistent disks live in a zone. To attach a persistent disk to a virtual machine instance, both resources must be in the same zone. Similarly, if you want to assign a static IP address to an instance, the instance must be in the same region as the static IP.</p><h3>Set the region and zone</h3><ol><li>Run the following command to set the project region for this lab:</li></ol><pre>gcloud config set compute/region us-east4</pre><p>2. To create a variable for region, run the following command:</p><pre>export REGION=us-east4</pre><p>3. Run the following command to create a variable for the zone:</p><pre>export ZONE=us-east4-a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-MvwZAOPb5JkC4SnuxB0eA.png" /></figure><p>The first command set the region for us. Variable option can be used instead of that as well.</p><p><strong>Note: </strong>When you run gcloud on your own machine, the config settings are persisted across sessions. But in Cloud Shell, you need to set this for every new session or reconnection.</p><h3>Create a new instance from the Cloud console</h3><p>In the <strong>Cloud console</strong>, on the <strong>Navigation menu</strong> (☰), click <strong>Compute Engine</strong> &gt; <strong>VM Instances</strong>.</p><p>This may take a minute to initialize for the first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*Uev7GY598L4MNVjmr8z62w.png" /></figure><p>To create a new instance, click <strong>Create Instance</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*yepWs7CSlAifA8h-bCRaJw.png" /></figure><p>In the <strong>Machine configuration</strong>:</p><p>Enter the values for the following fields:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*RwkJTEInNE2nNGLuWM7RXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ae0xuOsbEIKhUlz7DgNW0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*xVg3vUUfiS3iLn3bWG2xcw.png" /></figure><p>Click <strong>OS and storage</strong>.</p><p>Click <strong>Change</strong> to begin configuring your boot disk and select the values for:</p><ul><li><strong>Operating system</strong>: Debian</li><li><strong>Version</strong>: Debian GNU/Linux 11 (bullseye)</li><li><strong>Boot disk type</strong>: Balanced persistent disk</li><li><strong>Size</strong>: 10 GB</li></ul><p>Several images are available, including Debian, Ubuntu, CoreOS, and premium images such as Red Hat Enterprise Linux and Windows Server. For more information, see the <a href="https://cloud.google.com/compute/docs/images">Operating System documentation</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*CQmH29ijoe1wFFDJ7W0C_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-LJRkBPV2rtxdezZxGGPQg.png" /></figure><p>Click <strong>Networking</strong>.</p><ul><li><strong>Firewall</strong>: Allow HTTP traffic</li></ul><p>Select this option in order to access a web server that you install later.</p><p><strong>Note: </strong>This automatically creates a firewall rule to allow HTTP traffic on port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfxioCOTObHteZkA_D89Vg.png" /></figure><p>Once all sections are configured, scroll down and click <strong>Create</strong> to launch your new virtual machine instance.</p><p>It should take about a minute for the VM, gcelab, to be created. After gcelab is created, the <strong>VM Instances</strong> page lists it in the VM instances list.</p><p>To use SSH to connect to the VM, click <strong>SSH</strong> to the right of the instance name, gcelab. This launches an SSH client directly from your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qoWGJszQ02qeyM9SLkGnA.png" /></figure><p>Now you install an NGINX web server, one of the most popular web servers in the world, to connect your VM to something.</p><p>Run the following command to update the OS, install nginx, and see if nginx is running:</p><pre>sudo apt-get update<br>sudo apt-get install -y nginx<br>ps auwx | grep nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4CyupoNyTzuZBHUnbeK_w.png" /></figure><p>nginx is running so the default page should be visible if we visit public page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKs1H2DbSvY_fiW_qX8Omw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*yfIFeirrmcYrc_GcN_Us3A.png" /></figure><h3>Create a new instance with gcloud</h3><p>Instead of using the Cloud console to create a VM instance, use the command line tool gcloud, which is pre-installed in <a href="https://cloud.google.com/developer-shell/#how_do_i_get_started">Google Cloud Shell</a>.</p><p>In Cloud Shell, run the following gcloud command to create a new VM instance from the command line:</p><pre>gcloud compute instances create gcelab2 --machine-type e2-medium --zone=$ZONE</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9xZiVoEj3B60Wlyd2tpiQ.png" /></figure><p>The new instance has these default values:</p><ul><li>The <a href="https://cloud.google.com/compute/docs/images#debian">Debian 11 (bullseye)</a> image.</li><li>The e2-medium <a href="https://cloud.google.com/compute/docs/machine-types">machine type</a>.</li><li>A root persistent disk with the same name as the instance; the disk is automatically attached to the instance.</li></ul><p>When working in your own project, you can specify a <a href="https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type">custom machine type</a>.</p><p>To see all the defaults, run the following command:</p><pre>gcloud compute instances create --help</pre><p><strong>Note:</strong> You can set the default region and zones that gcloud uses if you are always working within one region/zone and you don&#39;t want to append the --zone flag every time.</p><p>To do this, run these commands:</p><p>gcloud config set compute/zone ...</p><p>gcloud config set compute/region ...</p><p>In the Cloud console, on the <strong>Navigation menu</strong>, click <strong>Compute Engine &gt; VM instances</strong>. Or if you still had the VM instances page open, just click <strong>Refresh</strong>. Your two new instances should be listed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JnwWpSnVcYsBF_DkMCYQ-A.png" /></figure><p>You can also use SSH to connect to your instance via gcloud. Make sure to add your zone, or omit the --zone flag if you&#39;ve set the option globally:</p><pre>gcloud compute ssh gcelab2 --zone=Zone</pre><p>Leave the passphrase empty and click Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4INksx-BMlVin6ZjeXoew.png" /></figure><p><strong>Conclusion:</strong> I learned about Region, Zone, Cloud shell, and VM creation process using the console and cloud shell.</p><blockquote><strong>Day 3 (08/02/2025) — Windows VM and RDP connection in it</strong></blockquote><p>Today I am exploring “<a href="https://www.cloudskillsboost.google/focuses/560?catalog_rank=%7B%22rank%22%3A1%2C%22num_filters%22%3A0%2C%22has_search%22%3Atrue%7D&amp;parent=catalog&amp;search_id=41759611">Compute Engine: Qwik Start — Windows</a>”. Compute Engine lets you create and run virtual machines on Google infrastructure. In this hands-on lab, you learn how to launch a Windows Server instance in Compute Engine and use Remote Desktop Protocol (RDP) to connect to it. RDP is a protocol like SSH but we will have a GUI instead of a terminal.</p><p>I started the lab and accessed the console directly. Before doing anything, I preferred to launch the Cloud Shell and check the current user and project.</p><ol><li>You can list the active account name and project ID with these two commands.</li></ol><pre>gcloud auth list<br>gcloud config list project</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*yFL-4vV6Sgxfjx-c4iT_9Q.png" /></figure><h3>Create a virtual machine instance</h3><p>In the Cloud Console, on the <strong>Navigation menu</strong>, click <strong>Compute Engine &gt; VM instances</strong>, and then click <strong>Create Instance</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*LKcSMeImd8kL4riV6dZNAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*WLhd1q3HJCCHwZCoWSc1DA.png" /></figure><p>In the <strong>Machine configuration,</strong> I am choosing the following options mentioned in the lab. In real life, it can be different (based on requirement).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jXKc90dzNmvgT-DX2_AcyQ.png" /></figure><p>In the <strong>OS and storage,</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSulZTr5uizhM-67SHLQ7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6hhI2BB8Bd1Dk6pr6NyEkg.png" /></figure><p>I clicked “Select” and Create to complete the VM creation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nKLPwtSxhhIECArKAnN3ng.png" /></figure><h3>Remote Desktop (RDP) into the Windows Server</h3><p>The server instance may not be ready to accept RDP connections, as it takes a while for all OS components to initialize.</p><p>To see whether the server instance is ready for an RDP connection, run the following command at your Cloud Shell terminal command line and please make to replace [instance] with the VM Instance that you created earlier.</p><pre>gcloud compute instances get-serial-port-output [instance] --zone=us-central1-c<br>gcloud compute instances get-serial-port-output instance-20250208-075843 --zone=us-central1-c</pre><p><a href="https://console.cloud.google.com/compute/instancesDetail/zones/us-central1-c/instances/instance-20250208-075843?cloudshell=true&amp;inv=1&amp;invt=AbpAOQ&amp;project=qwiklabs-gcp-01-e361f9065c42">instance-20250208–075843</a> is the VM name I used during creation.</p><p>If prompted, type N and press ENTER.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1icExTc0_7rTBYwe8_HiYA.png" /></figure><p>I can see that the instance is ready to use. We can use the command in a few seconds again if it does not display this message.</p><h3>RDP into the Windows Server</h3><p>To set a password for logging into the RDP, run the following command in Cloud Shell. Be sure you replace [instance] with the VM Instance that you created and set [username] as <strong>admin</strong>.</p><pre>gcloud compute reset-windows-password [instance] --zone us-central1-c --user [username]<br>gcloud compute reset-windows-password instance-20250208-075843 --zone us-central1-c --user admin</pre><p>If asked Would you like to set or reset the password for [admin] (Y/n)?, enter Y. Record the password for use in later steps to connect.</p><p>The password set by the cloud is “<em>#$hvAb4-lZd,d7V”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seGLvSqeH8EmJxE8ftvygw.png" /></figure><p>Connect to your server. There are different ways to connect to your server through RDP. I used Windows “<em>Remote Desktop Connection</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKtb8JS_y2lTexoURZPHoQ.png" /></figure><p>External IP: 104.197.149.42</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*QDtgVHqty6sRJVQxjqGa8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*pRvvs1WVcjI9-Ym7-vgyZg.png" /></figure><p>I got the GUI interface of my Cloud VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*zz88S8bdtCMHGFlDcQA79w.png" /></figure><p>That’s it.</p><p><strong>Conclusion: </strong>I understood how can I create the window VM in the cloud by simply changing the boot disk to a Windows image. After that, we can RDP using any method or software. In my case, I was using the windows so used the Remote Desktop connection.</p><blockquote><strong>Day 4 (09/02/2025) — Cloud Shell and gcloud foundation (to set the region, zone, environment variables, logs, firewall logs, and VM creation — with ssh, installation of nginx etc, set the HTTP firewall rule etc)</strong></blockquote><p>Today I am exploring “<a href="https://www.cloudskillsboost.google/focuses/563?catalog_rank=%7B%22rank%22%3A1%2C%22num_filters%22%3A0%2C%22has_search%22%3Atrue%7D&amp;parent=catalog&amp;search_id=41786104">Getting Started with Cloud Shell and gcloud</a>”. It is probably about the usage of CloudShell. Although it is already discussed in one of the previous labs but had very few commands.</p><p>I followed the steps and started the lab. After that, I opened the cloud shell directly because the lab is about practicing the terminal for cloud. right?</p><p>You can list the active account name and project ID with these commands:</p><pre>gcloud auth list<br>gcloud config list project</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*F5wBR6LKd4HkR-ovcUW5SA.png" /></figure><p>This time, the lab did not set the project value itself. There are two commands at the start of the shell to list the projects and set the project (visible in above screenshot).</p><pre>gcloud projects list<br>gcloud config set project qwiklabs-gcp-00-db761ba8e2d6<br>gcloud config list project</pre><p>I checked the project list. There are two projects. I selected the one on which I need to work and confirmed that if the project is selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*7RXVDAzWlOhpZrguOZ8MIw.png" /></figure><h3>Configuring your environment</h3><p>At the start, the google team introduced with regions and zones again because we normally set the region and zone in command of gcloud. This is the table containing some famous zones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*9pK3uQYBBaYQJJbTi9Tu2g.png" /></figure><p><strong>Note:</strong> If you want to attach a persistent disk to a virtual machine instance, both resources must be in the same zone. Similarly, if you want to assign a static IP address to an instance, the instance must be in the same region as the static IP address.</p><p>The lab introduces few commands regarding setting the zone and region first</p><p>Set the region to&lt;REGION&gt;</p><pre>gcloud config set compute/region REGION</pre><p>To view the project region setting, run the following command:</p><pre>gcloud config get-value compute/region</pre><p>Set the zone to &lt;ZONE&gt;:</p><pre>gcloud config set compute/zone ZONE</pre><p>To view the project zone setting, run the following command:</p><pre>gcloud config get-value compute/zone</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVDbQTksq_PhCq500SGdpQ.png" /></figure><h3>Finding project information</h3><p>Copy your project ID to your clipboard or text editor. In the Cloud Console, on the Dashboard, under <strong>Project info</strong>. (Click <strong>Navigation menu</strong>, and then click <strong>Cloud overview &gt; Dashboard</strong>.)</p><p>In Cloud Shell, run the following gcloud command, to view the project id for your project:</p><pre>gcloud config get-value project</pre><p>In Cloud Shell, run the following gcloud command to view details about the project:</p><pre>gcloud compute project-info describe --project $(gcloud config get-value project)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxhaxKyCnU-P2mjctL3cDA.png" /></figure><p>Find the zone and region metadata values in the output. You’ll use the zone (google-compute-default-zone) from the output later in this lab.</p><p><strong>Note: </strong>When the google-compute-default-region and google-compute-default-zone keys and values are missing from the output, no default zone or region is set. The output includes other useful information regarding your project. Take some time to explore this in more detail.</p><h3>Setting environment variables</h3><p>Environment variables define your environment and help save time when you write scripts that contain APIs or executables.</p><p>Create an environment variable to store your Project ID:</p><pre>export PROJECT_ID=$(gcloud config get-value project)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLJgTxl_MQ9k5TjWYb-nKg.png" /></figure><p>Create an environment variable to store your Zone:</p><pre>export ZONE=$(gcloud config get-value compute/zone)</pre><p>To verify that your variables were set properly, run the following commands:</p><pre>echo -e &quot;PROJECT ID: $PROJECT_ID\nZONE: $ZONE&quot;</pre><p>If the variables were set correctly, the echo commands will output your Project ID and Zone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fdMAPA_6ylVK4ECVLRm_g.png" /></figure><h3>Creating a virtual machine with the gcloud tool</h3><p>We did this in the previous lab as well.</p><p>To create your VM, run the following command:</p><pre>gcloud compute instances create gcelab2 --machine-type e2-medium --zone $ZONE</pre><p><strong>Command details</strong></p><ul><li>gcloud compute allows you to manage your Compute Engine resources in a format that&#39;s simpler than the Compute Engine API.</li><li>instances create creates a new instance.</li><li>gcelab2 is the name of the VM.</li><li>The --machine-type flag specifies the machine type as <em>e2-medium</em>.</li><li>The --zone flag specifies where the VM is created.</li><li>If you omit the --zone flag, the gcloud tool can infer your desired zone based on your default properties. Other required instance settings, such as machine type and image, are set to default values if not specified in the create command.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxzgRvQwz3wvuLiCChQ1CQ.png" /></figure><p>To open help for the create command, run the following command:</p><pre>gcloud compute instances create --help</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*9Fb_tDA4NyvG1ubOxcXQdQ.png" /></figure><h3>Exploring gcloud commands</h3><p>The gcloud tool offers simple usage guidelines that are available by adding the -h flag (for help) onto the end of any gcloud command.</p><p>Run the following command:</p><pre>gcloud -h<br>gcloud config --help<br>gcloud help config</pre><p>You can access more verbose help by appending the --help flag onto a command or run the gcloud help command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*5kfRHJnl7Ui49w5kXzNC1A.png" /></figure><p>The results of the gcloud config --help and gcloud help config commands are equivalent. Both return long, detailed help.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*xro2RfLRXDsryf7Ejm8XeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*hmn2vreIpPvcHLIFERTcFg.png" /></figure><p>gcloud help config is also doing the same thing.</p><p>View the list of configurations in your environment:</p><pre>gcloud config list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*VL8QHT9Eb_7OziUj7VhIdg.png" /></figure><p>To see all properties and their settings:</p><pre>gcloud config list --all</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*vqc53QUf0uROZYOtMCssOA.png" /></figure><p>List your components:</p><pre>gcloud components list</pre><p>This command displays the gcloud components that are ready for you to use in this lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*sAyxV0KqwKzPtz0AyjuEWw.png" /></figure><h3>Filtering command-line output</h3><p>The gcloud command-line interface (CLI) is a powerful tool for working at the command line. You may want specific information to be displayed.</p><p>List the compute instance available in the project:</p><pre>gcloud compute instances list</pre><p>List the gcelab2 virtual machine:</p><pre>gcloud compute instances list --filter=&quot;name=(&#39;gcelab2&#39;)&quot;</pre><p>In the above command, you asked gcloud to only show the information matching the criteria i.e. a virtual instance name matching the criteria.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BuQCZetisTlAEqxOxJc7g.png" /></figure><p>List the firewall rules in the project:</p><pre>gcloud compute firewall-rules list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*u3AbXABj5i5ezMTHDKnBsg.png" /></figure><p>List the firewall rules for the default network:</p><pre>gcloud compute firewall-rules list --filter=&quot;network=&#39;default&#39;&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Li2GwreOshgNQy0VQYqKLw.png" /></figure><p>List the firewall rules for the default network where the allow rule matches an ICMP rule:</p><pre>gcloud compute firewall-rules list --filter=&quot;NETWORK:&#39;default&#39; AND ALLOW:&#39;icmp&#39;&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIuW1kmhAzKglorxv7hADw.png" /></figure><h3>Connecting to your VM instance</h3><p>gcloud compute makes connecting to your instances easy. The gcloud compute ssh command provides a wrapper around SSH, which takes care of authentication and the mapping of instance names to IP addresses.</p><p>To connect to your VM with SSH, run the following command:</p><pre>gcloud compute ssh gcelab2 --zone $ZONE</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wysIJEinY0iezwt3COoBIw.png" /></figure><p><strong>Note: </strong>You have connected to the virtual machine created earlier in the lab. Did you notice how the command prompt changed?</p><p>The prompt now says something similar to <strong>sa_107021519685252337470@gcelab2</strong>.</p><ul><li>The reference before the <strong>@</strong> indicates the account being used.</li><li>After the <strong>@</strong> sign indicates the host machine is being accessed.</li></ul><p>Install nginx web server onto virtual machine:</p><pre>sudo apt install -y nginx</pre><p><strong>Note:</strong> I was not able to take all screenshots so I started lab again and adding the remaining screenshots from here. The project ID, zone and region is kinda different when I started lab again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMuTKQPFGEPpP0C_ocUsmQ.png" /></figure><p>You don’t need to do anything here. To disconnect from SSH and exit the remote shell, run the following command:</p><pre>exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*SF08_GWphnsx2WPSOgIQpw.png" /></figure><h3>Updating the firewall</h3><p>When using compute resources such as virtual machines, it’s important to understand the associated firewall rules.</p><p>List the firewall rules for the project:</p><pre>gcloud compute firewall-rules list</pre><p>From the above you can see there are two networks available. The default network is where the virtual machine gcelab2 is located.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-H7tUpyZAlzqLIhL6Fueg.png" /></figure><p>Try to access the nginx service running on the gcelab2 virtual machine.</p><p>I tried the external IP address and it is indeed failed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*FMYr4vFO5kBSgSkC8kJ4cw.png" /></figure><p><strong>Note: </strong>Communication with the virtual machine will fail as it does not have an appropriate firewall rule. The <strong>nginx</strong> web server is expecting to communicate on <strong>tcp:80</strong>. To get communication working you need to:</p><ul><li>Add a tag to the gcelab2 virtual machine</li><li>Add a firewall rule for http traffic</li></ul><p>Add a tag to the virtual machine:</p><pre>gcloud compute instances add-tags gcelab2 --tags http-server,https-server</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ltnXXQa6wV9bH8vwUm8jbA.png" /></figure><p>Update the firewall rule to allow:</p><pre>gcloud compute firewall-rules create default-allow-http --direction=INGRESS --priority=1000 --network=default --action=ALLOW --rules=tcp:80 --source-ranges=0.0.0.0/0 --target-tags=http-server</pre><p>List the firewall rules for the project:</p><pre>gcloud compute firewall-rules list --filter=ALLOW:&#39;80&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kg1VH96Oc1R1gHo2Jg_G2A.png" /></figure><p>Verify communication is possible for http to the virtual machine:</p><pre>curl http://$(gcloud compute instances list --filter=name:gcelab2 --format=&#39;value(EXTERNAL_IP)&#39;)</pre><p>You will see the default nginx output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ajjQUDUy3MgCwZfFkk7SPA.png" /></figure><p>I also tried the external IP address in browser and the page is indeed accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tRCZMCpkptZe9ajmeLZzSQ.png" /></figure><h3>Viewing the system logs</h3><p>Viewing logs is essential to understanding the working of your project. Use gcloud to access the different logs available on Google Cloud.</p><p>View the available logs on the system:</p><pre>gcloud logging logs list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*vIcQo0x-Dhqt3TOW8L3U9g.png" /></figure><p>View the logs that relate to compute resources:</p><pre>gcloud logging logs list --filter=&quot;compute&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NccwtPXFdQvxSAl8Fh8fyw.png" /></figure><p>Read the logs related to the resource type of gce_instance:</p><pre>gcloud logging read &quot;resource.type=gce_instance&quot; --limit 5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXraH3yic8H83edqWY2Iyw.png" /></figure><p>Read the logs for a specific virtual machine:</p><pre>gcloud logging read &quot;resource.type=gce_instance AND labels.instance_name=&#39;gcelab2&#39;&quot; --limit 5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJu1b1xCd7E1w0Xi7hlYpQ.png" /></figure><p><strong>Conclusion: </strong>I practiced gcloud commands to set the region, zone, environment variables, logs, firewall logs, and VM creation (with ssh, installation of nginx, setting the HTTP firewall rule), etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69959a8470a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box — An unusual sighting]]></title>
            <link>https://medium.com/@muhammadbilaly/hack-the-box-an-unusual-sighting-43d95a0e098b?source=rss-4fdea82cefda------2</link>
            <guid isPermaLink="false">https://medium.com/p/43d95a0e098b</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hackthebox-challenge]]></category>
            <category><![CDATA[forensics]]></category>
            <dc:creator><![CDATA[Muhammad Bilal]]></dc:creator>
            <pubDate>Sun, 15 Dec 2024 04:04:38 GMT</pubDate>
            <atom:updated>2024-12-15T04:04:38.348Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hack The Box — An unusual sighting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z2k8JQCD1hR5AfisCYGcaA.png" /></figure><p>The available files are bash history and logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*u5kf9hnlAfBRjUXXtMicow.png" /></figure><p>I started the netcat connection and found a few questions which I answered for flags</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*-HzP2WBpzFcvuhwLkDX8sg.png" /></figure><blockquote><strong>Question 1: </strong>What is the IP Address and Port of the SSH Server (IP:PORT)</blockquote><p>I opened the sshd.log file and found the answer in the first few lines. The server is running on port 2221 and I observed that all connections are in 100.107.36.130.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptYBSD1OeZJaZAXWsuSdDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*WeR6NUaTlwvGjFseMckIvw.png" /></figure><blockquote><strong>Question 2: </strong>What time is the first successful Login</blockquote><p>The first login was after the SSH server accepted the password for the first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jQbqANULZ3PCCtpUT1Fng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*qo2SjdPkoo7f16iOOhJ3TQ.png" /></figure><blockquote><strong>Question 3: </strong>What is the time of the unusual Login</blockquote><p>operating hours were from 9:00 to 19:00 according to the challenge description. I just needed to look for other times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ee82RAGMOeL2ujj-12lNXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*INHlK0Uv82MSeCSaVQqj2g.png" /></figure><blockquote><strong>Question 4: </strong>What is the Fingerprint of the attacker’s public key</blockquote><p>In the previous question, there was a login at an unusual time, he must be the attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDRhOlf_vWzPjMlzvmvdxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*EoZxs-tCYETJmutZ0vjcjA.png" /></figure><blockquote><strong>Question 5: </strong>What is the first command the attacker executed after logging in</blockquote><p>According to ssh logs, the attacker logged in at 2024–02–19 04:00:14. I checked the bash history after this interval.</p><p>The commands in an hour of 04:00 should be related to attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqpF3FfJ0WUK00GULGI1FQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d_GOA8G-UzM91vAornBt5A.png" /></figure><blockquote><strong>Question 5: </strong>What is the final command the attacker executed before logging out</blockquote><p>The last command should be ./setup according to the timeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqpF3FfJ0WUK00GULGI1FQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJUDX-bJ8h7bSK384ofE6A.png" /></figure><p>As I thought, the answer was correct and I got the flag after it.</p><p>You can follow me or message me on <a href="https://www.linkedin.com/in/bilal-younis/">LinkedIn</a> for help. To show support, you can buy me a coffee: <a href="https://www.buymeacoffee.com/bilalyounis">https://www.buymeacoffee.com/bilalyounis</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43d95a0e098b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>