2015-06-01 15:28:20 +02:00
|
|
|
DATADIR:=../metasploit-framework/data
|
|
|
|
METERPDIR:=$(DATADIR)/meterpreter
|
2019-11-06 23:35:56 +01:00
|
|
|
ANDROIDSDKDIR:=/usr/local/share/android-sdk
|
2015-06-01 15:28:20 +02:00
|
|
|
|
2017-06-05 13:15:27 +02:00
|
|
|
install-all: \
|
2020-02-16 19:48:38 +01:00
|
|
|
install-windows \
|
|
|
|
install-java \
|
|
|
|
install-android \
|
|
|
|
install-php \
|
|
|
|
install-python
|
2015-06-01 15:28:20 +02:00
|
|
|
|
2017-06-05 13:15:27 +02:00
|
|
|
install-windows:
|
2015-06-01 15:28:20 +02:00
|
|
|
@echo "Installing Windows payloads"
|
|
|
|
@if [ -d c/meterpreter/output/x86 ]; then \
|
|
|
|
cp -a c/meterpreter/output/x86/*.dll $(METERPDIR); \
|
|
|
|
else \
|
|
|
|
echo "Note: Windows 32-bit not built, skipping"; \
|
|
|
|
fi
|
|
|
|
@if [ -d c/meterpreter/output/x64 ]; then \
|
|
|
|
cp -a c/meterpreter/output/x64/*.dll $(METERPDIR); \
|
|
|
|
else \
|
|
|
|
echo "Note: Windows 64-bit not built, skipping"; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
install-java:
|
|
|
|
@echo "Installing Java payloads"
|
|
|
|
@mvn -v >/dev/null 2>&1 || echo "Note: Maven not found, skipping";
|
|
|
|
@mvn -v >/dev/null 2>&1 && (cd java; mvn package -Dandroid.release=true -P deploy -q);
|
|
|
|
|
|
|
|
install-php: $(METERPDIR)
|
|
|
|
@echo "Installing PHP payloads"
|
|
|
|
@cp php/meterpreter/*.php $(METERPDIR)
|
|
|
|
|
|
|
|
install-python: $(METERPDIR)
|
|
|
|
@echo "Installing Python payloads"
|
|
|
|
@cp python/meterpreter/*.py $(METERPDIR)
|
|
|
|
|
2019-11-06 23:35:56 +01:00
|
|
|
install-android:
|
2020-02-16 19:48:38 +01:00
|
|
|
@echo "Installing Android payloads"
|
|
|
|
@mvn -v >/dev/null 2>&1 || echo "Note: Maven not found, skipping";
|
|
|
|
@mvn -v >/dev/null 2>&1 && (cd java; mvn package -Dandroid.sdk.path=$(ANDROIDSDKDIR) -Dandroid.release=true -P deploy -q);
|
2019-11-06 23:35:56 +01:00
|
|
|
|
2015-06-01 15:28:20 +02:00
|
|
|
uninstall:
|
|
|
|
rm -fr $(METERPDIR)
|
|
|
|
rm -fr $(DATADIR)/java
|