Protocols and Servers
February 29, 2024
Last updated
February 29, 2024
Last updated
Task 1: Introduction
Task 2: Telnet
Task 3: Hypertext Transfer Protocol (HTTP)
First you have to enter the telnet command, so you can connect to the web server.
Then after you are connected to the IP address and its port.
We have to input some commands to retrieve the html page
The finally we will provide some value like host: telnet and hit the Enter/Return key twice. Now we got the html page that we desire
Here's the answer for the question about the flag
Task 4: File Transfer Protocol (FTP)
First we will have to connect to the IP address through File Transfer Protocol and we will provide credentials since it does not accept anonymous login.
user - frank
pass - D2xc9CgD
Additional information about this task!!!!!!!!!!!
We can try to connect using the telnet protocol using this command. But ofcourse, we will input some credentials to the telnet server so that we can logged in as a user.
The first command that we can use is STAT command. We can see some additional information about the system type of the target.
We did try some default command of telnet protocol
PASV - "Passive Mode" This mode is referred to as PASV mode because the server tells the client the port to which it should connect for data transfer.
TYPE A - The command TYPE A
switches the file transfer mode to ASCII.
TYPE I - switches to file transfer mode to binary.
However, we cannot transfer a file using a simple client such as Telnet because FTP creates a separate connection for file transfer.
Task 5: Simple Mail Transfer Protocol (SMTP)
The figure shows the following five steps that an email needs to go through to reach the recipient’s inbox:
A Mail User Agent (MUA), or simply an email client, has an email message to be sent. The MUA connects to a Mail Submission Agent (MSA) to send its message.
The MSA receives the message, checks for any errors before transferring it to the Mail Transfer Agent (MTA) server, commonly hosted on the same server.
The MTA will send the email message to the MTA of the recipient. The MTA can also function as a Mail Submission Agent (MSA).
A typical setup would have the MTA server also functioning as a Mail Delivery Agent (MDA).
The recipient will collect its email from the MDA using their email client.
If the above steps sound confusing, consider the following analogy:
You (MUA) want to send postal mail.
The post office employee (MSA) checks the postal mail for any issues before your local post office (MTA) accepts it.
The local post office checks the mail destination and sends it to the post office (MTA) in the correct country.
The post office (MTA) delivers the mail to the recipient mailbox (MDA).
The recipient (MUA) regularly checks the mailbox for new mail. They notice the new mail, and they take it.
Task 6: Post Office Protocol 3 (POP3)
We have to connect to the default port of Post Office Protocol 3 (POP3) and use the STAT command. But first we have to login for authentication. Use the credentials below for us to get the STAT information.
As we use the LIST command we will able to see the list of new messages on the server and by using the RETR 1 we can read the first message in the list. However, we failed to retrieve the messages because there's none.
Task 7: Internet Message Access Protocol (IMAP)
It is clear that IMAP sends the login credentials in cleartext, as we can see in the command LOGIN frank D2xc9CgD
. Anyone watching the network traffic would be able to know Frank’s username and password.
Task 8: Summary