1 00:00:01,320 --> 00:00:03,390 Client server architecture. 2 00:00:04,360 --> 00:00:11,860 Now, besides the many features that they have, the computers on a network, let's say Internet or 3 00:00:11,860 --> 00:00:16,270 Internet, can accomplish two basic actions. 4 00:00:16,450 --> 00:00:16,900 OK. 5 00:00:18,080 --> 00:00:21,140 Requesting and responding. 6 00:00:22,130 --> 00:00:26,420 So these two actions can define the role of a single computer on the network. 7 00:00:27,310 --> 00:00:35,290 The computers, which request their named clients, the ones which respond, are named servers, so 8 00:00:35,290 --> 00:00:39,220 typically computers on a network can have both roles as well. 9 00:00:40,450 --> 00:00:45,430 So basically a Web application works on a client server architecture. 10 00:00:46,270 --> 00:00:50,470 OK, so now first let's grapple with how the architecture works. 11 00:00:51,430 --> 00:00:59,200 The client requests some resources on the server to use and the server produces an appropriate output 12 00:00:59,830 --> 00:01:01,600 to respond to this request. 13 00:01:02,700 --> 00:01:05,760 The basic communication between the client, the server works like that. 14 00:01:06,790 --> 00:01:13,300 Now, today with HTP two, there are some changes in this type of communication. 15 00:01:14,190 --> 00:01:17,070 But again, this isn't necessarily the topic of this course. 16 00:01:17,580 --> 00:01:23,940 So anyway, now let's have a look at how clients and servers are shaped in a basic network. 17 00:01:26,370 --> 00:01:30,600 So a client is a computer that makes requests to a server, right? 18 00:01:31,230 --> 00:01:36,360 In fact, we don't necessarily have to limit a client to a computer only. 19 00:01:37,190 --> 00:01:42,620 Because clients can come up in different shapes and sizes such as your smartphone, laptop, PC and 20 00:01:42,620 --> 00:01:43,070 so on. 21 00:01:44,030 --> 00:01:51,350 Now, also, a piece of software on your computer can be a client, which is requesting yeah, so generally 22 00:01:51,350 --> 00:01:58,400 in a penetration test, the client will mean your Web browser and Web browsers are the first point to 23 00:01:58,400 --> 00:02:00,050 reach a Web application. 24 00:02:00,930 --> 00:02:04,890 And we're going to dig a little deeper into Web browsers and some of the coming sections. 25 00:02:06,070 --> 00:02:13,000 Now, on the other hand, a server is a computer that responds to the request of the client, so servers 26 00:02:13,450 --> 00:02:16,030 likewise come up in many shapes and sizes. 27 00:02:17,450 --> 00:02:23,270 A server is both a piece of hardware, the computer itself, as well as a piece of software. 28 00:02:24,380 --> 00:02:30,260 So that means that there are several different types of servers do what and how they serve, some of 29 00:02:30,260 --> 00:02:33,430 them are Web servers, some of them are database servers. 30 00:02:33,440 --> 00:02:35,600 There's file servers and mail service. 31 00:02:36,740 --> 00:02:43,310 Now, in the real world, a server has a faster CPU, higher capacity of RAM and storage and so on, 32 00:02:44,300 --> 00:02:49,070 many more features than you know, it makes that more resilient than a client. 33 00:02:50,130 --> 00:02:53,100 Although a simple computer can also be a server. 34 00:02:55,220 --> 00:03:01,520 Now, the client server relationship begins when you request a Web page through your favorite Web browser. 35 00:03:02,680 --> 00:03:07,840 So at this point, your computer or your Web browser is a client and the computer is sending you the 36 00:03:07,840 --> 00:03:09,310 response is the server. 37 00:03:10,560 --> 00:03:16,290 So when you type NBA dotcom into the address bar and hit enter, the communication between the browser 38 00:03:16,410 --> 00:03:18,180 and the NBA server will start. 39 00:03:19,900 --> 00:03:22,810 Now, from this pain below, you can observe the requests. 40 00:03:25,820 --> 00:03:31,610 And to be able to display the page properly, the browser requests many resources from the server, 41 00:03:32,270 --> 00:03:35,870 such as the email documents, stylesheet scripts and many more. 42 00:03:37,150 --> 00:03:41,350 You can also display details about the request and responses from this pain. 43 00:03:42,590 --> 00:03:46,310 But again, this is a topic for another video, or you can just look around. 44 00:03:48,030 --> 00:03:54,420 So now let's open another layer so that we can understand the basics of Web applications.