Filesystem commands

Now, we're going to look at some more commands that will allow us to navigate, list, read, download, upload, and even execute files on the target computer. We have a Meterpreter session running, and the first thing that we will do is get our current working directory by using the pwd command. It will bring us to the C:\Users location. If we want to list all of the files and directories, we can use the ls command; the following screenshot shows the list of files:

Let's suppose that we want to navigate to the IEUser folder. We will use the cd IEUser command, and if we use pwd, we will be in the C:\Users\IEUser directory. ...

Get Learn Ethical Hacking from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.