Hello everyone, welcome back to another video from section
5 and number scripting engine. Part 3 is
the last video of the second five. And actually we're
having interesting topic called the writing and
SQL script.
So in this video, we are
going to customize our language and descriptor. We
want to work with in any map though.
If you want to be professional to come hacker, you
want to be a professional concern tester, you
might want to have around scraped and stop using other
scripts and other people, or default scripts. So,
when you become a professional, when you have your own stuff,
so we're going to introduce you and tell
you. What is the first
Step beginning, an internal. A big
professional work.
Though, what language are we going to use? The law is
language of the nmap is keeping it dates. All
the NSA is cream that you maybe sign
there and it C or and my prescriptive directory.
The Linux are routed by
Lua programming languages.
So what is law? Exactly. Laura is
a very flexible and supporting Prudential, functional
and object-oriented, programming law is
meant to be portable. So it can easily embed into the other applications
such as tapi. And
Karen is Ali and nearly on all the platforms.
So, including Unix, windows and mobile devices. I'm
winded microprocessors such, as our solo
has been used in many popular applications. So
but let's go.
Our Basics to you.
Make feel free about it. You be comfortable that
I'm trying to find out what is exactly what I don't want to make it
very comfortable for you. Because there's another programming course, we
want to introduce the see how the
functions Works, see how to run a little beats
and easily scraped for
first time at proud of yourself. For sure. So
first we're going to see the functions how it works.
And then we're going to run an example.
And our customized Tools in our callanetics and
then run it on academics there and see how it's working or at. So,
before reverting, I want to introduce documentation
of the NSA. Documentation is
in the nmap website that have everything that you need
to know about NSA. Documents. You
have a good knowledge, and good information about how to
route your Elms. Create, if you want to get a
Helper on it and try to under the convention tags to
be professional.
Right to more complicated.
Tools for yourself. In other words that
I wanted to nice you, this is the rip leads
does common, a language law. You can choose the language from
here and I'm going to run your code online.
We don't need to have it on your web computer,
whatever you can do in your mobile
to. So this is the first code
of our little programming. So
as you can see here, I wrote a really little bit.
Easy current for you. I'm going to explain it.
So what we're doing here, we're doing function and
we providing function as an A and B.
If you look at here in the end of the code, we
ask the user. We do. I own that read to
ensure number as you can see, a print internet
to number. So we first we're going to ask a user to
First enter the first number, that's
called a, as you can see here function
a and then do the B and we again
ask him to enter a second number.
The number B.
and then when we talking about prints or tabi
climb back to the top here so
we can see we call the program to if their number
a was bigger than the number be down later today
or else it wouldn't be
trying to find out, which
A number was bigger than the other. Let's
run the application to stand around
application by the bottom here, run. We are click run
and is gas goes due to number. Since the year.
We asked to print to number and show this entrance
to the user. We're going to number seven and
then ask us the second number when I need your number 9.
As you can see, it's going to response us with a bigger number is 9. Let's
try it again.
Another number 8, pick
a number going to be cute. It's going to
reply. As 228 is bigger than 2 to.
This is the hell functions, or is the easy end in
a sure to understand it better. But a lot language
programming. So, let's go to our account lyrics.
We are in a callanetics and I always that we're going to
do sector user share and map and a scripts to make
sure. We writing our script in the galaxy of your screen and
detail the subject and it's the script.
So, if I have a drink?
We need to know more about the law. So
let's open our test.
Colored it to make sure where we're going to do here. I'm going
to use a nano editor called it,
our script.
Dot NS a--. Alright, here.
We are with our sample code. That is
a customized.
So, let's go with some Basics to,
again, going deeper language.
Coming to begin with a double hyphen or
Double Dash and round end of the line. For example, like
this one dash dash, or double High bar and
hit do in a traditional learning
programming language with Sonja last page. The
last start to work into functions and also the
global variables do not need to be declared. And unlike
some languages. There is no error to our success in the variable. That
is not initialized. So, Insidious value n,
IL or nil will be
Return to the local variable on the other hands are
assigned to using local keywords. So
you saw that they're actually using a loop in
the last with last step. So
we know how to function work here L, but
I'm inserting our purpose. We will comprise a
simple script that determine eyes if you're given port
is open and output. The Riverland message. Let's
begin with the head. For now, we can put
in a short description and leave it. That example here
is
Both described example, that determine a support within or open.
So next we can move on to the rule section.
Let's define a virtual data room, try and whatever. And
they give you the power to on open or 9. We set
a rule for it. An important role and function we
call it has and poured and we said returned report dot
protocol or TCP and Port. Dot estate
is open or not and
end the loop.
Now, we can Define the actual script logic in action section.
Let's have a script display in a message for any
give poor that is open. For example, if it's come
back as a true or open with colored action
to function, has been poured and return, these
properties open and the end.
So let us run our script, we're going to
close every day damage control eggs.
I'm going to use a script.
and map f p 18 to push that we sit in
the
for Target and we want to test it in our script and
using dashes of script our script. So we
in metric node. I will recall it. We don't need to
put it out in a sea at the end of it and our website
of the targets. I'm going to wait for
the result.
Okay, let's try it again.
All right. Here we are.
So, as you can see, this is exactly how we
wrote it to say. This port is open is
for is open to put. Are we looking for?
That's great. Right? Customize your results, as you
may wish. So let's
get back to our PowerPoint. So we write our script
in a calendar, next.
Also, we tested our lab, too.
Let's have a video summary. First. We have
an overview, the Lua, programming language,
and how we can write it. We write our code and
explain it and then we execute it and comment lie.
And next we are going to be ml Pinterest Point integration. It's
going to be first with the of the section 6. Good
luck.