So, guys, in this video, we're going to write the reversal of code in this python.
So this is similar to this previous video that is Krenzler videos.
And what we have done is we have received the message from the client and then we are pointing out to
the console and then we are just sending another input.
And again, we are receiving so we are doing in this a loop.
So now what we're going to do is we are going to receive the same message.
But the message, we will receive a comment so we can treat it as a normal message and we will execute
that message and we will send that output to the client.
So that is the financial sort of sorry, I just said the.
So it's a Bindiya.
You can deliver these functionalities together.
So we will the brochure in the studio for now see the potential.
So I have already covid discovered the same server in here.
Sorry for the naming convention.
So here's what we're going to do, is we are just receiving this message and if message is not equal
to quit and then we are printing it and taking other input and sending it.
So you need to import all this module.
So this all this module contains a function card system and we will execute we can execute.
The system commands, uh, in the Python script.
So we have received this message right now.
What we want to do is, uh, we can say it is.
So before showing you this is the system, I will show you the theory and what we're going to do is
we are receiving this message and executing that message as command and then putting it into the lock.
So just just a simple text file and we will send open the text for and read the contents and send it
to the screen.
So this oyster's system cannot have a pipes.
So in reality, uh.
Like in Linux, we cannot send it as it normally was already available.
We cannot store it as a variable.
So what we're going to do is we are going to put the, uh, commensal put into this picture and we will
read the contents of the text file and we will send those contents to the client.
So now what we're going to do is first let me say we have got the message right and that's happened.
So this offender will add, uh, append to the command.
So what we're gonna do is we're going to say, uh, greater than that is, uh, all putting into this
log, not the.
So I like to think that, you know, so if I say less comment now, our comment will be less relevant
laughter because we need to appeal to the luck that we need to redirect into relativity.
So I just reiterate this.
If you want to redirect output and error to greater than average one, which we heard on from reenacts
essentialist, we are reiterating the output, the study error in the studio output that is going into
this.
Not while the message is equal to most.
Sorry, I see this as a comment.
C and D equals two message press.
So now whole comment will be like this.
If you send Aldus, it will be a great event.
But remember to put the space at the starting of this happened.
If you and who you are, then it will be who am I?
So this one and it will we need to execute this one or.
Yes, that system of this one system function system ACMD and this line execute this our command, and
it will restore the output and we can simply read those contents and then we can just send it as a normal
with a string if not open off at all.
So this round potentially will be created.
The folder where your Python script is there and I use read only very recently format because we don't
need right access.
Again, just message the to you have not read.
So this input, so we have got the output of this product, and I can say of Duclos.
So each time we are executing the commands, it will be, uh, related to the wrong direction for only
one command reiterated, if you say greater and greater than the output will be suspended.
But we do not need that because we will execute so many comments and the output will be so much more.
So I think this is all the code that is required.
And we send execute the command and we are putting it out there and we will open it in a format and
we read the contents and it will send us content.
OK, the thing now in Oakland, client, the same exact quote of this previous video screen and stuff,
I can see something enter command so that we will have much more idea of what we need to enter.
So now I'm going to run this server.
So let's go to the screen door and open it.
I did so myself.
What is going on?
Let's run this up.
But by then, great.
And it is.
Now, if I said, oh, who am I?
Already said Bill Gates last executed comment saw the 30 year.
So this output is building here, maybe we need to modify some core.
OK, we are going to printing here in order to print this.
So first, let me just execute this.
Uh, DeSaulnier.
Wait for this one, so me run the ground script and I need to send a 30 year low, as you can see,
uh, we have this, uh, that you can see who my.
So we are not getting a studio.
So we need to fix this error.
OK.
So let me Google for a study out there to witness.
All right, this one is a great event to attend to, we are all putting a little bit of error to with
all this going on right now.
So I want to share space to greater than one person one.
So I'll put will go into the next one and also put Urgo exhibit output at the script.
Now, let's go and run this module.
And if they are and we can see here now, you can read the comments, we are might and you can also
give the comments which we which are not supported by those materials.
And we also got the error.
When I was soil output, the username.
So we got the U.S., so this is how you create the potential now we will see that the same process in
the next operating system that's going to discourage.
So we already have the server and that's the first check, whether it's correct or not.
Right in the next.
So getting it right, so let's go ahead and run this script by three four, not the version of that.
You know, let me open a new terminal.
So now we are going to run this ground and I will say, unless and we have got this, unless unless
we initiate, we will get the results also.
It is minus.
So I thought to show you another module that is process, but it's very complicated when passing the
arguments.
So if you pass, unless it is absolutely fine, if you pass, we are absolutely fine.
If you pass and you go in without any arguments, it's a very fine in the slow process.
But the things get complicated when you are passing with arguments, so it takes you to pass the list
and also combined with more than three arguments, did not even work at all.
So it just keeps me up sending the error.
So that's why I choose this voice module.
Voice module is the old one even in Python.
It has the support.
So I don't know whether it's subprocesses in Python to or not, but it's about setting.
So I will write on this voice module only because we can direct the output put into the file and we
will read the content.
So this is very simple and neat Python script to generate the potential.
So I think that surveillance video and we can reverse these inputs and outputs to make this as a reversal.
So in this case, the server is going on a listening and we are connecting to this server and asking
for a command output.
So this is called Binzel because we are connecting to that.
So in the next, we will see how the river connects back to us and we can execute the comments.