Meterpreter filesystem commands

In this recipe, we will move ahead with filesystem commands. These commands can be helpful in exploring the target system to perform various tasks such as searching for files, downloading files, and changing directory. You will notice how easy it is to control the target machine using meterpreter. So let us start working with some of the useful filesystem commands.

How to do it...

We will start with the simple pwd command which lists our present working directory on the target machine. Similarly, we can use the cd command to change our working directory to our preferred location:

meterpreter > pwd
C:\Users\DARKLORD\Desktop

meterpreter > cd c:\

meterpreter > pwd
c:\

As you can see, we first listed our working directory ...

Get Metasploit Penetration Testing Cookbook 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.