mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-12-08 23:33:07 +01:00
36 lines
617 B
Makefile
36 lines
617 B
Makefile
ADB=${ANDROID_HOME}/platform-tools/adb
|
|
ANDROID=${ANDROID_HOME}/tools/android
|
|
PACKAGE=com.metasploit.stage
|
|
|
|
all: android
|
|
|
|
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 -Dandroid.sdk.path=/ -Dandroid.ndk.path=/
|
|
|
|
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}
|