myph.git


myph

~ shellcode loader for your evasion needs
git clone https://github.com/matro7sh/myph.git
log | files | refs | archive | README | LICENSE

Makefile (1711B)

      1 # Build configuration
      2 # -------------------
      3 
      4 APP_NAME = myph
      5 APP_VERSION = 1.2.3
      6 GIT_REVISION = `git rev-parse HEAD`
      7 DOCKER_IMAGE_TAG ?= $(APP_VERSION)
      8 DOCKER_LOCAL_IMAGE = $(APP_NAME):$(DOCKER_IMAGE_TAG)
      9 
     10 # Introspection targets
     11 # ---------------------
     12 
     13 .PHONY: all
     14 all: compile
     15 
     16 
     17 .PHONY: help
     18 help: header targets
     19 
     20 .PHONY: header
     21 header:
     22 	@echo "\033[34mEnvironment\033[0m"
     23 	@echo "\033[34m---------------------------------------------------------------\033[0m"
     24 	@printf "\033[33m%-23s\033[0m" "APP_NAME"
     25 	@printf "\033[35m%s\033[0m" $(APP_NAME)
     26 	@echo ""
     27 	@printf "\033[33m%-23s\033[0m" "APP_VERSION"
     28 	@printf "\033[35m%s\033[0m" $(APP_VERSION)
     29 	@echo ""
     30 	@printf "\033[33m%-23s\033[0m" "GIT_REVISION"
     31 	@printf "\033[35m%s\033[0m" $(GIT_REVISION)
     32 	@echo ""
     33 	@printf "\033[33m%-23s\033[0m" "DOCKER_IMAGE_TAG"
     34 	@printf "\033[35m%s\033[0m" $(DOCKER_IMAGE_TAG)
     35 	@echo ""
     36 	@printf "\033[33m%-23s\033[0m" "DOCKER_LOCAL_IMAGE"
     37 	@printf "\033[35m%s\033[0m" $(DOCKER_LOCAL_IMAGE)
     38 	@echo "\n"
     39 
     40 
     41 .PHONY: targets
     42 targets:
     43 	@echo "\033[34mmyph targets:\033[0m"
     44 	@perl -nle'print $& if m{^[a-zA-Z_-\d]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}'
     45 
     46 
     47 .PHONY: compile
     48 compile: ## compile the project
     49 	@go build -o $(APP_NAME) .
     50 	@printf "[ *** successfully built %s version %s *** ]\n" $(APP_NAME) $(APP_VERSION)
     51 
     52 .PHONY: clean
     53 clean: ## clean up the project directory
     54 	@rm -vf $(APP_NAME)
     55 
     56 .PHONY: docker
     57 docker: ## build a local docker image
     58 	@docker build . -t $(APP_NAME):latest -t $(APP_NAME):$(APP_VERSION)
     59 
     60 .PHONY: release-build
     61 release-build: ## makes a release build locally on the current commit
     62 	@goreleaser release --skip=publish --snapshot