255 lines
16 KiB
HTML
255 lines
16 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>
|
|
Module: Msf::Exploit::Remote::Log4Shell
|
|
|
|
— Documentation by YARD 0.9.37
|
|
|
|
</title>
|
|
|
|
<link rel="stylesheet" href="../../../css/style.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="../../../css/common.css" type="text/css" />
|
|
|
|
<script type="text/javascript">
|
|
pathId = "Msf::Exploit::Remote::Log4Shell";
|
|
relpath = '../../../';
|
|
</script>
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<div class="nav_wrap">
|
|
<iframe id="nav" src="../../../class_list.html?1"></iframe>
|
|
<div id="resizer"></div>
|
|
</div>
|
|
|
|
<div id="main" tabindex="-1">
|
|
<div id="header">
|
|
<div id="menu">
|
|
|
|
<a href="../../../_index.html">Index (L)</a> »
|
|
<span class='title'><span class='object_link'><a href="../../../Msf.html" title="Msf (module)">Msf</a></span></span> » <span class='title'><span class='object_link'><a href="../../Exploit.html" title="Msf::Exploit (class)">Exploit</a></span></span> » <span class='title'><span class='object_link'><a href="../Remote.html" title="Msf::Exploit::Remote (class)">Remote</a></span></span>
|
|
»
|
|
<span class="title">Log4Shell</span>
|
|
|
|
</div>
|
|
|
|
<div id="search">
|
|
|
|
<a class="full_list_link" id="class_list_link"
|
|
href="../../../class_list.html">
|
|
|
|
<svg width="24" height="24">
|
|
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
</svg>
|
|
</a>
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div id="content"><h1>Module: Msf::Exploit::Remote::Log4Shell
|
|
|
|
|
|
|
|
</h1>
|
|
<div class="box_info">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Includes:</dt>
|
|
<dd><span class='object_link'><a href="JndiInjection.html" title="Msf::Exploit::Remote::JndiInjection (module)">JndiInjection</a></span></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Defined in:</dt>
|
|
<dd>lib/msf/core/exploit/remote/log4_shell.rb</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Instance Attribute Summary</h2>
|
|
|
|
<h3 class="inherited">Attributes included from <span class='object_link'><a href="LDAP/Server.html" title="Msf::Exploit::Remote::LDAP::Server (module)">Msf::Exploit::Remote::LDAP::Server</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="LDAP/Server.html#service-instance_method" title="Msf::Exploit::Remote::LDAP::Server#service (method)">#service</a></span></p>
|
|
|
|
|
|
|
|
<h3 class="inherited">Attributes included from <span class='object_link'><a href="SocketServer.html" title="Msf::Exploit::Remote::SocketServer (module)">SocketServer</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="SocketServer.html#service-instance_method" title="Msf::Exploit::Remote::SocketServer#service (method)">#service</a></span></p>
|
|
|
|
|
|
|
|
<h2>
|
|
Instance Method Summary
|
|
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
</h2>
|
|
|
|
<ul class="summary">
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#log4j_jndi_string-instance_method" title="#log4j_jndi_string (instance method)">#<strong>log4j_jndi_string</strong>(resource = nil) ⇒ Object </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="JndiInjection.html" title="Msf::Exploit::Remote::JndiInjection (module)">JndiInjection</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="JndiInjection.html#build_ldap_search_response-instance_method" title="Msf::Exploit::Remote::JndiInjection#build_ldap_search_response (method)">#build_ldap_search_response</a></span>, <span class='object_link'><a href="JndiInjection.html#build_ldap_search_response_payload-instance_method" title="Msf::Exploit::Remote::JndiInjection#build_ldap_search_response_payload (method)">#build_ldap_search_response_payload</a></span>, <span class='object_link'><a href="JndiInjection.html#build_ldap_search_response_payload_inline-instance_method" title="Msf::Exploit::Remote::JndiInjection#build_ldap_search_response_payload_inline (method)">#build_ldap_search_response_payload_inline</a></span>, <span class='object_link'><a href="JndiInjection.html#build_ldap_search_response_payload_remote-instance_method" title="Msf::Exploit::Remote::JndiInjection#build_ldap_search_response_payload_remote (method)">#build_ldap_search_response_payload_remote</a></span>, <span class='object_link'><a href="JndiInjection.html#initialize-instance_method" title="Msf::Exploit::Remote::JndiInjection#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="JndiInjection.html#jndi_string-instance_method" title="Msf::Exploit::Remote::JndiInjection#jndi_string (method)">#jndi_string</a></span>, <span class='object_link'><a href="JndiInjection.html#on_dispatch_request-instance_method" title="Msf::Exploit::Remote::JndiInjection#on_dispatch_request (method)">#on_dispatch_request</a></span>, <span class='object_link'><a href="JndiInjection.html#validate_configuration!-instance_method" title="Msf::Exploit::Remote::JndiInjection#validate_configuration! (method)">#validate_configuration!</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="LDAP/Server.html" title="Msf::Exploit::Remote::LDAP::Server (module)">Msf::Exploit::Remote::LDAP::Server</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="LDAP/Server.html#initialize-instance_method" title="Msf::Exploit::Remote::LDAP::Server#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="LDAP/Server.html#on_dispatch_request-instance_method" title="Msf::Exploit::Remote::LDAP::Server#on_dispatch_request (method)">#on_dispatch_request</a></span>, <span class='object_link'><a href="LDAP/Server.html#on_send_response-instance_method" title="Msf::Exploit::Remote::LDAP::Server#on_send_response (method)">#on_send_response</a></span>, <span class='object_link'><a href="LDAP/Server.html#read_ldif-instance_method" title="Msf::Exploit::Remote::LDAP::Server#read_ldif (method)">#read_ldif</a></span>, <span class='object_link'><a href="LDAP/Server.html#start_service-instance_method" title="Msf::Exploit::Remote::LDAP::Server#start_service (method)">#start_service</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="SocketServer.html" title="Msf::Exploit::Remote::SocketServer (module)">SocketServer</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="SocketServer.html#_determine_server_comm-instance_method" title="Msf::Exploit::Remote::SocketServer#_determine_server_comm (method)">#_determine_server_comm</a></span>, <span class='object_link'><a href="SocketServer.html#bindhost-instance_method" title="Msf::Exploit::Remote::SocketServer#bindhost (method)">#bindhost</a></span>, <span class='object_link'><a href="SocketServer.html#bindport-instance_method" title="Msf::Exploit::Remote::SocketServer#bindport (method)">#bindport</a></span>, <span class='object_link'><a href="SocketServer.html#cleanup-instance_method" title="Msf::Exploit::Remote::SocketServer#cleanup (method)">#cleanup</a></span>, <span class='object_link'><a href="SocketServer.html#cleanup_service-instance_method" title="Msf::Exploit::Remote::SocketServer#cleanup_service (method)">#cleanup_service</a></span>, <span class='object_link'><a href="SocketServer.html#exploit-instance_method" title="Msf::Exploit::Remote::SocketServer#exploit (method)">#exploit</a></span>, <span class='object_link'><a href="SocketServer.html#initialize-instance_method" title="Msf::Exploit::Remote::SocketServer#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="SocketServer.html#on_client_data-instance_method" title="Msf::Exploit::Remote::SocketServer#on_client_data (method)">#on_client_data</a></span>, <span class='object_link'><a href="SocketServer.html#primer-instance_method" title="Msf::Exploit::Remote::SocketServer#primer (method)">#primer</a></span>, <span class='object_link'><a href="SocketServer.html#regenerate_payload-instance_method" title="Msf::Exploit::Remote::SocketServer#regenerate_payload (method)">#regenerate_payload</a></span>, <span class='object_link'><a href="SocketServer.html#srvhost-instance_method" title="Msf::Exploit::Remote::SocketServer#srvhost (method)">#srvhost</a></span>, <span class='object_link'><a href="SocketServer.html#srvhost_addr-instance_method" title="Msf::Exploit::Remote::SocketServer#srvhost_addr (method)">#srvhost_addr</a></span>, <span class='object_link'><a href="SocketServer.html#srvport-instance_method" title="Msf::Exploit::Remote::SocketServer#srvport (method)">#srvport</a></span>, <span class='object_link'><a href="SocketServer.html#start_service-instance_method" title="Msf::Exploit::Remote::SocketServer#start_service (method)">#start_service</a></span>, <span class='object_link'><a href="SocketServer.html#via_string-instance_method" title="Msf::Exploit::Remote::SocketServer#via_string (method)">#via_string</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="../JavaDeserialization.html" title="Msf::Exploit::JavaDeserialization (module)">JavaDeserialization</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="../JavaDeserialization.html#gadget_chains-class_method" title="Msf::Exploit::JavaDeserialization.gadget_chains (method)">gadget_chains</a></span>, <span class='object_link'><a href="../JavaDeserialization.html#generate_java_deserialization_for_command-instance_method" title="Msf::Exploit::JavaDeserialization#generate_java_deserialization_for_command (method)">#generate_java_deserialization_for_command</a></span>, <span class='object_link'><a href="../JavaDeserialization.html#generate_java_deserialization_for_payload-instance_method" title="Msf::Exploit::JavaDeserialization#generate_java_deserialization_for_payload (method)">#generate_java_deserialization_for_payload</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Powershell.html" title="Msf::Exploit::Powershell (module)">Powershell</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="../Powershell.html#bypass_powershell_protections-instance_method" title="Msf::Exploit::Powershell#bypass_powershell_protections (method)">#bypass_powershell_protections</a></span>, <span class='object_link'><a href="../Powershell.html#cmd_psh_payload-instance_method" title="Msf::Exploit::Powershell#cmd_psh_payload (method)">#cmd_psh_payload</a></span>, <span class='object_link'><a href="../Powershell.html#compress_script-instance_method" title="Msf::Exploit::Powershell#compress_script (method)">#compress_script</a></span>, <span class='object_link'><a href="../Powershell.html#decode_script-instance_method" title="Msf::Exploit::Powershell#decode_script (method)">#decode_script</a></span>, <span class='object_link'><a href="../Powershell.html#decompress_script-instance_method" title="Msf::Exploit::Powershell#decompress_script (method)">#decompress_script</a></span>, <span class='object_link'><a href="../Powershell.html#encode_script-instance_method" title="Msf::Exploit::Powershell#encode_script (method)">#encode_script</a></span>, <span class='object_link'><a href="../Powershell.html#generate_psh_args-instance_method" title="Msf::Exploit::Powershell#generate_psh_args (method)">#generate_psh_args</a></span>, <span class='object_link'><a href="../Powershell.html#generate_psh_command_line-instance_method" title="Msf::Exploit::Powershell#generate_psh_command_line (method)">#generate_psh_command_line</a></span>, <span class='object_link'><a href="../Powershell.html#initialize-instance_method" title="Msf::Exploit::Powershell#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Powershell.html#make_subs-instance_method" title="Msf::Exploit::Powershell#make_subs (method)">#make_subs</a></span>, <span class='object_link'><a href="../Powershell.html#process_subs-instance_method" title="Msf::Exploit::Powershell#process_subs (method)">#process_subs</a></span>, <span class='object_link'><a href="../Powershell.html#read_script-instance_method" title="Msf::Exploit::Powershell#read_script (method)">#read_script</a></span>, <span class='object_link'><a href="../Powershell.html#run_hidden_psh-instance_method" title="Msf::Exploit::Powershell#run_hidden_psh (method)">#run_hidden_psh</a></span></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Java.html" title="Msf::Exploit::Java (module)">Java</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="../Java.html#build_jar-instance_method" title="Msf::Exploit::Java#build_jar (method)">#build_jar</a></span>, <span class='object_link'><a href="../Java.html#compile-instance_method" title="Msf::Exploit::Java#compile (method)">#compile</a></span>, <span class='object_link'><a href="../Java.html#init_jvm-instance_method" title="Msf::Exploit::Java#init_jvm (method)">#init_jvm</a></span>, <span class='object_link'><a href="../Java.html#initialize-instance_method" title="Msf::Exploit::Java#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Java.html#query_jvm-instance_method" title="Msf::Exploit::Java#query_jvm (method)">#query_jvm</a></span>, <span class='object_link'><a href="../Java.html#save_to_file-instance_method" title="Msf::Exploit::Java#save_to_file (method)">#save_to_file</a></span>, <span class='object_link'><a href="../Java.html#serialized_class_from_jar-instance_method" title="Msf::Exploit::Java#serialized_class_from_jar (method)">#serialized_class_from_jar</a></span>, <span class='object_link'><a href="../Java.html#sign_jar-instance_method" title="Msf::Exploit::Java#sign_jar (method)">#sign_jar</a></span></p>
|
|
|
|
|
|
<div id="instance_method_details" class="method_details_list">
|
|
<h2>Instance Method Details</h2>
|
|
|
|
|
|
<div class="method_details first">
|
|
<h3 class="signature first" id="log4j_jndi_string-instance_method">
|
|
|
|
#<strong>log4j_jndi_string</strong>(resource = nil) ⇒ <tt>Object</tt>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
7
|
|
8
|
|
9</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/log4_shell.rb', line 7</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_log4j_jndi_string'>log4j_jndi_string</span><span class='lparen'>(</span><span class='id identifier rubyid_resource'>resource</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>${jndi:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_jndi_string'>jndi_string</span><span class='lparen'>(</span><span class='id identifier rubyid_resource'>resource</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>}</span><span class='tstring_end'>"</span></span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
Generated on Fri May 8 17:01:54 2026 by
|
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
0.9.37 (ruby-3.1.5).
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
</html> |