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

Conversation

@shipcod3
Copy link
Contributor

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
@acammack-r7 acammack-r7 added the module label Sep 11, 2019
Changed ```0x10``` to ```0x01```
@shipcod3

This comment has been minimized.

Copy link
Contributor Author

commented Sep 12, 2019

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

@cbrnrd

This comment has been minimized.

Copy link
Contributor

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 added a commit that referenced this pull request Sep 26, 2019
@busterb busterb merged commit b879a88 into rapid7:master Sep 26, 2019
3 checks passed
3 checks passed
Metasploit Automation - Sanity Test Execution Successfully completed all tests.
Details
Metasploit Automation - Test Execution Successfully completed all tests.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@busterb

This comment has been minimized.

Copy link
Member

commented Sep 26, 2019

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

msjenkins-r7 added a commit that referenced this pull request Sep 26, 2019
@busterb

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Contributor Author

commented Sep 27, 2019

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 label Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.