1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00
metasploit-payloads/java/Makefile

36 lines
617 B
Makefile
Raw Normal View History

ADB=${ANDROID_HOME}/platform-tools/adb
ANDROID=${ANDROID_HOME}/tools/android
PACKAGE=com.metasploit.stage
2016-10-13 07:39:09 +02:00
all: android
android:
2015-08-17 15:26:36 +02:00
mvn package -Dandroid.sdk.path=${ANDROID_HOME} -Dandroid.ndk.path=${ANDROID_NDK_HOME} -Dandroid.release=true -P deploy
java:
mvn package
clean:
2016-10-13 07:39:09 +02:00
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
2015-08-17 15:26:36 +02:00
uninstall:
${ADB} uninstall ${PACKAGE}