<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Frida on irq5 test</title><link>https://irq5-7854a1fdb9f4.pages.dev/tag/frida/</link><description>Recent content in Frida on irq5 test</description><language>en-us</language><lastBuildDate>Sat, 14 Oct 2017 23:30:00 +0000</lastBuildDate><atom:link href="https://irq5-7854a1fdb9f4.pages.dev/tag/frida/feed/" rel="self" type="application/rss+xml"/><item><title>Flare-On 2017 Write-up: "pewpewboat.exe"</title><link>https://irq5-7854a1fdb9f4.pages.dev/2017/10/flare-on-2017-write-up-pewpewboat.exe/</link><pubDate>Sat, 14 Oct 2017 23:30:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2017/10/flare-on-2017-write-up-pewpewboat.exe/</guid><description>&lt;h3 id=flare-on-2017-challenge-5----pewpewboatexe>Flare-On 2017 Challenge #5 &amp;ndash; pewpewboat.exe&lt;/h3>&lt;p>As usual, the first thing to do when tackling the challenge is to run the binary first, to see what it does.
You will soon learn that it&amp;rsquo;s not actually a Windows executable,
but rather a 64-bit Linux ELF.&lt;/p>&lt;div class=highlight role=region aria-label="code block" translate=no>&lt;pre tabindex=0 class=chroma>&lt;code class=language-fallback data-lang=fallback>&lt;span class=line>&lt;span class=cl>$ ./pewpewboat.exe
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>Loading first pew pew map...
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl> 1 2 3 4 5 6 7 8
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl> _________________
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>A |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>B |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>C |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>D |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>E |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>F |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>G |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>H |_|_|_|_|_|_|_|_|
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>Rank: Seaman Recruit
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>Welcome to pewpewboat! We just loaded a pew pew map, start shootin&amp;#39;!
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>Enter a coordinate:&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>So this is a &lt;a href=https://en.wikipedia.org/wiki/Battleship_%28game%29 rel=noopener target=_blank class=external>Battleship game&lt;/a>.
Playing manually for a bit, I see the &amp;ldquo;ships&amp;rdquo; form up in the shape what looked like a letter.
Hmm could this be the flag?&lt;/p>&lt;p>It&amp;rsquo;s now time to read the code.&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2017/10/flare-on-2017-write-up-pewpewboat.exe/#more">Continue reading…&lt;/a>&lt;/p></description></item></channel></rss>