In dyslexia we learn about conditionals in Zombie's script which is if else statements.
So if you wonder we have to this attack the websites are this are try they access US attacks or just
hunt for the accesses in the browser in the upcoming lecture by the way where it's simply not starting
about the bird directly instead we're just learning some of the basics of a zombie script so that might
be the question.
But if you just see where this learning are making the base in the zombie script so that we'll just
learn about how to make the payload in the upcoming lectures because making the payload would be very
important in order to distract some of the websites which would be highly secure.
So you have to just have some of the basics up a zombie script and it can be also useful in the upcoming
lecture to the script.
The key logger using that is always script.
So we are just making some of the basics are basics foundation in the Derby script so that it would
be easier for us in the latest section in order to this make this simple payload rate Bond's payload.
Using the java script and obviously using the BRB sued in order to crack our hunt for the excesses attack.
So first of all let's see the java script false statement in this lecture.
So first of all what is the conditionals so conditionals ease the way in order to execute the code in
the condition.
Either it is true or false.
So we'll have the conditions some condition that is either true or false and based on that we'll just
execute some part of the code.
So you have something that is if a statement.
If else statement and if else if statement in the JavaScript So let's see how it feels a statement to
work in the javascript.
So first of all you have to just give this idea of all in the lowercase which is the key word.
Simply saying I need the if else condition and just give disparities is in order to this provide the
expression over here so expression can be the logical expression of the mathematical expression over
here.
And after that you'll just give this a block that will notify that you are just executing some of these
statements over here.
So if the expression is true in this case that means the code inside these block will be executed if
it is not the code inside these L's block will be executed.
So let's see the example right away so let me just say something that is simply if twelve is less than
56 six which is obviously true and we're just making use of that Garland which is the python code not
in the javascript so I'll just say console dart log which is basically the print statement in the java
script and I'll just say 56 is bigger which is true obviously.
So just go down and if I just print this then you will see D6 is bigger has been printed over here because
it had set this condition in if this condition is true.
And in that case the code inside this block will be executed.
And of course this statement is true.
If it was false it will not this console anything or be.
So let me see if fifty six is lesser than duel which is obviously false.
If I just hit Inter it is the same undefined.
You do not print anything because we don't have anything for the false part which is basically or else
part.
So let's put that is part of the sales which is the way to describe for the false part and I'll just
second soul mean that is dumb and not the masses.
That is false I'll say false and if I just execute this now then we'll see.
Falls has been printed over here because in this case 2L is not greater than 56.
That means the cord inside this blog want to be executed but the cord inside this ls will be executed
because it is false to only execute the block inside of this Eve will only execute if the condition
inside here would be true.
Which in this case is false.
So this is the execution of cord based on your true or false.
Which is basically your boolean part.
So you could see over here that is we have made a use of this simple chord which is if else in order
to predict where the execution would be.
So you can simply make up the logical way here.
Let me just say if and a which is in this case let me just define a first variable a would be let me
say 20.
Or you can simply get that variable from the user.
But in this case I'll not do that so I'll just say if a which is basically that same variable and this
person design is for the modulo that means it will just give you a reminder.
And if you just get that remainder the reminder it is Amanda.
And if you just get that remainder and if it is zero that means the same console that lock and you should
have guessed that this number is even so it is even so in this case you can simply see is even because
a modular 2 which is basically 20 modular 2 which is giving us the remainder of 0 and 20 obviously.
Even so if we just make use of this cord and let this go right down here and you can simply see that
not taking something like the condition for devils so I'll just put here else and in that as part I'll
just say OK and so that luck.
Which is odd.
So it is not true basically because AI's here are your pet people.
Which is even so if I just screwed another variable that D again they let me say to nine and now again
execute the same core.
Then you will see.
That is or has been printed because now it is 89 and you could simply see that we knew the scenes from
variable over here which was even too hard.
It is dynamically typed so if I just create something like instead of eighty nine you can put here is
false.
So now it has been chains to boolean which was no over here but it has been tends to boolean right here.
So that means that surveys script also known as the dynamic type language's same aides python.
So you can simply see over here.
We made use of a false statement to execute the code based on this condition so you can also make use
of if and else if condition if you have multiple conditions so let me just take a simple example over
here how this if an LC work.
So let me say a var a.
Let me just give this 20 and let me just make a simple condition which is if zip code equal which will
stick if it is equal to let me say then.
And let me just say that if it is the case and as the second sole dot plug in that case I say something
like a is equal to 10 which is simple masses over here.
And if it is not the case which is obviously undefined a William and let me just go down and it is not
the case then we'll just make use of this.
Else if statement so else if his statement is basically taking another variable over here which is the
condition now the stick if it is 15 and in that case I'll just say consoled lug and a is 15 which is
obviously false because a is 20.
So the last would be US analysis possible consoled out lug and a e's not phone.
So obviously a is not found will be printed because a stone d we have the condition which is obviously
false in both of here.
So it is equally contained is also false is equal equal 15 also false that means the else part will
be executed because this both of the condition is false and else part is basically is not found printed
so you can make use of these conditionals in order to execute some part of chord and in order to basic
redirect to your execution to another point and making your gourd flow is smoother with the help of
every statement.
So this will be there for this lecture.
So now we have just made some foundation with the if else's statement in the next lecture will learn
about Lupin and funds and and some of the non primitive data type and we'll just start learning about
the BRB and start attacking the Labor upset so soon the next one.