So we're still inside believe, and in this lecture, we're going to see how we can upload and download
files from the target system.
At the moment, I'll be running some commands and I'm going to look for a file that's interesting for
me.
So with first thing we're going to do is download the file and I'm going to do this.
And you can see that I'm inva the W DVD.
I'm going to do on to see all the files right here.
And we can see that there is a directory called config and the config directories are or if you see
a file called config or directory called config, then chances are it contains important information.
Most of the time it contains information about connecting to the database.
So I'm going to navigate to that directory using the CD command.
And then I'm going to this to see what I have.
And you can see that we have a file called Configured Ink that we know we can try to read this using
the card command and we can try to read it using the functions that come with the Waverly.
But this is not what we're interested in in this lecture.
Let's see how we can download this file so we can read it on our local machine.
Now, remember that you can't actually browse through this file.
So if we go here to the server.
And if we go to a.
Config.
And you see that there is a config file, but if we click it, you'll see that you can't actually read
it because it's written in HP and HP files cannot be right remotely.
So even if you view the source.
You'll see that it's empty, it has no lines whatsoever.
So let's go back and we're going to use the download, so the download is called File Download.
And then I'm going to put my A.H. to see how to use it, because I don't know how to use it, so just
I want you to see the idea of how you use all of these functions.
You put the function name minus to see how to use it.
And you can see that the way to use it is you literally just specify file download.
You can specify the vector.
So this is similar to when we were doing when we were reading the password or executing the Shell S.H.
executing shell commands so you can specify the method of reason of downloading the file because sometimes
maybe the basic download method will not work for you.
So you can just do a minus vector and you specify the vector that you want.
So in this example, I'm just going to use the default one.
I'm not going to specify a vector.
So again, we're going to do file download our path, which is the remote path.
So the file on the server that you want to download, followed by the location that you want to download
it to on your local machine.
So the commands are going to be filed.
Download the remote path is going to be config, the ink that you and I want to store it in my room.
So this is on my actual local machine.
It's going to be stored in route and I'm going to call it config downloaded.
And I'm going to make it a text so he can actually put it if you want, but I'm going to make it a text
in my case.
So the command is very simple.
It's file download followed by the file, the full path or the location where the file is located.
And the file for me is located in the current working directory, and it's called Config Dot Inc.
And I want to download it to my route config.
Downloaded the text, so I'm going to call it config, downloaded the text and if I want it, if this
command didn't work for me, then I can just do either vector by doing minus vector.
And specify the way that I'm going to download it so I could just specify the all the methods that we
have here, so we have a file, we have Elfriede File, Folgate and base64.
So I'm just going to use the file.
And that said, the files should be downloaded.
So let's go to our file manager.
And we're already on the road and you can see that there is a file called CONFECT Downloaded the text,
if we double click it, you'll see the information that was saved in the file.
I remember when we went on the browser, nothing was displayed.
When you go here, you'll see that you can see everything because we actually downloaded the source
code for the file.