forked from dgisolfi/OpenSSH-Honeypot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
33 lines (25 loc) · 593 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# OpenSSH Honeypot
# Author: Daniel Nicolas Gisolfi
USER=dgisolfi
IMAGE=ssh_honeypot
CONTAINER=ssh_honeypot
MAKE:
@make clean
@make build
@make run
intro:
@echo "OpenSSH Honeypot v2.0\n"
clean:
-docker kill $(CONTAINER)
-docker rm $(CONTAINER)
-docker rmi $(IMAGE)
build: intro
@docker build -t $(IMAGE) .
# Run the honeypot and TCP server
run: build
@docker run -it --rm --name $(CONTAINER) -p22:22 -p2222:2222 $(IMAGE)
# Push Docker image to Docker Hub
publish: build
@docker tag $(IMAGE) $(USER)/$(IMAGE):11.38
@docker push $(USER)/$(IMAGE)
.PHONY: intro clean build run