Module: Msf::Exploit::Remote::Log4Shell

Includes:
JndiInjection
Defined in:
lib/msf/core/exploit/remote/log4_shell.rb

Instance Attribute Summary

Attributes included from Msf::Exploit::Remote::LDAP::Server

#service

Attributes included from SocketServer

#service

Instance Method Summary collapse

Methods included from JndiInjection

#build_ldap_search_response, #build_ldap_search_response_payload, #build_ldap_search_response_payload_inline, #build_ldap_search_response_payload_remote, #initialize, #jndi_string, #on_dispatch_request, #validate_configuration!

Methods included from Msf::Exploit::Remote::LDAP::Server

#initialize, #on_dispatch_request, #on_send_response, #read_ldif, #start_service

Methods included from SocketServer

#_determine_server_comm, #bindhost, #bindport, #cleanup, #cleanup_service, #exploit, #initialize, #on_client_data, #primer, #regenerate_payload, #srvhost, #srvport, #start_service, #via_string

Methods included from JavaDeserialization

gadget_chains, #generate_java_deserialization_for_command, #generate_java_deserialization_for_payload

Methods included from Powershell

#bypass_powershell_protections, #cmd_psh_payload, #compress_script, #decode_script, #decompress_script, #encode_script, #generate_psh_args, #generate_psh_command_line, #initialize, #make_subs, #process_subs, #read_script, #run_hidden_psh

Methods included from Java

#build_jar, #compile, #init_jvm, #initialize, #query_jvm, #save_to_file, #serialized_class_from_jar, #sign_jar

Instance Method Details

#log4j_jndi_string(resource = nil) ⇒ Object



7
8
9
# File 'lib/msf/core/exploit/remote/log4_shell.rb', line 7

def log4j_jndi_string(resource = nil)
  "${jndi:#{jndi_string(resource)}}"
end