<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cryptography on Locus Solus | Nagi's Blog</title><link>https://x-nagi.com/tags/cryptography.html</link><description>Recent content in Cryptography on Locus Solus | Nagi's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 22 Nov 2021 11:01:50 +0800</lastBuildDate><atom:link href="https://x-nagi.com/tags/cryptography/index.xml" rel="self" type="application/rss+xml"/><item><title>Introduction to Intel AES-NI</title><link>https://x-nagi.com/post/aesni.html</link><pubDate>Mon, 22 Nov 2021 11:01:50 +0800</pubDate><guid>https://x-nagi.com/post/aesni.html</guid><description>&lt;div class="admonition info"&gt;&lt;p class="admonition-title"&gt;Notice&lt;/p&gt;&#10;&lt;p&gt;This article was originally published on Anquanke: &lt;a href="https://www.anquanke.com/post/id/260323"&gt;original article&lt;/a&gt;&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/AES_instruction_set"&gt;AES-NI&lt;/a&gt; is Intel&amp;rsquo;s x86-64 SIMD extension for accelerating &lt;a href="https://en.wikipedia.org/wiki/Advanced_Encryption_Standard"&gt;AES&lt;/a&gt;. Anyone familiar with &lt;a href="https://en.wikipedia.org/wiki/SIMD"&gt;SIMD&lt;/a&gt; probably knows it exists, but AES&amp;rsquo;s asymmetric structure and AES-NI&amp;rsquo;s unusual design require considerable detail and theory to use correctly. Using &lt;code&gt;easyRE&lt;/code&gt; from &lt;a href="https://ctf2021.nu1l.com/"&gt;N1CTF 2021&lt;/a&gt; as an example, this article summarizes my understanding; corrections are welcome.&lt;/p&gt;</description></item><item><title>PlaidCTF 2021 Watness 3</title><link>https://x-nagi.com/post/plaidctf2021.html</link><pubDate>Wed, 25 Aug 2021 21:59:22 +0800</pubDate><guid>https://x-nagi.com/post/plaidctf2021.html</guid><description>&lt;p&gt;In PlaidCTF 2021, I solved the challenge &lt;code&gt;The Watness III&lt;/code&gt;, then I spent my time on another challenge &lt;code&gt;dr&lt;/code&gt;. Unfortunately, the regular expression algorithm in &lt;code&gt;dr&lt;/code&gt; is too complex to understand, thus I failed to solve it.&lt;/p&gt;&#10;&lt;p&gt;There was a similar challenge in PlaidCTF 2020, &lt;code&gt;The Watness II&lt;/code&gt;. I solved that last year when I was a member of A*0*E; it was a reverse challenge of a HyperCard game on the m68k platform. I thought that this challenge had the same game logic as the previous one, so I spent some time finding the color logic used in &lt;code&gt;The Watness II&lt;/code&gt;. But the result shows that this challenge is different from that one.&lt;/p&gt;</description></item><item><title>*CTF 2021 Reverse*5</title><link>https://x-nagi.com/post/starctf2021.html</link><pubDate>Tue, 19 Jan 2021 09:02:47 +0800</pubDate><guid>https://x-nagi.com/post/starctf2021.html</guid><description>&lt;p&gt;The endless exams finally ended, and after half a year I returned to competing with my AAA teammates—and to staying up all night. We solved five of the six reverse-engineering challenges. The remaining one, &lt;code&gt;RL_Env&lt;/code&gt;, appeared to involve machine learning; I did not even understand what it was asking us to do.&lt;/p&gt;</description></item><item><title>Running a Mail Server and Publishing a GPG Key</title><link>https://x-nagi.com/post/mail-server-and-gpg.html</link><pubDate>Fri, 26 Jul 2019 00:08:35 +0800</pubDate><guid>https://x-nagi.com/post/mail-server-and-gpg.html</guid><description>&lt;p&gt;Another year somehow passed while I was idling away, and this novice has made no progress—if anything, I have become worse. My GPA hit a new low this semester, and I could already picture myself becoming a Yuquan-campus shut-in next term. Fortunately, today this shut-in finally finished configuring a personal mail server. My new address is &lt;a href="mailto:wu@x-nagi.com"&gt;wu@x-nagi.com&lt;/a&gt;; feel free to send me mail.&lt;/p&gt;</description></item><item><title>The 5th USTC Information Security Contest</title><link>https://x-nagi.com/post/ustc-5.html</link><pubDate>Wed, 17 Oct 2018 22:45:30 +0800</pubDate><guid>https://x-nagi.com/post/ustc-5.html</guid><description>&lt;h2 id="check-in"&gt;Check-in&lt;/h2&gt;&#10;&lt;p&gt;Press F12 in Chrome to open Developer Tools. The input field has the following attribute:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;&#10;&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-html" data-lang="html"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Key: &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;text&amp;#34;&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;key&amp;#34;&lt;/span&gt; &lt;span class="na"&gt;maxlength&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;13&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;/&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Remove the &lt;code&gt;maxlength&lt;/code&gt; attribute, then enter &lt;code&gt;hackergame2018&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;flag: &lt;code&gt;flag{Hackergame2018_Have_Fun!}&lt;/code&gt;&lt;/p&gt;</description></item><item><title>SCTF 2018 Writeup</title><link>https://x-nagi.com/post/sctf2018.html</link><pubDate>Wed, 17 Oct 2018 20:20:02 +0800</pubDate><guid>https://x-nagi.com/post/sctf2018.html</guid><description>&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Reverse&lt;/strong&gt; Script In Script&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Reverse&lt;/strong&gt; Where is my 13th count?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Reverse&lt;/strong&gt; simple&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Misc&lt;/strong&gt; Welcome to SCTF 2018&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Misc&lt;/strong&gt; Mysterious Transaction&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Misc&lt;/strong&gt; Otaku&amp;rsquo;s Happy Challenge&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Misc&lt;/strong&gt; Introduction to Side Channels&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Web&lt;/strong&gt; easiest web - phpmyadmin&lt;/li&gt;&#10;&lt;/ul&gt;</description></item></channel></rss>