There's more...

Once we are in a Meterpreter session, you can simply take some screenshots using the screenshot command:

meterpreter > screenshotScreenshot saved to: /root/jUEOMRHk.jpeg

To display the captured screenshot, you can use the eog command in a new Terminal window:

root@kali:~# eog jUEOMRHk.jpeg

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