File operation commands

We covered some of the file operations in the previous chapters. Let's revise a few of the file operation commands like pwd. Using the pwd command, we can view the present directory as shown in the following screenshot:

Additionally, we can browse the target filesystem using the cd command and create directories with the mkdir command, as shown in the following screenshot:

The Meterpreter shell allows us to upload files to the target system using the upload command. Let's see how it works:

We can edit any file on the ...

Get Mastering Metasploit - Third Edition 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.