This module allows execution of native payloads from a privileged Firefox Javascript shell. It places the specified payload into memory, adds the necessary protection flags, and calls it, which can be useful for upgrading a Firefox javascript shell to a Meterpreter session without touching the disk.
Firefox
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/firefox/local/exec_shellcode
msf exploit(exec_shellcode) > show targets
...targets...
msf exploit(exec_shellcode) > set TARGET < target-id >
msf exploit(exec_shellcode) > show options
...show and set options...
msf exploit(exec_shellcode) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security