Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Magpol/fridafde
Frida FDE bruteforce Samsung S7 Edge
https://github.com/Magpol/fridafde
Last synced: about 1 month ago
JSON representation
Frida FDE bruteforce Samsung S7 Edge
- Host: GitHub
- URL: https://github.com/Magpol/fridafde
- Owner: Magpol
- License: gpl-3.0
- Created: 2019-11-04T10:37:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-04T12:59:55.000Z (about 5 years ago)
- Last Synced: 2024-08-01T16:31:28.694Z (4 months ago)
- Language: Python
- Size: 190 KB
- Stars: 46
- Watchers: 9
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mobile-security - How to use FRIDA to bruteforce Secure Startup with FDE-encryption on a Samsung G935F running Android 8
README
# FRiDA FDE bruteforce
Here's a small write-up on how to use FRiDA to bruteforce Secure Startup with FDE-encryption on a Samsung G935F running Android 8.
![ExampleImage](/fde_example.png?raw=true "Title")
FRiDA requires a rooted device (or FRiDA injected into a specific process). I won't go into details on how to accomplish this, just google ENG-ROOT or Magisk and you will probably
find a rooting solution that works for you. I've also included a small script to upload and start FRiDA on the connected device: startFrida.sh.First of all, what are we doing? And why are we doing this? What I wanted to do is find a way of testing codes without hitting the limit of maximum password attempts. If the maximum attempt value is reached, the device will reboot and wipe. So my first step was to find out the processes or functions that managed all this.
From reading Android source and using Objection (another great tool) I soon figured out that "android.os.storage.IStorageManager::decryptStorage" running in the process "com.android.settings:CryptKeeper" was the target for my FRiDA-script. I also knew from before that Vold is involved in the process of verifying and updating the crypto footer.
After some fiddling with Radare2 and FRiDA, I came to the conclusion that by replacing the "footer_put" function in Vold I could try codes and keep the counter at the original value.Included are two different Python scripts:
The file "hooking-vold.py" replaces "footer_put" in Vold.
The file "hooking-mount.py" creates the RPC we use from the python script to try the different codes.We need to run files at the same time, in two different terminals.
How to use it:
1. Run "startFrida.sh" to upload and start FRiDA server on your connected device.
2. Run "python3 hooking-vold.py" in a separate terminal.
3. Run "python3 hooking-mount.py" in main terminal.
4. Sometimes when the correct code is found, the process hangs the device. Just issue "adb reboot" to restart secure startup and then enter the correct code.