Over the Wire (part 1) [251 Solves]

Description

I'm not sure how secure this protocol is but as long as we update the password, I'm sure everything will be fine ๐Ÿ˜Š

Attachments: otw_pt1.pcapng

Flag

INTIGRITI{1f_0nly_7h3r3_w45_4_53cur3_FTP}

Solution

  1. Open the attached otw_pt1.pcapng file with Wireshark
  2. Click on an arbitrary TCP packet
  3. In above menu, Analyze > Follow > TCP Stream
  4. Increments Stream number
  5. In Stream 8, got pyftpdlib credential
220 pyftpdlib 1.5.9 ready.
USER cat
331 Username ok, send password.
PASS 5up3r_53cur3_p455w0rd_2022
230 Login successful.
  1. In Stream 22, found the directory listing result
-rwxrw-rw-   1 crypto   crypto       7616 Oct 29 12:50 README.md
-rwxrw-rw-   1 crypto   crypto        236 Oct 29 12:49 flag.zip
-rwxrw-rw-   1 crypto   crypto        190 Oct 29 12:50 reminder.txt
  1. In Stream 24, found the starting with PK.. packet.
  2. Select Show data as to Hex Dump and found that this packet signature is 50 4b 03 04. This is zip file 1.
  3. Select Show data as to Raw and click Save as... to save binary file named as flag.zip.
  4. Extract the saved file. Note: the password suffix is 2023, not 2022, as this year is 2023.
$ unzip -P 5up3r_53cur3_p455w0rd_2022 flag.zip
Archive:  flag.zip
   skipping: flag.txt                incorrect password

$ unzip -P 5up3r_53cur3_p455w0rd_2023 flag.zip
Archive:  flag.zip
 extracting: flag.txt

$ cat flag.txt
INTIGRITI{1f_0nly_7h3r3_w45_4_53cur3_FTP}

Footnots