Rapid7 Vulnerability & Exploit Database

Javascript Injection for Eval-based Unpackers

Back to Search

Javascript Injection for Eval-based Unpackers

Disclosed
02/18/2015
Created
05/30/2018

Description

This module generates a Javascript file that executes arbitrary code when an eval-based unpacker is run on it. Works against js-beautify's P_A_C_K_E_R unpacker.

Author(s)

  • joev <joev@metasploit.com>

Platform

NodeJS

Architectures

nodejs

Development

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/multi/fileformat/js_unpacker_eval_injection
msf exploit(js_unpacker_eval_injection) > show targets
    ...targets...
msf exploit(js_unpacker_eval_injection) > set TARGET < target-id >
msf exploit(js_unpacker_eval_injection) > show options
    ...show and set options...
msf exploit(js_unpacker_eval_injection) > 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

;