GNU Affero General Public License v3.0

项目介绍

shomykohai/penumbra 是一个托管在 GitHub 上的开源项目,主要使用 Rust 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 482 个 Star、105 次 Fork。

仓库全名
shomykohai/penumbra
开源许可证
GNU Affero General Public License v3.0
Star 数
482
Fork 数
105
未关闭 Issue
6

README 摘要

Penumbra is a Rust crate and tool for interacting with Mediatek devices. It provides flashing and readback capabilities, as well as bootloader unlocking and relocking on vulnerable devices. Features Flashing, readback and erase of partitions Support for both V5 (XFlash) and V6 (XML) devices CLI and a TUI Scatter file flashing Furthermore, on vulnerable devices, the following features are also supported: Bootloader…

完整内容见 GitHub 原始 README 或本页 。

常见问题

penumbra 用什么语言开发?

主要使用 Rust 编写,采用 GNU Affero General Public License v3.0 许可证,目前有 482 个 Star。

penumbra 可以免费商用吗?

仓库标注的许可证为 GNU Affero General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 penumbra 的源码?

可以直接克隆仓库:git clone https://github.com/shomykohai/penumbra.git,默认分支为 main;安装与运行步骤见仓库 README。

penumbra 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 6 个未关闭 Issue;Star 数为 482,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

🌘 MTK flash tool written in rust

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
706
价值分
321
活跃状态
活跃

语言占比

Dockerfile
NSIS
Nix
Python
Rust
Shell

Release

README

Penumbra banner

Penumbra is a Rust crate and tool for interacting with Mediatek devices.
It provides flashing and readback capabilities, as well as bootloader unlocking and relocking on vulnerable devices.

Features

  • Flashing, readback and erase of partitions
  • Support for both V5 (XFlash) and V6 (XML) devices
  • CLI and a TUI
  • Scatter file flashing

Furthermore, on vulnerable devices, the following features are also supported:

  • Bootloader unlocking and relocking on vulnerable devices
  • RPMB operations (read/write/erase, EMMC only for now)
  • Arbitrary memory read/write
  • …and more!

Requirements

  • On Windows, you’ll need to install MediaTek VCOM drivers. For using linecode exploit (also known as Kamakiri2), you’ll need to install either libusb or WinUSB drivers with Zadig.
  • On Linux you’ll need to install libudev and add your user to the dialout group. In case Penumbra doesn’t recognize the device, run with sudo or allow access to the device with udev rules.

For more details, check the installation guide.

Usage

Penumbra can be used both as a crate for interacting directly with a device with your own code, as well as providing a CLI and TUI.

For learning how to use the TUI, read the documentation here For using the CLI, read the documentation with all commands here

For using the crate, a brief introduction is provided in the crate documentation.

Debug logs

Some issues may be hard to reproduce, and may require more insight of what is happening on the device. If so, you can open an issue attaching debug logs.
To get debug logs, run antumbra with the -v and -l debug flags. A file called antumbra.log will be created in the current directory. This will also enable UART debug logging. If possible, attach UART logs too. If you don’t have UART, you can use the --usb-log flag in antumbra to enable DA logging over USB. A file called da.log will be created in the current directory with the logs.

[!NOTE] Penumbra currently supports both V5 (XFlash) and V6 (XML) devices. Issues reporting incompatibility with older (V3/Legacy) chipsets will be ignored until broader support is added. If your device falls in one of the supported protocols and you get the “unknown hardware code” warning, please open an issue attaching your device info, and relevant firmware files (preloader, DA, lk).

Contributing

For contributing, you’ll first need to setup a development environment.

Read on how to setup a dev environment and how to get started here

For contributing to the payloads, head to the payloads repository.

Current Roadmap

Core:

  • Add V3 support
  • Add amonet exploit

TUI:

  • Refactor the TUI code to be more maintainable
  • Add reusable components
  • Make better key bindings

CLI:

  • Add plstage
  • Add Read Offset, Write Offset and Erase Offset commands
  • Add register read/write commands

Documentation:

  • Add documentation for the crate
  • Add linecode exploit documentation

Learning Resources

Penumbra has its own documentation, where you can learn more about Mediatek devices and how the Download protocol works.

Other learning resources I suggest are the following

Credits

License

Penumbra is licensed under the GNU Affero General Public License v3 or later (AGPL-3.0-or-later), see LICENSE for details.

Logo by @archaeopteryz, all rights reserved. Use is allowed only for referencing “Penumbra” or “Antumbra”, unless explicit permission has been granted.

评论

暂无评论