Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Javascript Injection for Eval-based Unpackers

Disclosed
Feb 18, 2015
Created
May 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.

Platform

NodeJS

Architectures

nodejs

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.