Files
beef/modules/commands/browser/link_rewrite/link_rewrite.rb
passbe 5e5a0e8ee8 Added link rewrite module. fixes Issue #219
git-svn-id: https://beef.googlecode.com/svn/trunk@648 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2011-01-01 02:44:02 +00:00

36 lines
978 B
Ruby

module BeEF
module Modules
module Commands
class Link_rewrite < BeEF::Command
def initialize
super({
'Name' => 'Link Rewriter',
'Description' => 'This module will rewrite the href attribute of all matched links.<br /><br />The jQuery selector field can be used to limit the selection of links. eg: a[href="http://www.bindshell.net"]. For more information please see: http://api.jquery.com/category/selectors/',
'Category' => 'Browser',
'Author' => ['passbe'],
'Data' => [
['ui_label'=>'URL', 'name'=>'url', 'value'=>'http://www.bindshell.net/', 'width'=>'200px'],
['ui_label'=>'jQuery Selector', 'name'=>'selector', 'value'=>'a', 'width'=>'200px']
],
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!
end
def callback
save({'result' => @datastore['result']})
end
end
end
end
end