From the course: Ethical Hacking: Session Hijacking

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understanding WebSockets

Understanding WebSockets - Linux Tutorial

From the course: Ethical Hacking: Session Hijacking

Start my 1-month free trial

Understanding WebSockets

- [Voiceover] With the release of HTML5, more sophisticated state management capabilities are available to the web developer. WebSockets provide the ability to set up a full duplex communications channel between the client and the server, this requires a handshake over HTTP or HTTPS to upgrade the protocol to WS or WSS and a WebSocket server to manage the protocol. Firstly the client initiates a connection by sending an HTTP WebSocket handshake request, then the server responds with a status code of 101 switching protocols, in then switches to WebSockets and both the web browser and the web server communicate using the WebScocket API, according to RFC 6455, the WebSocket protocol. Websocketd is an easy to use WebSocket server, written by Joe Walnes, which we can load into our Ubuntu system, we can get the zip file of this server from his GitHub page, unpack it, and it'll be ready for use. Okay, we've downloaded the file, so now let's unzip it. Let's take a look at what we've got…

Contents