1 00:00:00,810 --> 00:00:07,680 Hello and welcome to a new section in this section we are going to look at in line patching again, 2 00:00:08,700 --> 00:00:15,570 this technique is about how to create your own house without using any external libraries offering. 3 00:00:20,490 --> 00:00:24,120 How does it work in this diagram here on the left? 4 00:00:24,360 --> 00:00:26,880 He's our -- program. 5 00:00:27,400 --> 00:00:29,310 And on the right, he's the target. 6 00:00:30,910 --> 00:00:37,510 So the target in sight there is a function call, regional function, which we are going to hook. 7 00:00:40,170 --> 00:00:45,450 So the first step is we need to somehow attach the hook to the target. 8 00:00:48,110 --> 00:00:53,690 The hukou within safety or region address of this target function. 9 00:00:54,650 --> 00:01:02,030 The reason he does that is because so that he can optionally revert revert the original function back 10 00:01:02,030 --> 00:01:04,130 to its original state if he needs to. 11 00:01:06,390 --> 00:01:10,140 He also suggested price of the original function for the same reason. 12 00:01:11,940 --> 00:01:18,060 And then he will pitch in memory to replace this original function figure address. 13 00:01:18,200 --> 00:01:20,130 Oh, our modified function. 14 00:01:22,000 --> 00:01:29,200 So this is our money, if I can call my function now, then once the target executes and calls this 15 00:01:29,320 --> 00:01:38,080 function, you execute our modified function instead of the original function, and optionally we can 16 00:01:38,530 --> 00:01:47,560 revert the function back by copying back the address of the original function because we have already 17 00:01:47,560 --> 00:01:50,710 safe the address here as well as the instruction, right? 18 00:01:51,790 --> 00:01:56,650 So this is the simple, high level view explanation of how to do in line. 19 00:01:58,930 --> 00:01:59,860 So that's all for. 20 00:02:00,040 --> 00:02:03,150 VIDEO Next VIDEO We'll take a look at the code. 21 00:02:03,730 --> 00:02:04,960 Thank you for watching.