1 00:00:00,510 --> 00:00:05,310 In this lecture, we will be creating a registration page for victims. 2 00:00:06,280 --> 00:00:14,470 If the given request is passed and it has hostname IP address and operating system version is data, 3 00:00:15,010 --> 00:00:17,260 it will register victim to database. 4 00:00:18,610 --> 00:00:19,630 Let's start calling. 5 00:00:21,200 --> 00:00:25,370 Open up your 8:00 am quoting Ed and create a new file. 6 00:00:26,840 --> 00:00:30,760 I will call it register that BHP. 7 00:00:32,630 --> 00:00:34,700 And open your V-Tech. 8 00:00:37,800 --> 00:00:46,560 We need to check the request method and the parameters to do so, we will create an if statement if 9 00:00:48,210 --> 00:00:52,650 the given request method is passed. 10 00:00:57,010 --> 00:00:59,890 And it has. 11 00:01:03,990 --> 00:01:04,640 Hostname. 12 00:01:10,560 --> 00:01:11,700 IP address 13 00:01:14,670 --> 00:01:20,430 is called Just IP and Operating System Data. 14 00:01:28,540 --> 00:01:35,280 We will be gister victim to database to do so, we need to send an obscure query. 15 00:01:35,920 --> 00:01:44,130 So you need to include Condit people file into or register that file to do so. 16 00:01:44,170 --> 00:01:46,300 Use include function. 17 00:01:47,800 --> 00:01:53,160 And let's create a prepared statements for sending this guy to our database. 18 00:01:53,830 --> 00:02:03,520 I will create a variable for it and I will call it register query and it will be made skirl. 19 00:02:03,970 --> 00:02:07,240 This mailshot variable comes from Condit file. 20 00:02:10,260 --> 00:02:18,360 And we will create a prepared statement by using prepared methods, and Arcuri will be inserted into 21 00:02:18,690 --> 00:02:19,400 victims. 22 00:02:20,390 --> 00:02:32,030 We will be inserting data to hostname IP address and operating system fields, and our values will be 23 00:02:32,040 --> 00:02:34,230 question mark, question mark, question mark. 24 00:02:35,050 --> 00:02:39,900 And we will be replacing those question marks with given parameters. 25 00:02:42,030 --> 00:02:46,890 So let's replace them by using methods. 26 00:02:50,650 --> 00:02:58,270 Data types of the given parameters will be string, so people will be using three as four three parameters 27 00:02:59,260 --> 00:03:03,280 and replace the first parameter with hostname. 28 00:03:07,750 --> 00:03:10,660 And second parameter with IP address. 29 00:03:16,960 --> 00:03:30,820 And the third parameter with operating system and execute the query by using execute function, yep, 30 00:03:30,850 --> 00:03:38,530 we are ready in order to test or God we will be using KOLD application to do so. 31 00:03:39,010 --> 00:03:40,360 Open up your terminal. 32 00:03:41,790 --> 00:03:46,260 And downloaded in order to download and install Karl. 33 00:03:47,270 --> 00:03:56,210 You can use pseudo apte installed co command, I have already downloaded the application, so. 34 00:03:57,420 --> 00:04:08,970 Let's use it here is the example comment for sending a post method HTP request to our website. 35 00:04:10,380 --> 00:04:14,610 We are specifying specifying the data with the Dashty option. 36 00:04:15,030 --> 00:04:17,100 As you can see, here's our data. 37 00:04:18,180 --> 00:04:24,330 And by using that option, we are specifying the request method. 38 00:04:24,510 --> 00:04:26,360 And here is or your. 39 00:04:28,190 --> 00:04:37,220 We have successfully descended upon request to all registered that page, so let's check database and 40 00:04:37,220 --> 00:04:41,660 see if the victim has been registered or not. 41 00:04:56,000 --> 00:05:05,030 As you can see, the victim has been registered because or data or data was hostname is registered, 42 00:05:05,030 --> 00:05:06,260 hostname was registered. 43 00:05:07,430 --> 00:05:09,860 As you can see, it's here and our. 44 00:05:11,280 --> 00:05:12,600 Hyperboles was. 45 00:05:14,510 --> 00:05:21,890 Same with the data, and our operating system was test operating system, and here it is. 46 00:05:22,490 --> 00:05:25,430 So that's it for this structure. 47 00:05:25,460 --> 00:05:26,480 See you in the next one.