Now our goal is to transfer files or why is this victim machine.
I have chosen that point which is this wallpaper I downloaded from the Internet.
It's called Final Jeopardy but this file is just an example.
This file could be anything was clear whatever you want.
So I'm working with this file.
Keep it as an example.
What I want to do is I want to transfer this file from over the head which is this machine to our victim
which is our Windows machine.
Let's start working with it.
We'll get the first thing we need to do is we need to create a package first and then to print out this
option statement in main menu.
So we know that we have an option that we do well.
The next step is to create a package.
I'm going to create a package in the core that too and I'm going to call it upload file
just upload this form and then I'm going to create another five let's call it the upload as a and then
I'm going to
do a liver function called upload
line to me.
So what this function is going to do is that it's going to transfer a lot of this violence to the commission.
So the first thing it needs is a connection which would be a minute on and then it's going to turn and
edit.
So now you have a dummy functional lower level and then I'm going to the main line and then I'm going
to create a new case let's do this.
So it's called case three and then I'm going to print out a message that we are uploading file to the
victim.
So now I am going to call this function which is upload file to it.
So let's say no to to and then I'm being present connection object going to you back in the.
And then simply I'm going to display that.
So now as you can see we have a spectrum which is being followed in all the examples I have observed
this pattern.
So it's easier to understand how you are working in our program we'll see her develop this.
Let's go to them in to the profile function here.
Our goal is to upload file to the victim machine but the first step is to read the fine this file into
our program.
So the first thing we need to do is we need to write the file name so my name equals two.
And it would be called filing or JPEG.
Okay.
Once we have that I need to develop a pull them visual check I need to develop a function which will
check if the file exists or not.
So let's create a function.
I'm going to call it check this dance and then it's going to take a fine name and then it's going to
return.
It would be a string and then it is going to return a bool which would indicate if the file exists or
not.