Description
This module writes a persistence payload into an Apache .htaccess file using mod_cgi. The .htaccess file itself acts as a CGI shell, executing commands passed via the query string. Inspired by the htshells project by wireghoul.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/persistence/apache/htaccessmsf undefined(htaccess) > show actions ...actions...msf undefined(htaccess) > set ACTION < action-name >msf undefined(htaccess) > show options ...show and set options...msf undefined(htaccess) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub