Path: blob/master/modules/debug/test_cors_request/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Test_cors_request < BeEF::Core::Command6def post_execute7content = {}8content['response'] = @datastore['response']9save content10end1112def self.options13[14{ 'name' => 'method', 'ui_label' => 'Method', 'type' => 'text', 'width' => '400px', 'value' => 'GET' },15{ 'name' => 'url', 'ui_label' => 'URL', 'type' => 'text', 'width' => '400px',16'value' => 'http://graph.facebook.com/fql?q=SELECT%20url,total_count%20FROM%20link_stat%20WHERE%20url=%27https://beefproject.com/%27' },17{ 'name' => 'data', 'ui_label' => 'Data', 'type' => 'text', 'width' => '400px', 'value' => 'postdata' }18]19end20end212223