https://www.youtube.com/watch?v=hfUtHodJdWs
cat /etc/services
sudo
)nc
allows you to setup tcp and udp connections and servers1# sudo apt install netcat
2nc -l 5000 # listen on port 5000
3nc -lp 5000 # listen on port 5000
from another session, you can now send messages to port 5000
1nc localhost 5000
You can now type messages in each session and see them from the other session
HTTP requests begin with a VERB. Some things each VERB is used for:
There are more (DELETE, OPTIONS etc.)
Headers have a key followed by a colon :
followed by a value. (Like JS objects, minus the comma at the end)
key: value
1$ nc google.com 80
2GET / HTTP/1.0
3Host: google.com
Make sure to hit return
twice after Host: google.com
.
You’ll get an http response back (header and HTML payload)