mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-12-02 20:36:40 +01:00
36 lines
580 B
Makefile
36 lines
580 B
Makefile
ADB=${ANDROID_HOME}/platform-tools/adb
|
|
ANDROID=${ANDROID_HOME}/tools/android
|
|
PACKAGE=com.metasploit.stage
|
|
|
|
all: android java
|
|
|
|
android:
|
|
mvn package -Dandroid.sdk.path=${ANDROID_HOME} -Dandroid.ndk.path=${ANDROID_NDK_HOME} -Dandroid.release=true -P deploy
|
|
|
|
java:
|
|
mvn package
|
|
|
|
clean:
|
|
mvn clean
|
|
|
|
android-api:
|
|
${ANDROID}
|
|
|
|
android-devices:
|
|
${ADB} devices
|
|
|
|
avd:
|
|
${ANDROID} avd
|
|
|
|
android-run:
|
|
${ADB} shell am start -a android.intent.action.MAIN -n ${PACKAGE}/.MainActivity
|
|
|
|
android-shell:
|
|
${ADB} shell
|
|
|
|
logcat:
|
|
${ADB} logcat
|
|
|
|
uninstall:
|
|
${ADB} uninstall ${PACKAGE}
|