Wrapper

Wrapper

Used to wrap your Payload

Members

Methods

Constructor

new Wrapper(parent, wrapper)

Used internally
Use Wrapper.new instead.

Properties:
Name Type Description
parent Wrapper | null
wrapper function | null
payload String | null
Parameters
Name Type Default Description
parent Wrapper null

The parent wrapper

wrapper function null

The actual wrapper function

Methods

(static) new() → {Wrapper_JS}

Create a Wrapper_JS Object

Returns
Type
Wrapper_JS

wrap(payload) → {string}

Wrap a payload or a string and return it a as string

Example
const p = Payload.new().eval(() => alert(1))
const w = Wrapper.new()
const code = w.wrap(p)

eval(code)
Parameters
Name Type Description
payload Payload | String

Payload to wrap

Returns
Type
string