1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-21 05:35:54 +01:00
metasploit-payloads/java/Makefile
2015-08-18 00:55:29 +10:00

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}