language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
Ruby
beef/core/main/migration.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 # module BeEF module Core # @note This class migrates and updates values in the database each time you restart BeEF. # So for...
Ruby
beef/core/main/model.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 # module BeEF module Core class Model < ActiveRecord::Base # Tell ActiveRecord that this is not a model self.abstract_class...
Ruby
beef/core/main/server.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 # # Remove Thin 'Server' response header Thin.send :remove_const, :SERVER Thin::SERVER = nil module BeEF module Core class Server ...
Ruby
beef/core/main/ar-migrations/001_create_command_modules.rb
class CreateCommandModules < ActiveRecord::Migration[6.0] def change create_table :command_modules do |t| t.text :name t.text :path end end end
Ruby
beef/core/main/ar-migrations/002_create_hooked_browsers.rb
class CreateHookedBrowsers < ActiveRecord::Migration[6.0] def change create_table :hooked_browsers do |t| t.text :session t.text :ip t.text :firstseen t.text :lastseen t.text :httpheaders t.text :domain t.integer :port t.integer :count t.boolean :is_proxy ...
Ruby
beef/core/main/ar-migrations/003_create_logs.rb
class CreateLogs < ActiveRecord::Migration[6.0] def change create_table :logs do |t| t.text :logtype t.text :event t.datetime :date t.references :hooked_browser end end end
Ruby
beef/core/main/ar-migrations/004_create_commands.rb
class CreateCommands < ActiveRecord::Migration[6.0] def change create_table :commands do |t| t.references :command_module t.references :hooked_browser t.text :data t.datetime :creationdate t.text :label t.boolean :instructions_sent, default: false end end end
Ruby
beef/core/main/ar-migrations/005_create_results.rb
class CreateResults < ActiveRecord::Migration[6.0] def change create_table :results do |t| t.references :command t.references :hooked_browser t.datetime :date t.integer :status t.text :data end end end
Ruby
beef/core/main/ar-migrations/006_create_option_caches.rb
class CreateOptionCaches < ActiveRecord::Migration[6.0] def change create_table :option_caches do |t| t.text :name t.text :value end end end
Ruby
beef/core/main/ar-migrations/007_create_browser_details.rb
class CreateBrowserDetails < ActiveRecord::Migration[6.0] def change create_table :browser_details do |t| t.text :session_id t.text :detail_key t.text :detail_value end end end
Ruby
beef/core/main/ar-migrations/008_create_executions.rb
class CreateExecutions < ActiveRecord::Migration[6.0] def change create_table :executions do |t| t.text :session_id t.integer :mod_count t.integer :mod_successful t.text :mod_body t.text :exec_time t.text :rule_token t.boolean :is_sent t.integer :rule_id end e...
Ruby
beef/core/main/ar-migrations/009_create_rules.rb
class CreateRules < ActiveRecord::Migration[6.0] def change create_table :rules do |t| t.text :name t.text :author t.text :browser t.text :browser_version t.text :os t.text :os_version t.text :modules t.text :execution_order t.text :execution_delay t.tex...
Ruby
beef/core/main/ar-migrations/010_create_interceptor.rb
class CreateInterceptor < ActiveRecord::Migration[6.0] def change create_table :interceptors do |t| t.text :ip t.text :post_data end end end
Ruby
beef/core/main/ar-migrations/011_create_web_cloner.rb
class CreateWebCloner < ActiveRecord::Migration[6.0] def change create_table :web_cloners do |t| t.text :uri t.text :mount end end end
Ruby
beef/core/main/ar-migrations/013_create_network_host.rb
class CreateNetworkHost < ActiveRecord::Migration[6.0] def change create_table :network_hosts do |t| t.references :hooked_browser t.text :ip t.text :hostname t.text :ntype t.text :os t.text :mac t.text :lastseen end end end
Ruby
beef/core/main/ar-migrations/014_create_network_service.rb
class CreateNetworkService < ActiveRecord::Migration[6.0] def change create_table :network_services do |t| t.references :hooked_browser t.text :proto t.text :ip t.text :port t.text :ntype end end end
Ruby
beef/core/main/ar-migrations/015_create_http.rb
class CreateHttp < ActiveRecord::Migration[6.0] def change create_table :https do |t| t.text :hooked_browser_id # The http request to perform. In clear text. t.text :request # Boolean value as string to say whether cross-domain requests are allowed t.boolean :allow_cross_domain, defa...
Ruby
beef/core/main/ar-migrations/016_create_rtc_status.rb
class CreateRtcStatus < ActiveRecord::Migration[6.0] def change create_table :rtc_statuss do |t| t.references :hooked_browser t.integer :target_hooked_browser_id t.text :status end end end
Ruby
beef/core/main/ar-migrations/017_create_rtc_manage.rb
class CreateRtcManage < ActiveRecord::Migration[6.0] def change create_table :rtc_manages do |t| t.references :hooked_browser t.text :message t.text :has_sent, default: 'waiting' end end end
Ruby
beef/core/main/ar-migrations/018_create_rtc_signal.rb
class CreateRtcSignal < ActiveRecord::Migration[6.0] def change create_table :rtc_signals do |t| t.references :hooked_browser t.integer :target_hooked_browser_id t.text :signal t.text :has_sent, default: 'waiting' end end end
Ruby
beef/core/main/ar-migrations/019_create_rtc_module_status.rb
class CreateRtcModuleStatus < ActiveRecord::Migration[6.0] def change create_table :rtc_module_statuss do |t| t.references :hooked_browser t.references :command_module t.integer :target_hooked_browser_id t.text :status end end end
Ruby
beef/core/main/ar-migrations/020_create_xssrays_detail.rb
class CreateXssraysDetail < ActiveRecord::Migration[6.0] def change create_table :xssraysdetails do |t| t.references :hooked_browser t.text :vector_name t.text :vector_method t.text :vector_poc end end end
Ruby
beef/core/main/ar-migrations/021_create_dns_rule.rb
class CreateDnsRule < ActiveRecord::Migration[6.0] def change create_table :dns_rules do |t| t.text :pattern t.text :resource t.text :response t.text :callback end end end
Ruby
beef/core/main/ar-migrations/024_create_autoloader.rb
class CreateAutoloader < ActiveRecord::Migration[6.0] def change create_table :autoloaders do |t| t.references :command t.boolean :in_use end end end
Ruby
beef/core/main/ar-migrations/025_create_xssrays_scan.rb
class CreateXssraysScan < ActiveRecord::Migration[6.0] def change create_table :xssraysscans do |t| t.references :hooked_browser t.datetime :scan_start t.datetime :scan_finish t.text :domain t.text :cross_domain t.integer :clean_timeout t.boolean :is_started t.boole...
Ruby
beef/core/main/autorun_engine/engine.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 # module BeEF module Core module AutorunEngine class Engine include Singleton def initialize @config = ...
Ruby
beef/core/main/autorun_engine/parser.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 # module BeEF module Core module AutorunEngine class Parser include Singleton def initialize @config = ...
Ruby
beef/core/main/autorun_engine/rule_loader.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 # module BeEF module Core module AutorunEngine class RuleLoader include Singleton def initialize @confi...
JavaScript
beef/core/main/client/are.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 // /** * A series of functions that handle statuses, returns a number based on the function called. * @namespace beef.are */ beef.ar...
JavaScript
beef/core/main/client/beef.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 JS Library <%= @beef_version %> * Register the BeEF JS on the window object. */ $j = jQuery.noConflict(); if(typeof be...
JavaScript
beef/core/main/client/browser.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 // /** * Basic browser functions. * @namespace beef.browser */ beef.browser = { /** * Returns the protocol. * @example:...
JavaScript
beef/core/main/client/dom.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 // /** * Provides functionality to manipulate the DOM. * @namespace beef.dom */ beef.dom = { /** * Generates a random ID for HTML...
JavaScript
beef/core/main/client/geolocation.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 // /** * Provides functionalities to use the geolocation API. * @namespace beef.geolocation */ beef.geolocation = { /** * C...
JavaScript
beef/core/main/client/hardware.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 // /** * @namespace beef.hardware */ beef.hardware = { ua: navigator.userAgent, /** * @return {String} CPU type */ getCp...
JavaScript
beef/core/main/client/init.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 // /** * Contains the beef_init() method which starts the BeEF client-side * logic. Also, it overrides the 'onpopstate' and 'onclose' e...
JavaScript
beef/core/main/client/logger.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 // /** * Provides logging capabilities. * @namespace beef.logger */ beef.logger = { running: false, /** * Internal logger i...
JavaScript
beef/core/main/client/mitb.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 // /** * @namespace beef.mitb */ beef.mitb = { cid:null, curl:null, /** Initializes */ init:function (cid, curl) { ...
JavaScript
beef/core/main/client/net.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 // /** * Provides basic networking functions, * like beef.net.request and beef.net.forgeRequest, * used by BeEF command modules and th...
JavaScript
beef/core/main/client/os.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 // /** @namespace beef.os */ beef.os = { ua: navigator.userAgent, /** * Detect default browser (IE only) * Written by unsticky...
JavaScript
beef/core/main/client/session.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 // /** * Provides basic session functions. * @namespace beef.session */ beef.session = { hook_session_id_length: 80, hook_session_...
JavaScript
beef/core/main/client/timeout.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 // /** * Sometimes there are timing issues and looks like beef_init * is not called at all (always in cross-origin situations, * for e...
JavaScript
beef/core/main/client/updater.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 // /** * Object in charge of getting new commands from the BeEF framework and execute them. * The XHR-polling channel is managed here. ...
JavaScript
beef/core/main/client/webrtc.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 // /** * Manage the WebRTC peer to peer communication channels. * This objects contains all the necessary client-side WebRTC component...
JavaScript
beef/core/main/client/websocket.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 // /** * Manage the WebSocket communication channel. * This channel is much faster and responsive, and it's used automatically * if t...
JavaScript
beef/core/main/client/browser/cookie.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 // /** * Provides fuctions for working with cookies. * Several functions adopted from http://techpatterns.com/downloads/javascript_coo...
JavaScript
beef/core/main/client/browser/popup.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 // /** * Provides fuctions for working with cookies. * Several functions adopted from http://davidwalsh.name/popup-block-javascript *...
JavaScript
beef/core/main/client/encode/base64.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 // // Base64 code from http://stackoverflow.com/questions/3774622/how-to-base64-encode-inside-of-javascript/3774662#3774662 beef.encode ...
JavaScript
beef/core/main/client/encode/json.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 // /** * Json code from Brantlye Harris-- http://code.google.com/p/jquery-json/ * @namespace beef.encode.json */ beef.encode.json = ...
JavaScript
beef/core/main/client/lib/evercookie.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 // /* * evercookie 0.4 (10/13/2010) -- extremely persistent cookies * * by samy kamkar : code@samy.pl : http://samy.pl * * this api...
JavaScript
beef/core/main/client/lib/jquery-1.12.4.min.js
/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fu...
JavaScript
beef/core/main/client/lib/jquery-migrate-1.4.1.js
/*! * jQuery Migrate - v1.4.1 - 2016-05-19 * Copyright jQuery Foundation and other contributors */ (function( jQuery, window, undefined ) { // See http://bugs.jquery.com/ticket/13335 // "use strict"; jQuery.migrateVersion = "1.4.1"; var warnedAbout = {}; // List of warnings already given; public read only jQuer...
JavaScript
beef/core/main/client/lib/jquery.blockUI.js
/*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html...
JavaScript
beef/core/main/client/lib/json2.js
// json2.js // 2016-10-28 // Public Domain. // NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. // See http://www.JSON.org/js.html // This code should be minified before deployment. // See http://javascript.crockford.com/jsmin.html // USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS Y...
JavaScript
beef/core/main/client/lib/mdetect.js
/* ******************************************* // Copyright 2010-2015, Anthony Hand // // BETA NOTICE // Previous versions of the JavaScript code for MobileESP were 'regular' // JavaScript. The strength of it was that it was really easy to code and use. // Unfortunately, regular JavaScript means that all variables and...
JavaScript
beef/core/main/client/lib/platform.js
/*! * Platform.js * Copyright 2014-2020 Benjamin Tan * Copyright 2011-2013 John-David Dalton * Available under MIT license */ ;(function() { 'use strict'; /** Used to determine if values are of the language type `Object`. */ var objectTypes = { 'function': true, 'object': true }; /** Used as a ...
JavaScript
beef/core/main/client/lib/webrtcadapter.js
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ /* More information about these options at jshint.com/docs/options */ /* jshint browser: true, c...
JavaScript
beef/core/main/client/net/connection.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.net.connection - wraps Mozilla's Network Information API * https://developer.mozilla.org/en-US/docs/Web/API/NetworkInform...
JavaScript
beef/core/main/client/net/cors.js
/** * @namespace beef.net.cors */ beef.net.cors = { handler: "cors", /** * Response Object - used in the beef.net.request callback */ response:function () { this.status = null; // 500, 404, 200, 302, etc this.headers = null; // full response headers this.body ...
JavaScript
beef/core/main/client/net/dns.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 // /** * * request object structure: * + msgId: {Integer} Unique message ID for the request. * + domain: {String} Remote domain to r...
JavaScript
beef/core/main/client/net/local.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 // /** * Provides networking functions for the local/internal network of the zombie. * @namespace beef.net.local */ beef.net.local = {...
JavaScript
beef/core/main/client/net/portscanner.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 // /** * Provides port scanning functions for the zombie. A mod of pdp's scanner * * Version: '0.1', * author: 'Petko Petkov', * ho...
JavaScript
beef/core/main/client/net/requester.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 // /** * request object structure: * + method: {String} HTTP method to use (GET or POST). * + host: {String} hostname * + query_strin...
JavaScript
beef/core/main/client/net/xssrays.js
/* * XSS Rays * Legal bit: * Do not remove this notice. * Copyright (c) 2009 by Gareth Heyes * Programmed for Microsoft * gareth --at-- businessinfo -dot- co |dot| uk * Version 0.5.5 * * This license governs use of the accompanying software. If you use the software, you * accept this license. If you do not ac...
Ruby
beef/core/main/console/banners.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 # module BeEF module Core module Console module Banners class << self attr_accessor :interfaces # ...
beef/core/main/console/beef.ascii
.O, lkOl od cOc 'X, cOo. cX, ,dkc. ...
Ruby
beef/core/main/console/commandline.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 # module BeEF module Core module Console # # This module parses the command line argument when running beef. # m...
Ruby
beef/core/main/constants/browsers.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 # module BeEF module Core module Constants module Browsers FF = 'FF' # Firefox M = 'M' # ...
Ruby
beef/core/main/constants/commandmodule.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 # module BeEF module Core module Constants module CommandModule # @note Constants to define the execution probability of ...
Ruby
beef/core/main/constants/hardware.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 # module BeEF module Core module Constants # @note The hardware's strings for hardware detection. module Hardware H...
Ruby
beef/core/main/constants/os.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 # module BeEF module Core module Constants # @note The OS'es strings for os detection. module Os OS_UNKNOWN_IMG = '...
Ruby
beef/core/main/handlers/browserdetails.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 # module BeEF module Core module Handlers # @note Retrieves information about the browser (type, version, plugins etc.) clas...
Ruby
beef/core/main/handlers/commands.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 # module BeEF module Core module Handlers class Commands include BeEF::Core::Handlers::Modules::BeEFJS include BeE...
Ruby
beef/core/main/handlers/hookedbrowsers.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 # module BeEF module Core module Handlers # @note This class handles connections from hooked browsers to the framework. clas...
Ruby
beef/core/main/handlers/modules/beefjs.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 # module BeEF module Core module Handlers module Modules # @note Purpose: avoid rewriting several times the same code. ...
Ruby
beef/core/main/handlers/modules/command.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 # module BeEF module Core module Handlers module Modules module Command # Adds the command module instructions t...
Ruby
beef/core/main/handlers/modules/legacybeefjs.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 # module BeEF module Core module Handlers module Modules # @note Purpose: avoid rewriting several times the same code. ...
Ruby
beef/core/main/handlers/modules/multistagebeefjs.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 # module BeEF module Core module Handlers module Modules # @note Purpose: avoid rewriting several times the same code. ...
Ruby
beef/core/main/models/browserdetails.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 # module BeEF module Core module Models # # Table stores the details of browsers. # # For example, the type and ...
Ruby
beef/core/main/models/command.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 # module BeEF module Core module Models # @note Table stores the commands that have been sent to the Hooked Browsers. class...
Ruby
beef/core/main/models/commandmodule.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 # module BeEF module Core module Models class CommandModule < BeEF::Core::Model has_many :commands end end end...
Ruby
beef/core/main/models/execution.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 # module BeEF module Core module Models # @note Stored info about the execution of the ARE on hooked browsers. class Executi...
Ruby
beef/core/main/models/hookedbrowser.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 # module BeEF module Core module Models class HookedBrowser < BeEF::Core::Model has_many :commands has_many :resul...
Ruby
beef/core/main/models/legacybrowseruseragents.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 # module BeEF module Core module Models # # Objects stores known 'legacy' browser User Agents. # # This table is...
Ruby
beef/core/main/models/log.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 # module BeEF module Core module Models class Log < BeEF::Core::Model has_one :hooked_browser end end end end
Ruby
beef/core/main/models/optioncache.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 # module BeEF module Core module Models class OptionCache < BeEF::Core::Model end end end end
Ruby
beef/core/main/models/result.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 # module BeEF module Core module Models class Result < BeEF::Core::Model has_one :command has_one :hooked_browser ...
Ruby
beef/core/main/models/rule.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 # module BeEF module Core module Models # @note Table stores the rules for the Distributed Engine. class Rule < BeEF::Core:...
Ruby
beef/core/main/network_stack/api.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 # module BeEF module Core module NetworkStack module RegisterHttpHandler # Register the http handler for the network stack...
Ruby
beef/core/main/network_stack/assethandler.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 # module BeEF module Core module NetworkStack module Handlers # @note Class defining BeEF assets class AssetHandle...
Ruby
beef/core/main/network_stack/handlers/dynamicreconstruction.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 # module BeEF module Core module NetworkStack module Handlers # @note DynamicHandler is used reconstruct segmented traffic...
Ruby
beef/core/main/network_stack/handlers/raw.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 # module BeEF module Core module NetworkStack module Handlers class Raw def initialize(status, header = {}, body...
Ruby
beef/core/main/network_stack/handlers/redirector.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 # module BeEF module Core module NetworkStack module Handlers # @note Redirector is used as a Rack app for mounting HTTP r...
Ruby
beef/core/main/network_stack/websocket/websocket.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 # module BeEF module Core module Websocket require 'singleton' require 'json' require 'base64' require 'em-webso...
Ruby
beef/core/main/rest/api.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 # module BeEF module Core module Rest module RegisterHooksHandler def self.mount_handler(server) server.mount('/...
Ruby
beef/core/main/rest/handlers/admin.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 # module BeEF module Core module Rest class Admin < BeEF::Core::Router::Router config = BeEF::Core::Configuration.instanc...
Ruby
beef/core/main/rest/handlers/autorun_engine.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 # module BeEF module Core module Rest class AutorunEngine < BeEF::Core::Router::Router config = BeEF::Core::Configuration...
Ruby
beef/core/main/rest/handlers/browserdetails.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 # module BeEF module Core module Rest class BrowserDetails < BeEF::Core::Router::Router config = BeEF::Core::Configuratio...
Ruby
beef/core/main/rest/handlers/categories.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 # module BeEF module Core module Rest class Categories < BeEF::Core::Router::Router config = BeEF::Core::Configuration.in...
Ruby
beef/core/main/rest/handlers/hookedbrowsers.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 # module BeEF module Core module Rest class HookedBrowsers < BeEF::Core::Router::Router config = BeEF::Core::Configuratio...
Ruby
beef/core/main/rest/handlers/logs.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 # module BeEF module Core module Rest class Logs < BeEF::Core::Router::Router config = BeEF::Core::Configuration.instance...