Skip to content
 
 

Repository files navigation

Magica

Privilege Escalation PoC when seccomp is disabled for Android 10+.

Android CI

Download (CI Artifacts)

Usage

adb root
adb shell setenforce 0
adb shell stop
adb shell start
./gradlew :app:iR

EXEC

adb shell am broadcast -n io.github.vvb2060.puellamagi/.CommandReceiver -a io.github.vvb2060.puellamagi.action.EXEC --es cmd id
adb shell am broadcast -n io.github.vvb2060.puellamagi/.CommandReceiver -a io.github.vvb2060.puellamagi.action.EXEC --es cmd whoami
adb shell 'am broadcast -n io.github.vvb2060.puellamagi/.CommandReceiver -a io.github.vvb2060.puellamagi.action.EXEC --es cmd "su -v"'

For commands with parameters, enclose them in quotation marks or run them directly in the adb shell.

adb shell
am broadcast -n io.github.vvb2060.puellamagi/.CommandReceiver -a io.github.vvb2060.puellamagi.action.EXEC --es cmd "su -v"

The command result is returned in Broadcast completed output data=.

License

Public domain

About

No description, website, or topics provided.

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages