2020-02-11 23:52:47 +01:00
|
|
|
PYTHON := python3
|
|
|
|
ifeq (, $(shell which python3))
|
|
|
|
# if no python3 alias, fall back to `python` and hope it's py3
|
|
|
|
PYTHON := python
|
|
|
|
endif
|
2020-02-11 23:43:08 +01:00
|
|
|
EXPLOIT_DIR := homebrew
|
|
|
|
EXPLOIT_PATH := $(EXPLOIT_DIR)/exploit.mscsb
|
2020-02-11 23:13:28 +01:00
|
|
|
|
2020-02-11 23:43:08 +01:00
|
|
|
homebrew: $(EXPLOIT_PATH)
|
2020-02-11 23:52:47 +01:00
|
|
|
$(PYTHON) inject.py $<
|
2020-02-11 23:13:28 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -r data
|
2020-02-11 23:43:08 +01:00
|
|
|
$(MAKE) --directory=$(EXPLOIT_DIR) clean
|
2020-02-11 23:13:28 +01:00
|
|
|
|
2020-02-11 23:43:08 +01:00
|
|
|
$(EXPLOIT_PATH):
|
|
|
|
$(MAKE) --directory=$(EXPLOIT_DIR)
|