Clone
2
Module: Raw Javascript
Haoxi Tan edited this page 2020-01-08 09:31:05 +10:00

Summary

  • Objective: Executes Raw Javascript in the browser

  • Authors: wade, vo

  • Browsers: All

  • Code

Internal Working

This module will send the code entered in the 'JavaScript Code' section to the selected hooked browsers where it will be executed. Code is run inside an anonymous function and the return value is passed to the framework. Multiline scripts are allowed, no special encoding is required.

var result;

try {
        result = function() {<%= @cmd %>}();
} catch(e) {
        for(var n in e)
                result+= n + " " + e[n] + "\n";
}

Feedback