π Connect β Message Sending (pwn.college)
Writeup from Intercepting Communication
π Task
From your host at 10.0.0.1, connect to the remote host at 10.0.0.2 on port 31337, and send the message: Hello, World!
Youβre instructed to use netcat (nc). Unlike before, this time you must send a message to receive the flag.
π§ Understanding the Setup
- Youβre communicating with a TCP server that expects input from the client.
- Netcat allows you to send input directly via typing or piping.
- Once the message is sent (by pressing Enter), the server will respond with a flag.
π‘ Netcat will appear to hang after sending; press
Ctrl-Cto quit once the flag is received.
π How We Interact
Steps:
- Use
nc 10.0.0.2 31337to connect. - Type
Hello, World!and press Enter to send. - The server replies with the flag.
- Press
Ctrl-Cto exit the session.
π§ͺ Final Commands
root@ip-10-0-0-1:~# nc 10.0.0.2 31337
Hello, World!
pwn.college{MH6peE0k7_KJk4VdkeopEh9NfZ0.0VNyAjNxwSM0IzMyEzW}
^C
root@ip-10-0-0-1:~#
Output
pwn.college{MH6peE0k7_KJk4VdkeopEh9NfZ0.0VNyAjNxwSM0IzMyEzW}
Flag
pwn.college{MH6peE0k7_KJk4VdkeopEh9NfZ0.0VNyAjNxwSM0IzMyEzW}