Module: Msf::Payload::Adapter::Fetch::LinuxOptions

Defined in:
lib/msf/core/payload/adapter/fetch/linux_options.rb

Instance Method Summary collapse

Instance Method Details

#initialize(info = {}) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/msf/core/payload/adapter/fetch/linux_options.rb', line 3

def initialize(info = {})
  super(update_info(info,
                    'DefaultOptions' => { 'FETCH_WRITABLE_DIR' => '/tmp' }
        ))
  register_options(
    [
      Msf::OptEnum.new('FETCH_COMMAND', [true, 'Command to fetch payload', 'CURL', %w{ CURL FTP TFTP TNFTP WGET }])
    ]
  )
end