OK.
So in this letter we are going to build a wiretap program which will execute commands on this VCR which
is our victim.
And then it will send the results to other means that we already defined.
So let's first create a struct which should contain to fuse.
I'm going to use the same naming conventions which is.
Come on store.
And then there will be two fields command output
which would be a five string and come on.
Which would be of type String.
So now you have Overstock complete so it's output not hold.
Okay.
The next thing would be to get user input before creating and getting the set input receiving input
from that.
God we trust you to do that.
Different to far from input output.
You.
You did this will receive data from the collection and then we're going to create a command loop similar
to what we did in our hacker.
And then we will move forward.
This
so now we have an infinite loop at the next step.
We want to do is we need to take all user input so that is input encodes to see dark the string and
then that dynamic to write and it don't do any of this or get takedowns and errors.
So if there is an ad that is not in front of me you can simply print out the edit and then putting it
there again.
And if there is no Adam we check for users come on here.
So physically remove the backslash character from using a string.
So it would be more user input and that.
And then this is going to be called user input
Okay let's move here.
So first we going to give the user input command is stop or not.
If it is it good.
It goes to stop
then Route 7 simply said that the world looked towards
if it's not then we're going to end condition.
Okay.
So in this condition we need to do some certain things.
Firstly since we need to execute this user input already command on our P.C. what we need to do is we
need to define certain variables.
So we will define do radio buttons Radio 1 output
and it would be a five point start buffer.
Similarly the weekly video and standard.
And it would also be affected by start buffer.
So we have created to the events one will contain input and that will contain the header and they are
both of their days Beaufort so whatever the error is the standard buffer.
So in the buffer if we can get the inputs using this we can access them using these arguments.
Okay.
So firstly let's print out the command for that understanding so we can say that you use that command
is to make use input.
Okay.
So now we have printed out the using but the next step is to execute this user input command on the
system.
So in windows we can do it in a different area and Linux.
We have to do it in a different way.
Let's start with the key so we can use the exact dot com on function to run this Come on other Windows
and Linux so you can simply write for example and let us.
And this will work properly but in windows this does not work properly.
So we have to define logic for port.
So let's say we first check each operating system was it.
So and this can be done by using gun time dark G or as.
So this is done through it.
If its Windows operating system into a vehicle on the windows and if it's some lending service and then
exist of it it really badly needs.
We are going to write the program on any for Windows and Linux.
So we defined object for of us just these two.
So we can say that if it's a Windows command.
Q Yeah.
And if it's Unix then we can see that execute.
Yeah.
Okay.
So the next thing we need to do is you need to use the execute package so you can see a lot of mind
and then we need to define certain things for Windows.
So the first thing we need to define is need to set out a set type of shell of application we want to
use.
So in windows we will find other commands in Polish.
So we will write polish and EMC.
Okay.
So the next better only is bags.
Let's see.
So this would set the starting drive for example this drive to use and then we need to write the user
input a user on.