# canTot
canTot 是一个基于 Python 的命令行框架,底层使用 sploitkit,操作方式类似于 Metasploit,易于上手。它类似于漏洞利用框架,但专注于已知的 CAN 总线漏洞或有趣的 CAN 总线攻击技巧。它也可以作为渗透测试车辆的学习指南,以及通过更简单的方式学习汽车黑客技术的 Python 教程。这不是要重新发明已有的 CAN 模糊测试工具、汽车探索工具(如 caring caribou)或其他优秀的 CAN 分析器,而是将汽车安全中所有已知的漏洞和有趣的 CAN 总线攻击技巧整合在一起。
由 [Car Hacking Village Philippines](https://www.facebook.com/chvdotph) 创建的项目。
# 安装
```
git clone https://github.com/shipcod3/canTot
cd canTot
pip3 install -r requirements.txt
```
注意:在 Kali 和 Ubuntu 上效果更佳。
# 框架使用示例:
```
─$ python3 main.py
@@@@@@@ @@@@@@ @@@ @@@ @@@@@@@ @@@@@@ @@@@@@@
@@@@@@@@ @@@@@@@@ @@@@ @@@ @@@@@@@ @@@@@@@@ @@@@@@@
!@@ @@! @@@ @@!@!@@@ @@! @@! @@@ @@!
!@! !@! @!@ !@!!@!@! !@! !@! @!@ !@!
!@! @!@!@!@! @!@ !!@! @!! @!@ !@! @!!
!!! !!!@!!!! !@! !!! !!! !@! !!! !!!
:!! !!: !!! !!: !!! !!: !!: !!! !!:
:!: :!: !:! :!: !:! :!: :!: !:! :!:
::: ::: :: ::: :: :: :: ::::: :: ::
:: :: : : : : :: : : : : : :
███████████ █████
░█░░░███░░░█ ░░███
██████ ██████ ████████ ░ ░███ ░ ██████ ███████
███░░███ ░░░░░███ ░░███░░███ ░███ ███░░███░░░███░
░███ ░░░ ███████ ░███ ░███ ░███ ░███ ░███ ░███
░███ ███ ███░░███ ░███ ░███ ░███ ░███ ░███ ░███ ███
░░██████ ░░████████ ████ █████ █████ ░░██████ ░░█████
░░░░░░ ░░░░░░░░ ░░░░ ░░░░░ ░░░░░ ░░░░░░ ░░░░░
>> quick and dirty canbus h4xing framework
>> @shipcod3
-=[ 13 uncategorized ]=-
cantot > show modules
Uncategorized modules
=====================
Name Path Enabled Description
---- ---- ------- -----------
cherokee_kill_brakes . Y This module will bleed all the brakes on the 2014 Jeep Cherokee while the car is moving. This has the result that the brakes will not work during this time and
has significant safety issues, even if it only works if you are driving slowly.
cherokee_kill_engine . Y This module will kill the engine on the 2014 Jeep Cherokee while the car is moving at low speed by killing a particular fuel injector.
cherokee_turn_steering . Y This module will put the Parking Assist Module(PAM) in diagnostic session and send a CAN message to tell the power steering ECU to turn the wheel for the Jeep
Cherokee 2014.
diagnostic_state . Y This module will keep the vehicle in a diagnostic state on loop by sending tester present packet.
ecu_hard_reset . Y This module performs hard reset in the ECU Reset Service Identifier (0x11).
ford_escape_door_ajar_spoof . Y This module will indicate that the door is ajar (open) from the instrument panel despite not opened.
ford_escape_kill_engine . Y This module will kill the engine for Ford Escape 2010 without establishing a diagnostic session and works at any speed.
jeep_wrangler_evicsend . Y This module allows you to display the word Hacked on a 2012 Jeep Wrangler EVIC.
kill_bus . Y This module will perform a known denial of service via the CAN bus called Firehose attack.
malibu_overheat . Y This module will flood temp gauge on a 2006 Malibu.
mazda_ic_mover . Y This module moves the needle of the accelorometer and speedometer of the Mazda 2 instrument cluster.
prius_park_kill_engine . Y This module will kill the fuel to individual or all cylinders in the internal combustion engine of a Toyota Prius 2010 but requires it to be parked.
reset_mileage . Y This module clears diagnostic trouble codes and resets the mileage.
cantot > use diagnostic_state
cantot (diagnostic_state) > show options
Module options
==============
Name Value Required Description
---- ----- -------- -----------
ARBID 2015 Y Arbitration ID (Default: 0x7DF)
INTERFACE vcan0 Y CAN interface
cantot (diagnostic_state) > run
[*] Putting the vehicle in a diagnostic state...
Press Ctrl+C to stop or cancel
```
## 作者
Jay Turla
## 如果你喜欢 canTot,可以请我喝杯咖啡来支持这个项目 :)
<a href="https://www.buymeacoffee.com/shipcod3" target="_blank"><img src="https://assets.kitploit.com/production/public/readmes/6081/485b634752d0d832ed936de61544bf16e5e54dc05146ccca080333c15097d455.png" alt="Buy Me A Coffee" height="41" width="174"></a>
## 贡献者
- superuserx
## 致谢
- Nikhil Bogam,感谢 CVE-2022-26269 并允许我移植他的发现。
- Charlie Miller 和 Chris Valasek,感谢他们的[研究](https://illmatics.com/carhacking.html)和论文。
- Ian Tabor (mintynet),感谢他的建议和指导。
- Car Hacking Village
- Eric Evenchick,感谢 pyvit
- Alexandre D'Hondt,感谢 sploitkit
- carfucar,感谢 canfuzz_sids.py 的灵感
- Craig Smith,感谢《汽车黑客手册》和 hwbridge 的灵感
- ps1337 的 udsSecAccess.py,用于使用安全访问扫描 UDS 服务
- 腾讯科恩实验室,感谢他们的特斯拉黑客技术
- superuserx 修复了 uds_sec_access.py 中的逻辑缺陷