This commit is contained in:
Thomas Kruse
2026-02-03 22:29:46 +01:00
commit 8fdf5827e4
156 changed files with 23069 additions and 0 deletions

20
03-security/lab05/lab.txt Normal file
View File

@ -0,0 +1,20 @@
= Username/Password Credentials
Verwenden Sie `mosquitto_sub` mit dem Host `test.mosquitto.org` und MQTT 5, Port `1884`,
Usernamen "ro" und Passwort "readonly".
$ docker run --rm -it --init --net host eclipse-mosquitto \
mosquitto_sub --host test.mosquitto.org --port 1884 -V 5 --topic "demotopic" \
--username ro -P readonly --debug
Testen Sie, was bei einem anderen Passwort passiert.
$ docker run --rm -it --init --net host eclipse-mosquitto \
mosquitto_sub --host test.mosquitto.org --port 1884 -V 5 --topic "demotopic" \
--username ro -P wrong --debug
Analysiern Sie die Netzwerkpakete, finden Sie Usernamen und Passwort?
$ sudo tshark -s 1500 -i any -n -x -O mqtt port 1884