Module: Msf::Payload::Adapter::Fetch::FTP
- Includes:
- Exploit::EXE, Msf::Payload::Adapter, Msf::Payload::Adapter::Fetch, Server::FTP
- Defined in:
- lib/msf/core/payload/adapter/fetch/ftp.rb
Overview
Mixin for fetch payloads that retrieve and execute a stage over FTP.
Constant Summary
Constants included from Msf::Payload::Adapter
Instance Method Summary collapse
Methods included from Msf::Payload::Adapter::Fetch
#_check_tftp_file, #_check_tftp_port, #_determine_server_comm, #_execute_add, #_execute_nix, #_execute_win, #_generate_certutil_command, #_generate_curl_command, #_generate_ftp_command, #_generate_get_command, #_generate_tftp_command, #_generate_tnftp_command, #_generate_wget_command, #_remote_destination, #_remote_destination_nix, #_remote_destination_win, #add_srv_entry, #default_srvuri, #download_uri, #fetch_bindhost, #fetch_bindnetloc, #fetch_bindport, #generate, #generate_fetch_commands, #generate_payload_uuid, #generate_stage, #handle_connection, #linux?, #pipe_srvuri, #srvhost, #srvnetloc, #srvport, #srvuri, #windows?
Methods included from Pipe
#_download_pipe, #_generate_curl_pipe, #_generate_get_pipe, #_generate_wget_pipe, #generate_pipe_command, #pipe_supported_binaries
Methods included from Fileless
#_generate_fileless_bash_search, #_generate_fileless_python, #_generate_fileless_shell, #_generate_first_stage_shellcode, #_generate_jmp_instruction
Methods included from Msf::Payload::Adapter
#compatible?, #merge_info_adapted, #merge_info_arch, #merge_info_platform, #payload_type
Methods included from Exploit::EXE
#exe_init_options, #exe_post_generation, #generate_payload_dccw_gdiplus_dll, #generate_payload_dll, #generate_payload_exe, #generate_payload_exe_service, #generate_payload_msi, #get_custom_exe, #get_eicar_exe
Instance Method Details
#cleanup_handler ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/msf/core/payload/adapter/fetch/ftp.rb', line 12 def cleanup_handler if @fetch_service cleanup_ftp_fetch_service(@fetch_service) @fetch_service = nil end super end |
#initialize(*args) ⇒ Object
8 9 10 |
# File 'lib/msf/core/payload/adapter/fetch/ftp.rb', line 8 def initialize(*args) super end |
#setup_handler ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/msf/core/payload/adapter/fetch/ftp.rb', line 21 def setup_handler unless datastore['FetchHandlerDisable'] @fetch_service = start_ftp_fetch_handler(fetch_bindport, fetch_bindhost) @srv_resources.each do |srv_entry| add_resource(@fetch_service, srv_entry[:uri], srv_entry) end end super end |