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
- Open the attached otw_pt1.pcapng file with Wireshark
- Click on an arbitrary TCP packet
- In above menu, Analyze > Follow > TCP Stream
- Increments Stream number
- 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.
- 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
- In Stream 24, found the starting with
PK..packet. - Select
Show data astoHex Dumpand found that this packet signature is 50 4b 03 04. This is zip file 1. - Select
Show data astoRawand clickSave as...to save binary file named as flag.zip. - Extract the saved file. Note: the password suffix is
2023, not2022, 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
-
List of file signatures - Wikipedia
50 4B 03 04 zip