SEC260 Telnet, NC, CURL and HTTP - eitan-j/tech-journal GitHub Wiki

  • Before I start I make dhclient start automatically for convenience
  • Install telnet and netcat
    • yum install telnet nmap-ncat -y
  • ip addr to find IP
    • I did some parts at different times so the IPs are different

Telnet

  • telnet 192.168.7.168 8008
  • GET / HTTP/1.1
  • Host: 192.168.7.168
  • <ENTER>
  • Note: GET / by itself with no host line also works, only with Telnet, but I'm not sure why

Netcat

  • nc 192.168.7.168 8008 -C
    • -C is needed for CRLF
  • OPTIONS / HTTP/1.1
  • Host: 192.168.7.168
  • <ENTER>

Curl

  • curl 192.168.7.152:8008
⚠️ **GitHub.com Fallback** ⚠️