Reading from a channel

Meterpreter interacts with the target through numerous channels. Carrying out post-exploitation, we may be required to list and read from a particular channel. We can do this by issuing the channel command as follows:

In the preceding screenshot, we listed all the available channels by issuing the channel -l command. We can read a channel by issuing channel -r [channel-id]. The channel subsystem allows for reading, listing, and writing through all the logical channels that exist as communication sub-channels through the Meterpreter shell.

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.