In Meterpreter, which command dumps a file to standard output (the screen)?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

In Meterpreter, which command dumps a file to standard output (the screen)?

Explanation:
Viewing a file’s contents directly in the Meterpreter session is done by the command that behaves like the Unix cat: it reads the file and writes its contents to standard output, i.e., the screen. That makes it the best fit for dumping a file to the screen because you see exactly what’s inside the file as it would appear in a terminal. The other options serve different purposes: editing opens a file in an editor to modify it, not just display; echo prints text you specify, not an existing file’s contents by default; download copies the file from the target to your local machine, not to the screen.

Viewing a file’s contents directly in the Meterpreter session is done by the command that behaves like the Unix cat: it reads the file and writes its contents to standard output, i.e., the screen. That makes it the best fit for dumping a file to the screen because you see exactly what’s inside the file as it would appear in a terminal.

The other options serve different purposes: editing opens a file in an editor to modify it, not just display; echo prints text you specify, not an existing file’s contents by default; download copies the file from the target to your local machine, not to the screen.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy