Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Linux Read File

Disclosed
N/A
Created
May 30, 2018

Description

Read up to 4096 bytes from the local file system and write it back out to the specified file descriptor

Author

hal

Platform

Linux

Architectures

x86

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use payload/linux/x86/read_file
msf payload(read_file) > show actions
...actions...
msf payload(read_file) > set ACTION < action-name >
msf payload(read_file) > show options
...show and set options...
msf payload(read_file) > run

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.