1
00:00:00,480 --> 00:00:06,120
All right, so we have learned a lot of detail about the network interception from our last section

2
00:00:06,120 --> 00:00:10,130
through this section, and we know how we can intercept the networks and stuff.

3
00:00:10,140 --> 00:00:15,290
I mean, we can do even a lot more things in this network interception beyond what we can see here.

4
00:00:15,390 --> 00:00:21,180
And once again, as I told you, our imagination is only the limit of extending this particular network

5
00:00:21,180 --> 00:00:21,720
interception.

6
00:00:21,720 --> 00:00:25,480
We can do almost anything with this network interception much easily.

7
00:00:25,530 --> 00:00:28,330
This is one of the feature which is completely missing from selenium.

8
00:00:28,500 --> 00:00:33,390
I mean, certainly AMPHORA does have the network interception capability like CDPR sessions, but that

9
00:00:33,390 --> 00:00:34,580
is very, very tough to do.

10
00:00:34,590 --> 00:00:41,160
I mean, the code that you write is very, very, super hard coded and you cannot really write a code

11
00:00:41,160 --> 00:00:44,260
which is pretty nice and better than this kind of code.

12
00:00:44,520 --> 00:00:51,810
So I definitely am sure that this network interception with playwrite is one of the greatest advantage

13
00:00:51,810 --> 00:00:53,940
of making this tool much, much better.

14
00:00:54,420 --> 00:00:59,070
Well, as I said, we are going to talk today in this lecture about the cookies.

15
00:00:59,250 --> 00:01:06,210
I mean, the cookies is the most common thing that we know about any cell site that actually has cookies

16
00:01:06,210 --> 00:01:08,400
and how we can actually work with cookies and stuff.

17
00:01:08,610 --> 00:01:13,470
Cookies is one of the most old technique of storing your information stuff.

18
00:01:13,470 --> 00:01:18,000
Ammonite right now at many sites are not even storing a lot of data on the cookies.

19
00:01:18,210 --> 00:01:23,910
They are using different way of working with like Web workers and different way of caches.

20
00:01:23,910 --> 00:01:27,360
I mean, cookies is not a way to store sensitive information.

21
00:01:27,360 --> 00:01:33,090
So nowadays but there are some cases where you still need to go with cookies in some legacy websites

22
00:01:33,090 --> 00:01:35,070
and some sites still lives cookie heavily.

23
00:01:35,400 --> 00:01:42,900
So if you go to a website, let's take our exit automations year app Dorsami dot com website.

24
00:01:43,200 --> 00:01:53,730
And if you just inspect the site over here and if I just go to the application and if you can see here,

25
00:01:53,730 --> 00:02:00,390
there is a cookie of its peanut S.A.T. that is a request verification, Nidhi, which is something dynamic,

26
00:02:00,390 --> 00:02:02,070
which is lot on the fly.

27
00:02:02,430 --> 00:02:08,250
And there's a request verification token, which is a dynamic token just to see if this request is generated

28
00:02:08,250 --> 00:02:11,400
by a specific browser, specific time, something like that.

29
00:02:12,630 --> 00:02:15,270
This is how I wrote this particular app a long time before.

30
00:02:15,570 --> 00:02:21,390
Once a login that is going to be an application cookie, which is going to ensure that this particular

31
00:02:21,390 --> 00:02:25,440
cookie is being set by this particular application, by this particular user and stuff.

32
00:02:25,450 --> 00:02:27,090
So this is what is this particular cookie?

33
00:02:27,540 --> 00:02:32,220
I mean, if you try to decrypt this cookie, you will see some user information and things of that nature.

34
00:02:32,730 --> 00:02:37,080
And the same origin policy is also, as I said, over here with LAX.

35
00:02:37,410 --> 00:02:37,800
Yep.

36
00:02:37,950 --> 00:02:46,890
And now I need to somehow set a cookie on this particular website and I need to see how I can log in

37
00:02:46,890 --> 00:02:52,950
to this application without actually logging in, just using the cookies, how I can be able to log

38
00:02:52,950 --> 00:02:57,810
within the site and access the employee details and things of that nature.

39
00:02:58,050 --> 00:03:04,200
So you know that if this particular website, if I don't log in, you don't see the create new button,

40
00:03:04,200 --> 00:03:06,330
you can't even click to create your buttons and stuff.

41
00:03:06,660 --> 00:03:11,160
But you can still go to the create new, uh, like that create.

42
00:03:11,400 --> 00:03:15,710
You can go here, but you can't really create it unless until you log in.

43
00:03:16,020 --> 00:03:17,790
So that is super important things.

44
00:03:17,790 --> 00:03:20,240
I mean, you need to have these cookies at least been set.

45
00:03:20,790 --> 00:03:26,100
So in order for that we need to somehow obtain the cookie and then we need to set the cookie on this

46
00:03:26,100 --> 00:03:27,730
particular site and work with it.

47
00:03:28,320 --> 00:03:33,720
This is what we are going to be doing in this particular lab and we'll see how we can actually achieve

48
00:03:33,720 --> 00:03:34,050
this.

49
00:03:34,300 --> 00:03:36,750
We were talking more about that in our next lecture.

50
00:03:36,930 --> 00:03:41,580
But if you could able to achieve this yourself, just give a shot and see how you can do it.

51
00:03:41,790 --> 00:03:43,500
I mean, it's a very, very straightforward thing.

52
00:03:43,500 --> 00:03:44,390
It's not a big deal.

53
00:03:44,400 --> 00:03:45,330
While back in India.

54
00:03:45,360 --> 00:03:48,410
Well, I was doing it like a long time before using J meters.

55
00:03:48,540 --> 00:03:51,240
I could be able to achieve that in J Meter very, very easily.

56
00:03:51,590 --> 00:03:55,260
I think that is something that you can achieve much easily as well.

57
00:03:55,260 --> 00:03:59,430
Just give a shot if you can't really do it yourself, if you're going to talk about it in your next

58
00:03:59,430 --> 00:03:59,790
lecture.
