Namespace: updater

updater

Object in charge of getting new commands from the BeEF framework and execute them. The XHR-polling channel is managed here. If WebSockets are enabled, websocket.ls is used instead.

Source:

Members

(static) beefhook

Hook session name.

Source:

(static) lock

A lock.

Source:

(static) objects

An object containing all values to be registered and sent by the updater.

Source:

(static) xhr_poll_timeout

XHR-polling timeout.

Source:

Methods

(static) execute_commands()

Executes the received commands, if any.

Source:

(static) get_commands()

Gets new commands from the framework.

Source:

(static) regObject(key, value)

Registers an object to always send when requesting new commands to the framework.

Parameters:
Name Type Description
key String

the name of the object.

value String

the value of that object.

Source:
Example
beef.updater.regObject('java_enabled', 'true');