Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mazda_ic_mover module that moves the instrument cluster #12313

Merged
merged 3 commits into from
Sep 26, 2019
Merged

Add mazda_ic_mover module that moves the instrument cluster #12313

merged 3 commits into from
Sep 26, 2019

Conversation

shipcod3
Copy link
Contributor

@shipcod3 shipcod3 commented Sep 11, 2019

This module moves the needle of the accelorometer and speedometer of the Mazda 2 instrument cluster which is from the cluster I have been working for ROOTCON's Car Hacking Village: https://twitter.com/rootconph/status/1171333590161879040

Verification

Fire up the virtual CAN

  • sudo modprobe can
  • sudo modprobe vcan
  • sudo ip link add dev vcan0 type vcan
  • sudo ip link set up vcan0

Metasploit console output after connecting with the hwbridge:


msf5 auxiliary(client/hwbridge/connect) > run
[*] Running module against 127.0.0.1

[*] Attempting to connect to 127.0.0.1...
[*] Hardware bridge interface session 2 opened (127.0.0.1 -> 127.0.0.1) at 2019-09-11 04:59:40 -0700
[+] HWBridge session established
[*] HW Specialty: {"automotive"=>true}  Capabilities: {"can"=>true, "custom_methods"=>true}
[!] NOTICE:  You are about to leave the matrix.  All actions performed on this hardware bridge
[!]          could have real world consequences.  Use this module in a controlled testing
[!]          environment and with equipment you are authorized to perform testing on.
[*] Auxiliary module execution completed
msf5 auxiliary(client/hwbridge/connect) > sessions

Active sessions
===============

  Id  Name  Type                   Information  Connection
  --  ----  ----                   -----------  ----------
  2         hwbridge cmd/hardware  automotive   127.0.0.1 -> 127.0.0.1 (127.0.0.1)

msf5 auxiliary(client/hwbridge/connect) > sessions -i 2
[*] Starting interaction with 2...

hwbridge > run post/hardware/automotive/mazda_ic_mover CANBUS=vcan0

[*] Moving the accelorometer and speedometer...
hwbridge > run post/hardware/automotive/mazda_ic_mover CANBUS=vcan0

[*] Moving the accelorometer and speedometer...
hwbridge > run post/hardware/automotive/mazda_ic_mover CANBUS=vcan0

[*] Moving the accelorometer and speedometer...
hwbridge > run post/hardware/automotive/mazda_ic_mover CANBUS=vcan0

[*] Moving the accelorometer and speedometer...
hwbridge > run post/hardware/automotive/mazda_ic_mover CANBUS=vcan0

[*] Moving the accelorometer and speedometer...

You can use candump to verify the CAN messages being sent:

jjt@ubuntu:~/pentot/ICSim$ candump -c vcan0
  vcan0  202   [8]  60 01 60 60 60 60 60 00
  vcan0  202   [8]  60 01 60 60 60 60 60 00
  vcan0  202   [8]  60 01 60 60 60 60 60 00
  vcan0  202   [8]  60 01 60 60 60 60 60 00

This module moves the needle of the accelorometer and speedometer of the Mazda 2 instrument cluster
Changed ```0x10``` to ```0x01```
@shipcod3
Copy link
Contributor Author

Not sure if this is the right way wherein I already created a documentation for the said module too.

@cbrnrd
Copy link
Contributor

cbrnrd commented Sep 12, 2019

The documentation and module source should be in the same pull request :)

@busterb busterb self-assigned this Sep 23, 2019
@busterb busterb merged commit b879a88 into rapid7:master Sep 26, 2019
@busterb
Copy link
Member

busterb commented Sep 26, 2019

Looks good @shipcod3, nice and simple. Thanks for the contribution.

@busterb
Copy link
Member

busterb commented Sep 26, 2019

Release Notes

This adds a new module mazda_ic_mover that moves the accelorometer and speedometer of the Mazda and related instrument clusters for demonstration purposes with the Metasploit hardware bridge. See the module documentation for additional target details.

@shipcod3
Copy link
Contributor Author

Looks good @shipcod3, nice and simple. Thanks for the contribution.

Welcome, I will try my best for other automotive modules towards hwbridge.

@tperry-r7 tperry-r7 added the rn-modules release notes for new or majorly enhanced modules label Oct 1, 2019
@shipcod3 shipcod3 deleted the patch-28 branch November 19, 2019 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module rn-modules release notes for new or majorly enhanced modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants