1 00:00:00,570 --> 00:00:07,790 Welcome to our second coding project, as we already know, we're going to create a working back door 2 00:00:07,830 --> 00:00:12,040 and as the previous project was in Python, this one will be as well. 3 00:00:12,690 --> 00:00:18,570 However, if we think about it a little bit, you might realize that in order for our project to work 4 00:00:18,750 --> 00:00:24,540 and in order for us to successfully communicate with the target machine using our back door, we must 5 00:00:24,540 --> 00:00:30,030 create two programs are a server and a payload. 6 00:00:30,690 --> 00:00:36,560 One will be running on our Linux machine and the other one will run on our target machine. 7 00:00:37,410 --> 00:00:42,900 What will happen is they will communicate between one another and from the server. 8 00:00:43,080 --> 00:00:46,830 We will be sending our instructions that we want our target to execute. 9 00:00:47,460 --> 00:00:50,240 Then the payload will send us back an output. 10 00:00:50,640 --> 00:00:53,520 So it would pretty much look something like this. 11 00:00:54,870 --> 00:01:01,050 Linux machine is running this server program and the target is running the payload or our back door. 12 00:01:01,770 --> 00:01:07,380 Once we get to creating these, you will notice that the code of these two programs will be rather similar 13 00:01:07,800 --> 00:01:09,290 due to them working together. 14 00:01:09,990 --> 00:01:16,560 We will be sending commands from our Linux machine, for example, if we wanted to check out all the 15 00:01:16,560 --> 00:01:22,740 files in the current working directory on the target machine, we know that the command for this is 16 00:01:22,740 --> 00:01:25,710 there on Windows and also on Linux. 17 00:01:26,580 --> 00:01:33,390 Once we send that from our server, we would want our target to send us back the response, which will 18 00:01:33,390 --> 00:01:39,150 contain an output of all the files and folders inside of that specific directory. 19 00:01:39,810 --> 00:01:43,050 Now, that is just an example of one command. 20 00:01:43,440 --> 00:01:48,990 We, of course, want to be able to execute all the commands that we can run inside the regular terminal 21 00:01:49,020 --> 00:01:52,860 or command prompt, and we will see exactly how to do that. 22 00:01:53,520 --> 00:01:59,250 To code this, we will need knowledge of reverse Chelse, which we already have. 23 00:01:59,250 --> 00:02:01,070 Since we covered the exploitation section. 24 00:02:01,470 --> 00:02:03,510 We know exactly how to reverse its work. 25 00:02:03,750 --> 00:02:09,030 And another thing that we must be familiar with our ports and IP addresses. 26 00:02:09,210 --> 00:02:13,080 And this is also something that we know this will not present a problem. 27 00:02:14,180 --> 00:02:20,240 We need to be familiar with python sockets, and this is something we briefly touched in our first coding 28 00:02:20,240 --> 00:02:20,810 project. 29 00:02:20,840 --> 00:02:25,430 However, I will do my best to explain it once again in the code that we are going to use. 30 00:02:26,030 --> 00:02:33,510 And last at the end, we will need to compile the Python code to Dot Yuxi for our Windows target. 31 00:02:34,280 --> 00:02:39,320 This is something you should not worry about, since I would demonstrate how to do this after we code 32 00:02:39,320 --> 00:02:40,010 our programs. 33 00:02:40,400 --> 00:02:47,360 So now that we know what we are doing, without further ado, let's get straight into the coding lessons.