KeyDive/docs/PACKAGE.md

52 lines
4.0 KiB
Markdown
Raw Normal View History

2024-03-31 13:27:10 +00:00
# Package
2024-03-30 19:03:15 +00:00
This document provides an overview of the external libraries, tools, and applications utilized within the KeyDive project. Each package plays a crucial role in enabling the project to efficiently extract Widevine L3 keys from Android devices for educational and research purposes.
## Tools and Libraries
### [rootAVD](https://gitlab.com/newbit/rootAVD)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
A tool designed to root Android Virtual Devices (AVDs). It enables users to gain superuser privileges on their AVDs, essential for accessing and modifying system-level files and settings that are otherwise restricted.
### [DRM Info](https://apkcombo.com/drm-info/com.androidfung.drminfo/download/phone-1.1.9.220313-apk)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
An Android application providing detailed information about the device's Digital Rights Management (DRM) modules, including Widevine. Useful for verifying the DRM support level (L1, L2, L3) on the target device.
### [Root Explorer](https://apkcombo.com/root-explorer/com.speedsoftware.rootexplorer/)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
A file manager for root users, offering access to the entire Android file system, including typically hidden or inaccessible data folders.
### [Firefox](https://apkcombo.com/fr/firefox/org.mozilla.firefox/)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
A free and open-source web browser for Android, used for downloading files, testing DRM content playback, and other web-related tasks during research.
### [liboemcrypto Disabler](https://github.com/hzy132/liboemcryptodisabler)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
A Magisk module that disables the OEMCrypto service, responsible for L1 DRM protection, forcing devices to fallback to L3 protection and enabling the extraction of L3 keys.
### [MagiskFrida](https://github.com/ViRb3/magisk-frida)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
Allows Frida, a dynamic instrumentation toolkit, to run as a Magisk module, ideal for environments where adb access is limited or not possible.
### [Frida](https://github.com/frida/frida/releases)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
A dynamic code instrumentation toolkit for injecting JavaScript or your own library into native apps on Android and other platforms.
2024-07-12 09:01:30 +00:00
### [ADB (Android Debug Bridge)](https://developer.android.com/tools/adb)
2024-03-30 19:03:15 +00:00
A command-line tool for communicating with a device, facilitating actions such as app installation and debugging, and providing access to a Unix shell for running various commands.
### [Ghidra](https://github.com/NationalSecurityAgency/ghidra)
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
A software reverse engineering (SRE) framework developed by the National Security Agency (NSA) that helps analyze malicious code and malware, and understand their functionality. Ghidra is essential for decompiling and analyzing the binaries and libraries involved in the DRM mechanisms, offering insights into how they operate and can be interacted with.
2024-07-12 09:34:26 +00:00
### [HTTP Toolkit](https://httptoolkit.com/)
An HTTP and HTTPS traffic debugging and testing tool that intercepts traffic between devices and servers. It provides a user-friendly interface to inspect, manipulate, and analyze HTTP requests and responses, crucial for monitoring DRM-related communications during research.
2024-07-12 09:01:30 +00:00
### Additional Tips
2024-07-12 09:05:43 +00:00
- **Native liboemcrypto Handling:** As of the latest updates to KeyDive, it manages liboemcrypto directly within the `keydive.js` script using the `disableLibrary` function. This eliminates the need for the liboemcrypto Disabler Magisk module in many cases, streamlining the setup process and reducing dependencies.
2024-07-12 10:13:38 +00:00
- **Optimize Frida-Server Usage:** To optimize the performance of Frida-Server, ensure that it is compatible with your device's architecture and that you have the appropriate permissions set on the device. Running it as a background process (`adb shell /data/local/tmp/frida-server -D`) ensures that it remains active during your research sessions without interruptions.
2024-07-12 09:01:30 +00:00
2024-03-30 19:03:15 +00:00
The combination of these tools provides a comprehensive toolkit for DRM research, allowing for the exploration of digital content protection mechanisms on Android devices. Each tool has been selected for its ability to contribute to the setup, execution, or support of the KeyDive project, enabling detailed analysis and extraction of digital rights management keys.