git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
30 lines
584 B
Ruby
30 lines
584 B
Ruby
class Collect_links < BeEF::Core::Command
|
|
|
|
def initialize
|
|
super({
|
|
'Name' => 'Collect Links',
|
|
'Description' => %Q{
|
|
This module will retrieve HREFs from the target page
|
|
},
|
|
'Category' => 'Recon',
|
|
'Author' => ['vo'],
|
|
'File' => __FILE__
|
|
})
|
|
|
|
set_target({
|
|
'verified_status' => VERIFIED_WORKING,
|
|
'browser_name' => ALL
|
|
})
|
|
|
|
use 'beef.dom'
|
|
use_template!
|
|
end
|
|
|
|
def callback
|
|
content = {}
|
|
content['Links'] = @datastore['links']
|
|
|
|
save content
|
|
end
|
|
|
|
end |