Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Dec 3, 2018
1 parent 12fb6a6 commit 19be8ad
Show file tree
Hide file tree
Showing 5 changed files with 4,044 additions and 1,415 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ tags:

.PHONY: ssh
ssh:
@docker run --init -it --rm --security-opt seccomp=seccomp/profile.json -v $(PWD):/malware --entrypoint=bash $(ORG)/$(NAME):$(VERSION)
@docker run --init -it --rm --security-opt seccomp=seccomp.json -v $(PWD):/malware --entrypoint=bash $(ORG)/$(NAME):$(VERSION)
# @docker run --init -it --rm --security-opt seccomp:unconfined -v $(PWD):/malware --entrypoint=bash $(ORG)/$(NAME):$(VERSION)

.PHONY: tar
tar:
Expand Down Expand Up @@ -61,15 +62,15 @@ test_all: test test_elastic test_markdown test_web
test: malware
@echo "===> ${NAME} --help"
docker run --init --rm $(ORG)/$(NAME):$(VERSION) --help
docker run --init --rm --security-opt seccomp=seccomp/profile.json -v $(PWD):/malware $(ORG)/$(NAME):$(VERSION) -V $(MALWARE) | jq . > docs/results.json
docker run --init --rm --security-opt seccomp=seccomp.json -v $(PWD):/malware $(ORG)/$(NAME):$(VERSION) -V $(MALWARE) | jq . > docs/results.json
cat docs/results.json | jq .

.PHONY: test_elastic
test_elastic: start_elasticsearch malware
@echo "===> ${NAME} test_elastic found"
docker run --rm --link elasticsearch -e MALICE_ELASTICSEARCH_URL=http://elasticsearch:9200 --security-opt seccomp=seccomp/profile.json -v $(PWD):/malware $(ORG)/$(NAME):$(VERSION) -V $(MALWARE)
docker run --rm --link elasticsearch -e MALICE_ELASTICSEARCH_URL=http://elasticsearch:9200 --security-opt seccomp=seccomp.json -v $(PWD):/malware $(ORG)/$(NAME):$(VERSION) -V $(MALWARE)
@echo "===> ${NAME} test_elastic NOT found"
docker run --rm --link elasticsearch -e MALICE_ELASTICSEARCH_URL=http://elasticsearch:9200 --security-opt seccomp=seccomp/profile.json -v $(PWD):/malware $(ORG)/$(NAME):$(VERSION) -V $(NOT_MALWARE)
docker run --rm --link elasticsearch -e MALICE_ELASTICSEARCH_URL=http://elasticsearch:9200 --security-opt seccomp=seccomp.json -v $(PWD):/malware $(ORG)/$(NAME):$(VERSION) -V $(NOT_MALWARE)
http localhost:9200/malice/_search | jq . > docs/elastic.json

.PHONY: test_markdown
Expand All @@ -81,7 +82,7 @@ test_markdown:
.PHONY: test_web
test_web: malware stop
@echo "===> Starting web service"
@docker run -d --name $(NAME) -p 3993:3993 --security-opt seccomp=seccomp/profile.json $(ORG)/$(NAME):$(VERSION) web
@docker run -d --name $(NAME) -p 3993:3993 --security-opt seccomp=seccomp.json $(ORG)/$(NAME):$(VERSION) web
http -f localhost:3993/scan malware@$(MALWARE)
@echo "===> Stopping web service"
@docker logs $(NAME)
Expand Down
Loading

0 comments on commit 19be8ad

Please sign in to comment.