<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Parser on bitfriends' blog</title><link>https://b17fr13nds.github.io/tags/parser/</link><description>Recent content in Parser on bitfriends' blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 02 Sep 2024 20:24:09 +0200</lastBuildDate><atom:link href="https://b17fr13nds.github.io/tags/parser/index.xml" rel="self" type="application/rss+xml"/><item><title>the ring - BlackHat MEA CTF 2024</title><link>https://b17fr13nds.github.io/posts/the_ring_bhmea/</link><pubDate>Mon, 02 Sep 2024 20:24:09 +0200</pubDate><guid>https://b17fr13nds.github.io/posts/the_ring_bhmea/</guid><description>&lt;p&gt;I had a fun time playing BlackHat MEA CTF. This pwn challenge was particulary nice.&lt;/p&gt;
&lt;p&gt;In &amp;ldquo;the ring&amp;rdquo; you were given a &lt;code&gt;FLAC&lt;/code&gt; audio file parser, written in C++.
You can provide such a custom audio file and get presented the output of the program.
Notice that there is a Python wrapper handling the file and outputs readable text only.&lt;/p&gt;
&lt;p&gt;Now the general functionality of the program:
The program checks the magic bytes first (&lt;code&gt;#define FLAC_MAGIC 0x664c6143U&lt;/code&gt;) and then immedeately
starts looking for the initial &lt;code&gt;TYPE_STREAMINFO&lt;/code&gt; block, which may be followed by more blocks.&lt;/p&gt;</description></item></channel></rss>