We are given a pcap file of modbus. I noticed that the function code of the modbus are ASCII characters. Reading all the function code of the modbus packets gives us the flag.
Original writeup (https://github.com/kiyotaka-akaiwa/ctf-writeups/tree/main/TenableCTF/2022/Strange_Packets).