<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Crackmes on sin&#39;s blog</title>
		<link>https://ret2sin.dev/crackmes/</link>
		<description>Recent content in Crackmes on sin&#39;s blog</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Mon, 09 Nov 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://ret2sin.dev/crackmes/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>crackme_v0.2</title>
				<link>https://ret2sin.dev/crackmes/crackme-v0-2/</link>
				<pubDate>Mon, 09 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/crackmes/crackme-v0-2/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; write a keygen that produces a valid registration code for any username.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Status:&lt;/strong&gt; unsolved. My keygen doesn&amp;rsquo;t produce working codes yet.&lt;/p&gt;&#xA;&lt;h2 id=&#34;triage&#34;&gt;Triage&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;chmod +x crackme.exe&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;wine crackme.exe&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It asks for a username and a registration code. The username has to be at least 4 characters. &lt;code&gt;strings&lt;/code&gt; literally tells you to write a keygen.&lt;/p&gt;&#xA;&lt;h2 id=&#34;static-analysis&#34;&gt;Static analysis&lt;/h2&gt;&#xA;&lt;p&gt;In Ghidra, the entry function sets up a dialog box. &lt;code&gt;FUN_004010ba&lt;/code&gt; is the dialog procedure, which handles all the user interaction:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Monsignors Crackme</title>
				<link>https://ret2sin.dev/crackmes/monsignors-crackme/</link>
				<pubDate>Mon, 09 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/crackmes/monsignors-crackme/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; find the password.&lt;/p&gt;&#xA;&lt;h2 id=&#34;triage&#34;&gt;Triage&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;chmod +x hello.exe&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;wine hello.exe      &lt;span class=&#34;c1&#34;&gt;# prompts for a password&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;strings hello.exe&lt;/code&gt; dumps a lot of output. The program prints &amp;ldquo;Access denied&amp;rdquo; on a wrong guess, so filter for that and number the lines:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;strings hello.exe &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; grep -ni access    &lt;span class=&#34;c1&#34;&gt;# &amp;#34;access&amp;#34; shows up around lines 340-350&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;strings hello.exe &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; nl                 &lt;span class=&#34;c1&#34;&gt;# number every line to jump straight there&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The password sits right after the &amp;ldquo;Enter password:&amp;rdquo; prompt string:&lt;/p&gt;</description>
			</item>
			<item>
				<title>easy_reverse</title>
				<link>https://ret2sin.dev/crackmes/easy-reverse/</link>
				<pubDate>Fri, 06 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/crackmes/easy-reverse/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; get the binary to print its flag.&lt;/p&gt;&#xA;&lt;h2 id=&#34;triage&#34;&gt;Triage&lt;/h2&gt;&#xA;&lt;p&gt;Downloaded it, &lt;code&gt;chmod +x&lt;/code&gt;, ran it: it wants a password.&lt;/p&gt;&#xA;&lt;p&gt;In Ghidra there&amp;rsquo;s a secret flag path, but no hard-coded password to pull out, so this one has to be solved at runtime.&lt;/p&gt;&#xA;&lt;h2 id=&#34;dynamic-analysis&#34;&gt;Dynamic analysis&lt;/h2&gt;&#xA;&lt;p&gt;Loaded it in gdb and ran &lt;code&gt;disass main&lt;/code&gt;. There are two &lt;code&gt;cmp&lt;/code&gt; instructions that decide whether you pass:&lt;/p&gt;&#xA;&lt;div class=&#34;center image-window&#34; data-image-window&gt;&#xA;  &lt;div class=&#34;window-titlebar&#34;&gt;&#xA;    &lt;span class=&#34;window-title&#34;&gt;main, with the two checks at &amp;#43;40 and &amp;#43;64&lt;/span&gt;&#xA;    &lt;button&#xA;      class=&#34;window-button window-button-icon window-minimize&#34;&#xA;      type=&#34;button&#34;&#xA;      aria-expanded=&#34;true&#34;&#xA;      aria-label=&#34;Minimize image&#34;&#xA;      data-window-toggle&#xA;    &gt;−&lt;/button&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;window-content&#34;&gt;&#xA;    &lt;img&#xA;      class=&#34;responsive&#34;&#xA;      src=&#34;https://ret2sin.dev/img/crackmes/easy-reverse/main-disasm.png&#34;&#xA;      alt=&#34;main, with the two checks at &amp;#43;40 and &amp;#43;64&#34;&#xA;      decoding=&#34;async&#34;&#xA;    /&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;main+40&lt;/code&gt;: &lt;code&gt;cmp $0xa, %rax&lt;/code&gt;, compares the result of &lt;code&gt;strlen&lt;/code&gt; against 10&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;main+64&lt;/code&gt;: &lt;code&gt;cmp $0x40, %al&lt;/code&gt;, compares one character of the input against &lt;code&gt;0x40&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;&#xA;&lt;p&gt;Break on both checks, then overwrite the register each time so the comparison passes:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Fixed Easy Crackme</title>
				<link>https://ret2sin.dev/crackmes/fixed-easy-crackme/</link>
				<pubDate>Fri, 06 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://ret2sin.dev/crackmes/fixed-easy-crackme/</guid>
				<description>&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; find the password.&lt;/p&gt;&#xA;&lt;h2 id=&#34;triage&#34;&gt;Triage&lt;/h2&gt;&#xA;&lt;p&gt;It&amp;rsquo;s a Windows binary, so &lt;code&gt;./file&lt;/code&gt; doesn&amp;rsquo;t work. Ran it with &lt;code&gt;wine&lt;/code&gt; instead, and it asks for a password.&lt;/p&gt;&#xA;&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;strings&lt;/code&gt; on the binary. Near the bottom of the output, sitting between the imports, is the password in plain text:&lt;/p&gt;&#xA;&lt;div class=&#34;center image-window&#34; data-image-window&gt;&#xA;  &lt;div class=&#34;window-titlebar&#34;&gt;&#xA;    &lt;span class=&#34;window-title&#34;&gt;EasyPassword, right after the imports&lt;/span&gt;&#xA;    &lt;button&#xA;      class=&#34;window-button window-button-icon window-minimize&#34;&#xA;      type=&#34;button&#34;&#xA;      aria-expanded=&#34;true&#34;&#xA;      aria-label=&#34;Minimize image&#34;&#xA;      data-window-toggle&#xA;    &gt;−&lt;/button&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;window-content&#34;&gt;&#xA;    &lt;img&#xA;      class=&#34;responsive&#34;&#xA;      src=&#34;https://ret2sin.dev/img/crackmes/fixed-easy-crackme/strings.png&#34;&#xA;      alt=&#34;EasyPassword, right after the imports&#34;&#xA;      decoding=&#34;async&#34;&#xA;    /&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Entered &lt;code&gt;EasyPassword&lt;/code&gt; and it&amp;rsquo;s solved.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
