Task: Receive Challenges

Navigate to labs/lab-10/tasks/receive-challenges and run make to generate the support directory. In this task, we will review all the IPC methods we have explored, including anonymous pipes, named pipes (FIFOs), UNIX sockets, and network sockets. Each challenge involves building a communication channel using the specified IPC method.

  1. Complete the TODOs in support/receive_pipe.c, then compile and run the executable. If the challenge is completed successfully, you should see the message Flag is ....

  2. Complete the TODOs in support/receive_fifo.c, then compile and run the executable. You will need to run the send_fifo executable while your process is running to reveal the flag.

  3. Complete the TODOs in support/receive_unix_socket.c, then compile and run the executable. You will need to run the send_unix_socket executable while your process is running to reveal the flag.

  4. Complete the TODOs in support/receive_net_dgram_socket.c, then compile and run the executable. You will need to run the send_net_dgram_socket executable while your process is running to reveal the flag.