Lab 12.2b: Telnet and HTTP Class Activity - Hsanokklis/2023-2024-Tech-journal GitHub Wiki

Objective: Understand the Request/Response syntax if the HTTP protocol by using the command line to create a direct connection to a HTTP Server and type HTTP Requests.

Goal: From the command line, use telnet to connect to a web server and retrieve a web page. To do this, you will have to manually type the HTTP Message Request Start Line.

Hints

  • You will need to telnet to the server AND specify the port number

  • You will need to do the following QUICKLY to avoid a timeout

  • "Send" (i.e. type into telnet) GET / HTTP/1.1

  • "Send" (i.e. type into telnet) HOST: HOSTNAME

  • since we do not have a DNS entry for the web server, use the ipv4 address for HOSTNAME

  • Google "Use Telnet to Test HTTP" in HTTP 1.1

  • Remember, HTTP uses port 80 and not the default telnet port of TCP/23 so need to specify port in you telnet command

  • Can also review the capture files from previous labs to see the Start Line syntax

  • Don't forget - the Host header is required in HTTP/1.1

  • Hint enter twice for a blank line/ending CRLF

Challenge: Retrieve the web page from http://192.168.4.243/index.htmlLinks to an external site. using telnet from the terminal on your Kali system

image