Skip to content

Commit

Permalink
regarding the ftp protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
jidongbsu committed Oct 29, 2024
1 parent b100604 commit 6cd5783
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion labs/tls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Only one VM is sufficient.

### Steps

1. use wireshark to open the capture file forensics.pcapng. From the capture, we can see there is FTP traffic between Bob's machine 10.142.0.3 and a remote server 104.155.183.43. Locate the first FTP packet, and then right click -> follow -> TCP stream, this shows Bob transferred a file called key.zip. (in FTP, retr command means retrieve a file.)
1. use wireshark to open the capture file forensics.pcapng. From the capture, we can see there is FTP traffic between Bob's machine 10.142.0.3 and a remote server 104.155.183.43. Locate the first FTP packet (which is packet 4), and then right click -> follow -> TCP stream, this shows Bob transferred a file called key.zip. (in FTP, retr command means retrieve a file.)

![alt text](lab-tls-ftp.png "Lab tls ftp")

Expand Down Expand Up @@ -72,6 +72,8 @@ Protocol: ftp<br/>
Key File: server_key.pem (you need to either browse or manually type the full path of this key file.)<br/>
Password: (empty)<br/>

**Note**: if wireshark shows an error when you type ftp as the protocol, you can just leave the protocol field empty; this occurs on some VMs.

4.4. close wireshark and open wireshark again, and then also open the capture file in wireshark.

5. now we can examine the TLS packets. Each "Client Hello" represents one TLS conversation. Locate one tls packet, and use "right click->follow->tls stream", we can see the 1st conversation downloads the file index.html - and this html file contains nothing but a jpg file called flag.jpg; and the 2nd conversation downloads the file flag.jpg. So this flag.jpg file could be something we are interested in. Therefore we locate the first packet of the 2nd TLS conversation, and that is packet 85, which is the 2nd "Client Hello" in this capture. Then do the following:
Expand Down

0 comments on commit 6cd5783

Please sign in to comment.