Namespace: logger

logger

Provides logging capabilities.

Source:

Members

(static) events

Holds events created by user, to be sent back to BeEF

Source:

(static) id

Internal logger id

Source:

(static) in_submit

Prevents from recursive event handling on form submission

Source:

(static) stream

Holds current stream of key presses

Source:

(static) target

Contains current target of key presses

Source:

(static) time

Holds the time the logger was started

Source:

Methods

(static) click()

Click function fires when the user clicks the mouse.

Source:

(static) console()

Console function fires when data is sent to the browser console.

Source:

(static) copy()

Copy function fires when the user copies data to the clipboard.

Source:

(static) cut()

Cut function fires when the user cuts data to the clipboard.

Source:

(static) e()

Holds the event details to be sent to BeEF

Source:

(static) get_dom_identifier()

Translate DOM Object to a readable string

Source:

(static) get_id()

Get id

Source:

(static) get_timestamp() → {String}

Formats the timestamp

Source:
Returns:

timestamp string

Type
String

(static) keypress(e:)

Keypress function fires everytime a key is pressed.

Parameters:
Name Type Description
e: Object

event object

Source:

(static) parse_stream()

Parses stream array and creates history string

Source:

(static) paste()

Paste function fires when the user pastes data from the clipboard.

Source:

(static) push_stream()

Pushes the current stream to the events queue

Source:

(static) queue()

Queue results to be sent back to framework

Source:

(static) start()

Starts the logger

Source:

(static) stop()

Stops the logger

Source:

(static) submit()

Submit function fires whenever a form is submitted TODO: Cleanup this function

Source:

(static) win_blur()

Fires when the window element has lost focus

Source:

(static) win_focus()

Fires when the window element has regained focus

Source: