In this lecture, we will be creating a registration page for victims.
If the given request is passed and it has hostname IP address and operating system version is data,
it will register victim to database.
Let's start calling.
Open up your 8:00 am quoting Ed and create a new file.
I will call it register that BHP.
And open your V-Tech.
We need to check the request method and the parameters to do so, we will create an if statement if
the given request method is passed.
And it has.
Hostname.
IP address
is called Just IP and Operating System Data.
We will be gister victim to database to do so, we need to send an obscure query.
So you need to include Condit people file into or register that file to do so.
Use include function.
And let's create a prepared statements for sending this guy to our database.
I will create a variable for it and I will call it register query and it will be made skirl.
This mailshot variable comes from Condit file.
And we will create a prepared statement by using prepared methods, and Arcuri will be inserted into
victims.
We will be inserting data to hostname IP address and operating system fields, and our values will be
question mark, question mark, question mark.
And we will be replacing those question marks with given parameters.
So let's replace them by using methods.
Data types of the given parameters will be string, so people will be using three as four three parameters
and replace the first parameter with hostname.
And second parameter with IP address.
And the third parameter with operating system and execute the query by using execute function, yep,
we are ready in order to test or God we will be using KOLD application to do so.
Open up your terminal.
And downloaded in order to download and install Karl.
You can use pseudo apte installed co command, I have already downloaded the application, so.
Let's use it here is the example comment for sending a post method HTP request to our website.
We are specifying specifying the data with the Dashty option.
As you can see, here's our data.
And by using that option, we are specifying the request method.
And here is or your.
We have successfully descended upon request to all registered that page, so let's check database and
see if the victim has been registered or not.
As you can see, the victim has been registered because or data or data was hostname is registered,
hostname was registered.
As you can see, it's here and our.
Hyperboles was.
Same with the data, and our operating system was test operating system, and here it is.
So that's it for this structure.
See you in the next one.