<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cheatsheet on XSS3cut10n3r</title><link>https://xss3cut10n3r.com/tags/cheatsheet/</link><description>Recent content in Cheatsheet on XSS3cut10n3r</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 27 Aug 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://xss3cut10n3r.com/tags/cheatsheet/index.xml" rel="self" type="application/rss+xml"/><item><title>Crypto Cheatsheet for CTFs</title><link>https://xss3cut10n3r.com/posts/crypto-cheatsheet/</link><pubDate>Wed, 27 Aug 2025 00:00:00 +0000</pubDate><guid>https://xss3cut10n3r.com/posts/crypto-cheatsheet/</guid><description>&lt;p&gt;Cryptography challenges are one of the most common categories in Capture the Flag (CTF) competitions. This guide provides a focused overview of essential algorithms, how to recognize them, common weaknesses exploited in CTFs, and practical resources for practice.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="common-ctf-crypto-patterns"&gt;Common CTF Crypto Patterns&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Flags often follow formats like &lt;code&gt;CTF{...}&lt;/code&gt;, which can help in known-plaintext scenarios.&lt;/li&gt;&#10;&lt;li&gt;Key reuse across ciphertexts can allow XOR analysis.&lt;/li&gt;&#10;&lt;li&gt;Small RSA exponents (&lt;code&gt;e = 3&lt;/code&gt;) can lead to direct root extraction if the plaintext is small.&lt;/li&gt;&#10;&lt;li&gt;Small primes allow for easy factorization of RSA moduli.&lt;/li&gt;&#10;&lt;li&gt;Padding issues in AES frequently lead to oracle-style attacks.&lt;/li&gt;&#10;&lt;li&gt;Images encrypted with ECB will show visible repeated patterns.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="tools"&gt;Tools&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://gchq.github.io/CyberChef/"&gt;CyberChef&lt;/a&gt; - versatile tool for conversions, encodings, and ciphers.&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.cachesleuth.com/multidecoder/"&gt;CacheSleuth MultiDecoder&lt;/a&gt; - automated format and cipher detection. Easily my favorite tool.&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://www.dcode.fr/en"&gt;dCode&lt;/a&gt; - classical cipher solvers and crypto utilities.&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/RsaCtfTool/RsaCtfTool"&gt;RsaCtfTool&lt;/a&gt; - specialized RSA attack tool.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="core-algorithms"&gt;Core Algorithms&lt;/h2&gt;&#10;&lt;h3 id="rsa"&gt;RSA&lt;/h3&gt;&#10;&lt;p&gt;RSA is an asymmetric encryption algorithm based on modular arithmetic with large primes.&lt;/p&gt;</description></item><item><title>Gaining Interactive Shells</title><link>https://xss3cut10n3r.com/posts/interactive-shells/</link><pubDate>Tue, 26 Aug 2025 00:00:00 +0000</pubDate><guid>https://xss3cut10n3r.com/posts/interactive-shells/</guid><description>&lt;p&gt;Often when uploading a reverse shell on a webserver we are dealing with non-interactive shell. This means it doesn&amp;rsquo;t prompt us for user input or display output in real-time in a traditional terminal window.&lt;/p&gt;&#10;&lt;p&gt;The biggest problem with a non-interactive shell is that you can&amp;rsquo;t run &lt;code&gt;su&lt;/code&gt; or &lt;code&gt;sudo&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Useful ways to upgrade your shell to an interactive one:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;python &lt;span style="color:#f92672"&gt;-&lt;/span&gt;c &lt;span style="color:#e6db74"&gt;&amp;#39;import pty; pty.spawn(&amp;#34;/bin/sh&amp;#34;)&amp;#39;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;When to use it:&lt;/strong&gt; Almost always the first go-to if Python is available on the target. After spawning, run Ctrl-Z and then stty raw -echo; fg on your local terminal to fully fix arrow keys and job control.&lt;/p&gt;</description></item></channel></rss>