1. Home
  2. Explore
  3. Computer Science
  4. FTP Port and Wireshark Filtering

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

FTP Port and Wireshark Filtering

  • 34Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Core Protocols

What port number does FTP use for control connections?

34 questions

  1. 1

    What port number does FTP use for control connections?

    Model answer

    FTP uses port 21 for control connections.

    Explanation

    The content specifies that FTP traditionally uses port 21 for control (login and initial connection) and a different port (often 20) for data transfer.

  2. 2

    Why is FTP considered insecure?

    Model answer

    FTP transmits data in clear text, making it readable on the wire.

    Explanation

    The content shows that FTP traffic, including user login and password, can be viewed in clear text in Wireshark, which is why it is insecure.

  3. 3

    What port does SSH use?

    Model answer

    SSH uses port 22.

    Explanation

    The content explicitly states that SSH uses port 22 and that it is encrypted.

  4. 4

    Why is SSH preferred over Telnet?

    Model answer

    SSH is encrypted while Telnet sends data in clear text.

    Explanation

    The content explains that Telnet is clear text and SSH provides encryption, making it more secure for remote access.

  5. 5

    What port does Telnet use?

    Model answer

    Telnet uses port 23.

    Explanation

    The content explicitly states that Telnet uses port 23.

  6. 6

    What security issue does Telnet have?

    Model answer

    Telnet transmits all data, including login credentials, in clear text.

    Explanation

    The content demonstrates that Telnet data can be read in clear text via Wireshark, making it insecure.

  7. 7

    What port does HTTP use?

    Model answer

    HTTP uses port 80.

    Explanation

    The content specifies that HTTP uses port 80 and is clear text.

  8. 8

    What port does HTTPS use?

    Model answer

    HTTPS uses port 443 (TCP or UDP).

    Explanation

    The content states that HTTPS uses TCP 443, and mentions that UDP 443 is used for HTTP/3 (QUIC).

  9. 9

    What is the difference between FTP's control and data ports?

    Model answer

    FTP uses port 21 for control (login/initial connection) and a different port (often 20 or a dynamically assigned port) for data transfer.

    Explanation

    The content explains that historically FTP uses at least two ports: one for control (21) and another for data exchange, which can be port 20 or a different port designated in the control traffic.

  10. 10

    What port does SMTP use?

    Model answer

    SMTP uses port 25.

    Explanation

    The content states that SMTP uses port 25, and that it can be encrypted or unencrypted.

  11. 11

    What ports are used for secure SMTP?

    Model answer

    Secure SMTP can use port 587 or port 25 with TLS.

    Explanation

    The content mentions port 587 for secure SMTP and that TLS can be used over port 25.

  12. 12

    What port does POP3 use for unencrypted communication?

    Model answer

    POP3 uses port 110 unencrypted.

    Explanation

    The content specifies POP3 over port 110 is unencrypted and clear text.

  13. 13

    What is the secure POP3 port?

    Model answer

    The secure POP3 port is 995 (uses TLS).

    Explanation

    The content states that POP3 over port 995 uses TLS and is encrypted.

  14. 14

    What port does IMAP use unencrypted?

    Model answer

    IMAP uses port 143 unencrypted.

    Explanation

    The content mentions that IMAP uses port 143 for unencrypted communication.

  15. 15

    What is the secure IMAP port?

    Model answer

    The secure IMAP port is 993 (uses TLS).

    Explanation

    The content states that IMAP over port 993 uses TLS and is encrypted.

  16. 16

    Which protocol is used for sending emails?

    Model answer

    SMTP is used for sending emails.

    Explanation

    The content explains that you use SMTP to send emails from a client to a server.

  17. 17

    Which protocols are used for retrieving emails?

    Model answer

    POP3 and IMAP are used for retrieving emails.

    Explanation

    The content lists POP3 and IMAP as the retrieving protocols, as opposed to SMTP for sending.

  18. 18

    What port does DNS use and which transport protocol does it typically use?

    Model answer

    DNS uses port 53 and typically uses UDP.

    Explanation

    The content shows that DNS usually runs over UDP, though it can support TCP when needed.

  19. 19

    What are the DHCP server and client ports?

    Model answer

    DHCP server uses port 67; DHCP client uses port 68.

    Explanation

    The content explicitly states that the server uses port 67 and the client uses port 68, both over UDP.

  20. 20

    Describe the four packets in a DHCP conversation.

    Model answer

    The four packets are Discover, Offer, Request, and Acknowledge.

    Explanation

    The content outlines the DHCP flow: Discover, Offer, Request, Acknowledge, as seen in Wireshark.

  21. 21

    What port does TFTP use and which transport protocol?

    Model answer

    TFTP uses port 69 and runs over UDP.

    Explanation

    The content states that TFTP uses port 69 and is a UDP-based protocol.

  22. 22

    How does TFTP handle data transfer after the initial request?

    Model answer

    After the initial request on port 69, TFTP uses ephemeral (higher numbered) ports for data transfer.

    Explanation

    The content explains that after the read request on port 69, the data is moved over higher numbered ports between client and server.

  23. 23

    What port does NTP use and which transport protocol?

    Model answer

    NTP uses port 123 over UDP.

    Explanation

    The content specifies that NTP uses UDP port 123 for time synchronization.

  24. 24

    What is the purpose of NTP?

    Model answer

    NTP synchronizes time across devices on a network.

    Explanation

    The content describes NTP as a mechanism for devices to check with an authority to accurately set their time.

  25. 25

    What port does SNMP use and which transport protocol?

    Model answer

    SNMP uses port 161 over UDP.

    Explanation

    The content states that SNMP uses UDP port 161.

  26. 26

    What is SNMP used for?

    Model answer

    SNMP is used for network management and monitoring, allowing queries of management information from network devices.

    Explanation

    The content explains that SNMP allows simple management information to be obtained from network infrastructure, like querying errors on a switch port.

  27. 27

    What port does LDAP use?

    Model answer

    LDAP uses port 389 (TCP).

    Explanation

    The content explicitly states that LDAP uses port 389 and is TCP-based.

  28. 28

    What is LDAP used for?

    Model answer

    LDAP is used for authentication and directory services.

    Explanation

    The content mentions that LDAP provides authentication and directory services, allowing access to information in a vendor-neutral way.

  29. 29

    What port does SMB use?

    Model answer

    SMB uses port 445 (TCP).

    Explanation

    The content specifies that SMB uses port 445 for file sharing.

  30. 30

    What is SMB used for?

    Model answer

    SMB is used for file sharing, especially in Windows environments.

    Explanation

    The content explains that SMB (Server Message Block) is used to move files, such as connecting to shared drives and uploading/downloading files.

  31. 31

    Why might you filter by port number instead of protocol name in Wireshark?

    Model answer

    Filtering by port number shows all TCP packets including handshakes and overhead, while filtering by protocol name shows only packets with actual protocol payload.

    Explanation

    The content illustrates that filtering by 'ftp' shows 33 packets (only FTP data), while filtering by 'tcp.port==21' shows 101 packets including SYN, ACK, etc., giving a fuller picture.

  32. 32

    What is the advantage of using 'time of day' display format in Wireshark?

    Model answer

    It simplifies analysis when merging multiple pcap files from different time periods.

    Explanation

    The content recommends using 'time of day' instead of relative time because the trace file was created by merging pcaps from different times, avoiding confusion.

  33. 33

    How can you view the clear text payload of a Telnet or HTTP session in Wireshark?

    Model answer

    Right-click on a packet and choose Follow TCP Stream.

    Explanation

    The content demonstrates using 'Follow TCP Stream' for Telnet and HTTP to see the assembled payload in ASCII, revealing clear text data.

  34. 34

    What does the 'Conversation Filter' option in Wireshark do?

    Model answer

    It filters the display to show only packets belonging to that specific TCP conversation.

    Explanation

    The content uses 'Conversation Filter TCP' to isolate a single conversation, such as for SMTP over TLS, to see only related packets.

1 of 34
Question 1 of 34

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent