Modules: Rename browser/webcam to browser/webcam_flash

This commit is contained in:
Brendan Coles
2022-01-22 06:58:18 +00:00
parent e75f5a87c2
commit 060a3bfae2
10 changed files with 6 additions and 5 deletions

View File

@@ -5,10 +5,10 @@
#
beef:
module:
webcam:
webcam_flash:
enable: true
category: "Browser"
name: "Webcam"
name: "Webcam (Flash)"
description: "This module will show the Adobe Flash 'Allow Webcam' dialog to the user. The user has to click the allow button, otherwise this module will not return pictures.<br />The title/text to convince the user can be customised. You can customise how many pictures you want to take and in which interval (default will take 20 pictures, 1 picture per second). The picture is sent as a base64 encoded JPG string."
authors: ["floyd @floyd_ch"]
target:

View File

@@ -4,11 +4,12 @@
# See the file 'doc/COPYING' for copying permission
#
require 'base64'
class Webcam < BeEF::Core::Command
class Webcam_flash < BeEF::Core::Command
def pre_send
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/browser/webcam/takeit.swf', '/takeit', 'swf')
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/browser/webcam/swfobject.js', '/swfobject', 'js')
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/browser/webcam_flash/takeit.swf', '/takeit', 'swf')
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/browser/webcam_flash/swfobject.js', '/swfobject', 'js')
end
def self.options
configuration = BeEF::Core::Configuration.instance
social_engineering_title = "This website is using Adobe Flash"