forked from dgisolfi/Telnet-Honeypot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (27 loc) · 698 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
34
35
36
# Telnet Honeypot
# Author: Daniel Nicolas Gisolfi
USER=dgisolfi
IMAGE=telnet_honeypot
CONTAINER=telnet_honeypot
MAKE:
@make clean
@make build
@make run
intro:
@echo "Telnet Honeypot v2.0\n"
clean:
-docker kill $(CONTAINER)
-docker rm $(CONTAINER)
-docker rmi $(IMAGE)
build: intro
@docker build -t $(IMAGE) .
dev: build
@docker run -it --rm --name $(CONTAINER) -p23:23 -v$(PWD)/dev:/usr/local/source/ptelnetd/dev $(IMAGE)
# Run the honeypot and TCP server
run: build
@docker run -it --rm --name $(CONTAINER) -p23:23 $(IMAGE)
# Push Docker image to Docker Hub
publish: build
@docker tag $(IMAGE) $(USER)/$(IMAGE):tag
@docker push $(USER)/$(IMAGE)
.PHONY: intro clean build run