Skip to content

Commit 9f1c07f

Browse files
committed
Implements mqtt #5 and coap #17
1 parent d2119b1 commit 9f1c07f

23 files changed

Lines changed: 1558 additions & 38 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cyber
1+
name: release
22

33
on:
44
push:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ docker-build-doc:
1313
riotpot-doc: docker-build-doc
1414
docker run -p 6060:6060 -it $(APPNAME)/v1
1515
riotpot-up:
16-
docker-compose -f ${DEPLOY}docker-compose.yml up -d --build
16+
docker-compose -p riotpot -f ${DEPLOY}docker-compose.yml up -d --build
1717
riotpot-down:
18-
docker-compose -f ${DEPLOY}docker-compose.yml down -v
18+
docker-compose -p riotpot -f ${DEPLOY}docker-compose.yml down -v
1919
riotpot-all:
2020
riotpot-doc
2121
riotpot-up

build/docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ COPY . .
2222

2323
# Run the command from the Makefile to build all the plugins
2424
# and build the project
25+
# -- Comment this line when on development if you know you have a ready to go version built --
26+
# Disclaimer: if you comment this line, be 100% sure that the binary can be run on linux
2527
RUN make riotpot-builder
2628

2729
# Run RIoTPot

build/docker/Dockerfile.attacker

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM kalilinux/kali-bleeding-edge
2+
3+
RUN apt-get update && \
4+
apt-get install -y \
5+
python3 pip ssh telnet
6+
7+
RUN pip install paho-mqtt
8+
9+
CMD ["bash"]

configs/samples/configuration.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ riotpot:
2323
# `start` contains a list of services desired to be run
2424
# on-start. For all the services, set `autod` to `true`.
2525
start:
26-
- sshd
26+
- mqttd
2727

2828
# Contains a list of available services in the application.
2929
# This gives the user the ability to navigate or load
@@ -36,6 +36,7 @@ riotpot:
3636
- echod
3737
- sshd
3838
- telnetd
39+
- mqttd
3940

4041
# The `databases` object contains a number of object defined database
4142
# connection information. As the name indicates, `default` will be the default

deployments/docker-compose.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ services:
3838
- 22:22
3939
- 23:23
4040
- 8080:8080
41+
- 1883:1883
4142
env_file:
4243
- ../build/env/.env
4344
networks:
@@ -57,10 +58,14 @@ services:
5758
networks:
5859
honeypot:
5960

60-
ubuntu:
61-
image: ubuntu:rolling
61+
attacker:
62+
build:
63+
context: ..
64+
dockerfile: ./build/docker/Dockerfile.attacker
6265
stdin_open: true # docker -i
6366
tty: true # docker -t
67+
volumes:
68+
- ../test/pkg/services/mqtt:/riotpot/
6469
networks:
6570
honeypot:
6671

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ go 1.16
44

55
require (
66
github.com/buger/goterm v1.0.0
7+
github.com/google/uuid v1.2.0
78
github.com/jackc/pgx/v4 v4.11.0 // indirect
9+
github.com/plgd-dev/go-coap/v2 v2.4.0
810
github.com/stretchr/testify v1.7.0 // indirect
911
github.com/traetox/pty v0.0.0-20141209045113-df6c8cd2e0e6
1012
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2

go.sum

Lines changed: 87 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)