So this video, we're going to start some Python programs to write some DOS and to get some information
for Stroner going to release Balaklava, this banner will be sent by the server when we connect to the
server.
So I have already run this map, scan on the matter, spreadable to using this version scanning.
And we got the version numbers, which you can see on television.
But this is version of we really want this open version and so on.
So now we are going to write some Python script and we are going to connect the server whenever we can
to the server.
Nazarro sends us the banner.
There is the message of its version that, uh, that is the server, uh, service.
That is the service running on the port.
So first we need to import a module called socket.
So this is a by default module.
And not only to start this hour with using the default by, uh, Python installation.
So we have that this sucker might know this socket is the combination of an IP address and a port.
No, this is how it works on the transporter here.
And then it will use it to establish the communication.
Right.
Communication between the sender and receiver.
So we need to create the socket object first, whether it is IP version for our IP options in the TCP
socket or UDP socket, we are already seen these protocols, the networking fundamentals.
So that socket object is equal to.
I'm defining as this as this close to socket dot and inside the socket marju the socket function to
describe the socket.
So off.
We need to do put parameters that is important for our and six and PXP or Redzepi, so that's a socket,
not if underscore it.
So this is address family Internet and this represents the IP version four.
So if you type on the screen, it will show you is telling me.
I have on the screen at 60 also, which is sort of IP version six since you are going to use our IP
address.
So there is a for us, you can use the safe on the screen and socket.
Not so Sarcone.
So I can you can see here Sargon, which is a streaming packet that is sticky and you can see if I can
describe it, is Raupach and Sakurako, which is you know, we are going to use this on this question.
So I have described describe the socket object and the socket of these properties.
Define it, which is IP version four.
And so now what we're going to do is we are going to connect to this IP address and the number will
say, yes, that there is a correct function.
And what you want to do is to pass the couple of the IP address and the number.
So that is defined by normal open.
Right.
And this IP addresses of 100, 160 zero on not one.
And to put the, uh, quotations on and to do that 168 zero one one zero one and use this comma and
you need to specify the number, since this is our first program, we just, uh, give the phone number
directly in the next program to the port, and then we will just automatically, uh, receive the banner
if the port is open.
So 21 is open and we are going to give the Canadian port.
So now, after this trip, my connection has been established with this server and the service associated
are running on the border, No.
One.
So many stories like FTB servers and the IRS of observers will send the banner Fuster to you and your
character.
So we need to see that message.
To send a message is equal to a solid object pursuit we need to receive from the target of the two Seawolf
number of bytes you want to receive.
So each character represents one by Alphabet represents one, but B represents one.
But so the maximum as it could be two zero four two zero four bytes.
And you need to decode because it will be in Robert's format.
So it will be like B, a current or rasping, etc..
So in order to decode this one, you need to use this that decode.
So our message record and will be supporting this message.
Now all you need to do is you need to print this message.
And I think we can just simply close the connection, which we are open.
So this is a simple banner grammar program.
We are putting the socket module and we are creating the socket using the socket function with the IP
version for another piece of it.
And we are connecting to this IP address and phone number and we are receiving the message from the
server and we are receiving it, uh, close to zero for it and we are decoding it now.
It will be in human history and we are going to print this.
And again, we are closing the connection.
So let me run this group.
And as you can see, it is gurantee that is the TV number and you can see in brackets SFP two point
three point four.
So let's go ahead and you can see this is the same version number we have got from the unmap also.
Now, let's try for point number twenty two.
So as you can see, we got the necessity to open an extra set of tools or training for another one.
Let's try to find 139, maybe we get out, we do not get.
We're not getting from that, so let's try another service that said this on profligately two on one.
So this map will have some script to get this number like Bernard Grabber and some other unique techniques
for these spots.
So this is General, a basic Bernard Weber from the Python code.
You can see the property preserver and the version one point three point one.
So that's all for this video.
I hope you have understood the burning rubber.
This soccer programming is very important and you will need this in the for us also.
So just practicing it is very easy in Python syntax in C, it is very tough even for basic brogrammer.
You need to get a lot of a lot of code.
And in Python it's very easy.
That's why a lot of people use this python.
And in my college there is a C programming networking YRC and it's very, very tough.
So that's why this is very easy, because it does not even contain software.
So that's why I recommend you to practice until you get some clarification.
All the soccer programming.