Move firefox extension modules to social engineering directory

This commit is contained in:
bcoles
2014-03-16 18:18:18 +10:30
parent 7a8115211d
commit ee1e29341e
27 changed files with 9 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ beef:
module:
firefox_extension_bindshell:
enable: true
category: ["Exploits", "Local Host"]
category: ["Social Engineering"]
name: "Firefox Extension (Bindshell)"
description: "Create on the fly a malicious Firefox extension that binds a shell to a specified port.<br/><br/>The extension is based on the original work from Michael Schierl and his Metasploit module, and joev's Firefox payloads for Metasploit."
authors: ["antisnatchor", "bcoles"]

View File

@@ -38,7 +38,7 @@ class Firefox_extension_bindshell < BeEF::Core::Command
end
end
mod_path = "#{$root_dir}/modules/exploits/local_host/firefox_extension_bindshell"
mod_path = "#{$root_dir}/modules/social_engineering/firefox_extension_bindshell"
extension_path = mod_path + "/extension"
# clean the build directory
@@ -65,7 +65,7 @@ class Firefox_extension_bindshell < BeEF::Core::Command
# mount the extension in the BeEF web server, calling a specific nested class (needed because we need a specific content-type/disposition)
bind_extension = Firefox_extension_bindshell::Bind_extension
bind_extension.set :extension_path, "#{$root_dir}/modules/exploits/local_host/firefox_extension_bindshell/extension/#{@xpi_name}.xpi"
bind_extension.set :extension_path, "#{$root_dir}/modules/social_engineering/firefox_extension_bindshell/extension/#{@xpi_name}.xpi"
BeEF::Core::Server.instance.mount("/#{@xpi_name}.xpi", bind_extension.new)
BeEF::Core::Server.instance.remap
end

View File

@@ -7,7 +7,7 @@ beef:
module:
firefox_extension_dropper:
enable: true
category: ["Exploits", "Local Host"]
category: ["Social Engineering"]
name: "Firefox Extension (Dropper)"
description: "Create on the fly a malicious Firefox extension that embeds a dropper you can specify (add it to the 'dropper' directory). <br/><br/> The extension is based on the original work from Michael Schierl and his Metasploit module."
authors: ["antisnatchor"]

View File

@@ -35,7 +35,7 @@ class Firefox_extension_dropper < BeEF::Core::Command
end
end
mod_path = "#{$root_dir}/modules/exploits/local_host/firefox_extension_dropper"
mod_path = "#{$root_dir}/modules/social_engineering/firefox_extension_dropper"
extension_path = mod_path + "/extension"
# clean the build directory
@@ -75,7 +75,7 @@ class Firefox_extension_dropper < BeEF::Core::Command
# mount the extension in the BeEF web server, calling a specific nested class (needed because we need a specifi content-type/disposition)
bind_extension = Firefox_extension_dropper::Bind_extension
bind_extension.set :extension_path, "#{$root_dir}/modules/exploits/local_host/firefox_extension_dropper/extension/#{@xpi_name}.xpi"
bind_extension.set :extension_path, "#{$root_dir}/modules/social_engineering/firefox_extension_dropper/extension/#{@xpi_name}.xpi"
BeEF::Core::Server.instance.mount("/#{@xpi_name}.xpi", bind_extension.new)
BeEF::Core::Server.instance.remap
end

View File

@@ -7,7 +7,7 @@ beef:
module:
firefox_extension_reverse_shell:
enable: true
category: ["Exploits", "Local Host"]
category: ["Social Engineering"]
name: "Firefox Extension (Reverse Shell)"
description: "Create on the fly a malicious Firefox extension that makes a reverse shell connection to a specified host:port.<br/><br/>The extension is based on the original work from Michael Schierl and his Metasploit module, and joev's Firefox payloads for Metasploit."
authors: ["antisnatchor", "bcoles"]

View File

@@ -41,7 +41,7 @@ class Firefox_extension_reverse_shell < BeEF::Core::Command
end
end
mod_path = "#{$root_dir}/modules/exploits/local_host/firefox_extension_reverse_shell"
mod_path = "#{$root_dir}/modules/social_engineering/firefox_extension_reverse_shell"
extension_path = mod_path + "/extension"
# clean the build directory
@@ -68,7 +68,7 @@ class Firefox_extension_reverse_shell < BeEF::Core::Command
# mount the extension in the BeEF web server, calling a specific nested class (needed because we need a specific content-type/disposition)
bind_extension = Firefox_extension_reverse_shell::Bind_extension
bind_extension.set :extension_path, "#{$root_dir}/modules/exploits/local_host/firefox_extension_reverse_shell/extension/#{@xpi_name}.xpi"
bind_extension.set :extension_path, "#{$root_dir}/modules/social_engineering/firefox_extension_reverse_shell/extension/#{@xpi_name}.xpi"
BeEF::Core::Server.instance.mount("/#{@xpi_name}.xpi", bind_extension.new)
BeEF::Core::Server.instance.remap
end