90 lines
1.9 KiB
Markdown
90 lines
1.9 KiB
Markdown
Lab 0 Writeup
|
||
=============
|
||
|
||
My name: [Catfood]
|
||
|
||
My SUNet ID: [998244353]
|
||
|
||
I collaborated with: [An orange cat]
|
||
|
||
This lab took me about [2] hours to do. I [did not] attend the lab session.
|
||
|
||
My secret code from section 2.1 was: [294080]
|
||
|
||
- Optional: I had unexpected difficulty with: [describe]
|
||
|
||
- Optional: I think you could make this lab better by: [describe]
|
||
|
||
- Optional: I was surprised by: [describe]
|
||
|
||
- Optional: I'm not sure about: [describe]
|
||
|
||
2.1.2:
|
||
```
|
||
➜ sponge git:(lab0-startercode) ✗ telnet cs144.keithw.org http
|
||
Trying 104.196.238.229...
|
||
Connected to cs144.keithw.org.
|
||
Escape character is '^]'.
|
||
GET /hello HTTP/1.1
|
||
Host: cs144.keithw.org
|
||
Connection: close
|
||
|
||
HTTP/1.1 200 OK
|
||
Date: Tue, 14 Feb 2023 14:17:29 GMT
|
||
Server: Apache
|
||
Last-Modified: Thu, 13 Dec 2018 15:45:29 GMT
|
||
ETag: "e-57ce93446cb64"
|
||
Accept-Ranges: bytes
|
||
Content-Length: 14
|
||
Connection: close
|
||
Content-Type: text/plain
|
||
|
||
Hello, CS144!
|
||
Connection closed by foreign host.
|
||
```
|
||
|
||
2.1.3:
|
||
```
|
||
➜ sponge git:(lab0-startercode) ✗ telnet cs144.keithw.org http
|
||
Trying 104.196.238.229...
|
||
Connected to cs144.keithw.org.
|
||
Escape character is '^]'.
|
||
GET /lab0/998244353 HTTP/1.1
|
||
Host: cs144.keithw.org
|
||
Connection: close
|
||
|
||
HTTP/1.1 200 OK
|
||
Date: Tue, 14 Feb 2023 14:18:54 GMT
|
||
Server: Apache
|
||
X-You-Said-Your-SunetID-Was: 998244353
|
||
X-Your-Code-Is: 294080
|
||
Content-length: 113
|
||
Vary: Accept-Encoding
|
||
Connection: close
|
||
Content-Type: text/plain
|
||
|
||
Hello! You told us that your SUNet ID was "998244353". Please see the HTTP headers (above) for your secret code.
|
||
Connection closed by foreign host.
|
||
```
|
||
|
||
2.2:
|
||
学校的邮件系统比较智障,做不了
|
||
|
||
2.3
|
||
```
|
||
➜ sponge git:(lab0-startercode) ✗ telnet localhost 9090
|
||
Trying 127.0.0.1...
|
||
Connected to localhost.
|
||
Escape character is '^]'.
|
||
fuck
|
||
lalal
|
||
Connection closed by foreign host.
|
||
|
||
➜ sponge git:(lab0-startercode) ✗ netcat -v -l -p 9090
|
||
Listening on 0.0.0.0 9090
|
||
Connection received on localhost 33706
|
||
fuck
|
||
lalal
|
||
```
|
||
|