4aeacb7456
PHP exec() uses sh -c which is dash on Ubuntu. Dash echo does not support -en flag, breaking the echo CmdStager flavor. Switch to printf (octal) and bourne (base64) flavors which work in dash. Also split backup_and_poison into backup_config and poison_dot so CmdStager chunks don't overwrite the backup table, and escape backslashes in SQL to preserve octal/hex sequences through MySQL.
This is the folder where all of Metasploit's modules live. These modules are scripts in Ruby that interface with
Metasploit itself to perform some specific task. There are various types of modules, such as exploit modules to
exploit a vulnerability and gain a shell, auxiliary to perform a non-shell gaining activity, payloads for
Metasploit's various payloads (which are also modules), and post for post exploitation modules.