BeEF Module Construction

BeEF modules consist of three basic files in a directory. The first is ‘name.txt’ which is just the name displayed in the framework’s menus. The next is ‘index.php’, this is the page displayed in BeEF when the menu item is selected. The third file is the ‘template.js’ which is the file that contains the JavaScript code sent to the target. Symmetric BeEF modules are trivial to implement.
Modules can get more complex by transmitting data back from the targets using API calls like return_result(). A great starting point to understand the framework APIs is the standard alert module that comes with BeEF.

Events: Submitted by Wade on 13-Jul-08 at 11:25am