Reboot gh-pages
This commit is contained in:
@@ -0,0 +1,452 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Module: Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server::Builder
|
||||
|
||||
— 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::Java::Rmi::Client::Jmx::Server::Builder";
|
||||
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 (B)</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'><span class='object_link'><a href="../../../../../Java.html" title="Msf::Exploit::Remote::Java (module)">Java</a></span></span> » <span class='title'><span class='object_link'><a href="../../../../Rmi.html" title="Msf::Exploit::Remote::Java::Rmi (module)">Rmi</a></span></span> » <span class='title'><span class='object_link'><a href="../../../Client.html" title="Msf::Exploit::Remote::Java::Rmi::Client (module)">Client</a></span></span> » <span class='title'><span class='object_link'><a href="../../Jmx.html" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx (module)">Jmx</a></span></span> » <span class='title'><span class='object_link'><a href="../Server.html" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server (module)">Server</a></span></span>
|
||||
»
|
||||
<span class="title">Builder</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::Java::Rmi::Client::Jmx::Server::Builder
|
||||
|
||||
|
||||
|
||||
</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Included in:</dt>
|
||||
<dd><span class='object_link'><a href="../Server.html" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server (module)">Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>lib/msf/core/exploit/remote/java/rmi/client/jmx/server/builder.rb</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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="#build_jmx_new_client-instance_method" title="#build_jmx_new_client (instance method)">#<strong>build_jmx_new_client</strong>(opts = {}) ⇒ Rex::Proto::Rmi::Model::Call </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'>
|
||||
<p>Builds an RMI call to javax/management/remote/rmi/RMIServer_Stub#newClient() used to enumerate the names bound in a registry.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#build_jmx_new_client_args-instance_method" title="#build_jmx_new_client_args (instance method)">#<strong>build_jmx_new_client_args</strong>(username = '', password = '') ⇒ Array<Rex::Java::Serialization::Model::NewArray> </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'>
|
||||
<p>Builds a Rex::Java::Serialization::Model::NewArray with credentials to make an javax/management/remote/rmi/RMIServer_Stub#newClient call.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="build_jmx_new_client-instance_method">
|
||||
|
||||
#<strong>build_jmx_new_client</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="../../../../../../../../Rex/Proto/Rmi/Model/Call.html" title="Rex::Proto::Rmi::Model::Call (class)">Rex::Proto::Rmi::Model::Call</a></span></tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>Builds an RMI call to javax/management/remote/rmi/RMIServer_Stub#newClient() used to enumerate the names bound in a registry</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>opts</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Hash</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
||||
<ul class="option">
|
||||
|
||||
<li>
|
||||
<span class="name">:username</span>
|
||||
<span class="type">(<tt>String</tt>)</span>
|
||||
<span class="default">
|
||||
|
||||
</span>
|
||||
|
||||
— <div class='inline'>
|
||||
<p>the JMX role to establish the connection if needed</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class="name">:password</span>
|
||||
<span class="type">(<tt>String</tt>)</span>
|
||||
<span class="default">
|
||||
|
||||
</span>
|
||||
|
||||
— <div class='inline'>
|
||||
<p>the JMX password to establish the connection if needed</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<p class="tag_title">Returns:</p>
|
||||
<ul class="return">
|
||||
|
||||
<li>
|
||||
|
||||
|
||||
<span class='type'>(<tt><span class='object_link'><a href="../../../../../../../../Rex/Proto/Rmi/Model/Call.html" title="Rex::Proto::Rmi::Model::Call (class)">Rex::Proto::Rmi::Model::Call</a></span></tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p class="tag_title">See Also:</p>
|
||||
<ul class="see">
|
||||
|
||||
<li>Builder.build_call</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/java/rmi/client/jmx/server/builder.rb', line 21</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_build_jmx_new_client'>build_jmx_new_client</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_object_number'>object_number</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:object_number</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
|
||||
<span class='id identifier rubyid_uid_number'>uid_number</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:uid_number</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
|
||||
<span class='id identifier rubyid_uid_time'>uid_time</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:uid_time</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
|
||||
<span class='id identifier rubyid_uid_count'>uid_count</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:uid_count</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
|
||||
<span class='id identifier rubyid_username'>username</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:username</span><span class='rbracket'>]</span>
|
||||
<span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
||||
|
||||
<span class='kw'>if</span> <span class='id identifier rubyid_username'>username</span>
|
||||
<span class='id identifier rubyid_arguments'>arguments</span> <span class='op'>=</span> <span class='id identifier rubyid_build_jmx_new_client_args'>build_jmx_new_client_args</span><span class='lparen'>(</span><span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
|
||||
<span class='kw'>else</span>
|
||||
<span class='id identifier rubyid_arguments'>arguments</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="../../../../../../../../Rex.html" title="Rex (module)">Rex</a></span></span><span class='op'>::</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>Serialization</span><span class='op'>::</span><span class='const'>Model</span><span class='op'>::</span><span class='const'>NullReference</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='rbracket'>]</span>
|
||||
<span class='kw'>end</span>
|
||||
|
||||
<span class='id identifier rubyid_call'>call</span> <span class='op'>=</span> <span class='id identifier rubyid_build_call'>build_call</span><span class='lparen'>(</span>
|
||||
<span class='label'>object_number:</span> <span class='id identifier rubyid_object_number'>object_number</span><span class='comma'>,</span>
|
||||
<span class='label'>uid_number:</span> <span class='id identifier rubyid_uid_number'>uid_number</span><span class='comma'>,</span>
|
||||
<span class='label'>uid_time:</span> <span class='id identifier rubyid_uid_time'>uid_time</span><span class='comma'>,</span>
|
||||
<span class='label'>uid_count:</span> <span class='id identifier rubyid_uid_count'>uid_count</span><span class='comma'>,</span>
|
||||
<span class='label'>operation:</span> <span class='op'>-</span><span class='int'>1</span><span class='comma'>,</span>
|
||||
<span class='label'>hash:</span> <span class='op'>-</span><span class='int'>1089742558549201240</span><span class='comma'>,</span> <span class='comment'># javax.management.remote.rmi.RMIServer.newClient
|
||||
</span> <span class='label'>arguments:</span> <span class='id identifier rubyid_arguments'>arguments</span>
|
||||
<span class='rparen'>)</span>
|
||||
|
||||
<span class='id identifier rubyid_call'>call</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="method_details ">
|
||||
<h3 class="signature " id="build_jmx_new_client_args-instance_method">
|
||||
|
||||
#<strong>build_jmx_new_client_args</strong>(username = '', password = '') ⇒ <tt>Array<Rex::Java::Serialization::Model::NewArray></tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>Builds a Rex::Java::Serialization::Model::NewArray with credentials to make an javax/management/remote/rmi/RMIServer_Stub#newClient call</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>username</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The username (role) to authenticate with</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>password</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The password to authenticate with</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p class="tag_title">Returns:</p>
|
||||
<ul class="return">
|
||||
|
||||
<li>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Array<Rex::Java::Serialization::Model::NewArray></tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
54
|
||||
55
|
||||
56
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/java/rmi/client/jmx/server/builder.rb', line 54</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_build_jmx_new_client_args'>build_jmx_new_client_args</span><span class='lparen'>(</span><span class='id identifier rubyid_username'>username</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_builder'>builder</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../../../../../../../Rex.html" title="Rex (module)">Rex</a></span></span><span class='op'>::</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>Serialization</span><span class='op'>::</span><span class='const'>Builder</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
||||
|
||||
<span class='id identifier rubyid_auth_array'>auth_array</span> <span class='op'>=</span> <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_new_array'>new_array</span><span class='lparen'>(</span>
|
||||
<span class='label'>name:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>[Ljava.lang.String;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
||||
<span class='label'>serial:</span> <span class='const'><span class='object_link'><a href="../../../../../../../../Msf.html" title="Msf (module)">Msf</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../../../Exploit.html" title="Msf::Exploit (class)">Exploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../../Remote.html" title="Msf::Exploit::Remote (class)">Remote</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Java.html" title="Msf::Exploit::Remote::Java (module)">Java</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Rmi.html" title="Msf::Exploit::Remote::Java::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Client.html" title="Msf::Exploit::Remote::Java::Rmi::Client (module)">Client</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Jmx.html" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx (module)">Jmx</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../Jmx.html#STRING_ARRAY_UID-constant" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx::STRING_ARRAY_UID (constant)">STRING_ARRAY_UID</a></span></span><span class='comma'>,</span> <span class='comment'># serialVersionUID
|
||||
</span> <span class='label'>values_type:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java.lang.String;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
||||
<span class='label'>values:</span> <span class='lbracket'>[</span>
|
||||
<span class='const'><span class='object_link'><a href="../../../../../../../../Rex.html" title="Rex (module)">Rex</a></span></span><span class='op'>::</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>Serialization</span><span class='op'>::</span><span class='const'>Model</span><span class='op'>::</span><span class='const'>Utf</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_username'>username</span><span class='rparen'>)</span><span class='comma'>,</span>
|
||||
<span class='const'><span class='object_link'><a href="../../../../../../../../Rex.html" title="Rex (module)">Rex</a></span></span><span class='op'>::</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>Serialization</span><span class='op'>::</span><span class='const'>Model</span><span class='op'>::</span><span class='const'>Utf</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
|
||||
<span class='rbracket'>]</span>
|
||||
<span class='rparen'>)</span>
|
||||
|
||||
<span class='lbracket'>[</span><span class='id identifier rubyid_auth_array'>auth_array</span><span class='rbracket'>]</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri May 8 17:02:49 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>
|
||||
@@ -0,0 +1,247 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Module: Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server::Parser
|
||||
|
||||
— 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::Java::Rmi::Client::Jmx::Server::Parser";
|
||||
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 (P)</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'><span class='object_link'><a href="../../../../../Java.html" title="Msf::Exploit::Remote::Java (module)">Java</a></span></span> » <span class='title'><span class='object_link'><a href="../../../../Rmi.html" title="Msf::Exploit::Remote::Java::Rmi (module)">Rmi</a></span></span> » <span class='title'><span class='object_link'><a href="../../../Client.html" title="Msf::Exploit::Remote::Java::Rmi::Client (module)">Client</a></span></span> » <span class='title'><span class='object_link'><a href="../../Jmx.html" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx (module)">Jmx</a></span></span> » <span class='title'><span class='object_link'><a href="../Server.html" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server (module)">Server</a></span></span>
|
||||
»
|
||||
<span class="title">Parser</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::Java::Rmi::Client::Jmx::Server::Parser
|
||||
|
||||
|
||||
|
||||
</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Included in:</dt>
|
||||
<dd><span class='object_link'><a href="../Server.html" title="Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server (module)">Msf::Exploit::Remote::Java::Rmi::Client::Jmx::Server</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>lib/msf/core/exploit/remote/java/rmi/client/jmx/server/parser.rb</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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="#parse_jmx_new_client_endpoint-instance_method" title="#parse_jmx_new_client_endpoint (instance method)">#<strong>parse_jmx_new_client_endpoint</strong>(return_value) ⇒ Hash, NilClass </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'>
|
||||
<p>Parses a javax/management/remote/rmi/RMIServer_Stub#newClient() return value to find out the remote reference information.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="parse_jmx_new_client_endpoint-instance_method">
|
||||
|
||||
#<strong>parse_jmx_new_client_endpoint</strong>(return_value) ⇒ <tt>Hash</tt>, <tt>NilClass</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>Parses a javax/management/remote/rmi/RMIServer_Stub#newClient() return value to find out the remote reference information.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>return_value</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Rex::Java::Serialization::Model::ReturnValue</tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p class="tag_title">Returns:</p>
|
||||
<ul class="return">
|
||||
|
||||
<li>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Hash</tt>, <tt>NilClass</tt>)</span>
|
||||
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The remote interface information if success, nil otherwise</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/java/rmi/client/jmx/server/parser.rb', line 17</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_parse_jmx_new_client_endpoint'>parse_jmx_new_client_endpoint</span><span class='lparen'>(</span><span class='id identifier rubyid_return_value'>return_value</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_values_size'>values_size</span> <span class='op'>=</span> <span class='id identifier rubyid_return_value'>return_value</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
||||
<span class='id identifier rubyid_end_point_block_data'>end_point_block_data</span> <span class='op'>=</span> <span class='id identifier rubyid_return_value'>return_value</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='id identifier rubyid_values_size'>values_size</span> <span class='op'>-</span> <span class='int'>2</span><span class='rbracket'>]</span>
|
||||
|
||||
<span class='kw'>unless</span> <span class='id identifier rubyid_end_point_block_data'>end_point_block_data</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../../../../../../../Rex.html" title="Rex (module)">Rex</a></span></span><span class='op'>::</span><span class='const'>Java</span><span class='op'>::</span><span class='const'>Serialization</span><span class='op'>::</span><span class='const'>Model</span><span class='op'>::</span><span class='const'>BlockData</span><span class='rparen'>)</span>
|
||||
<span class='kw'>return</span> <span class='kw'>nil</span>
|
||||
<span class='kw'>end</span>
|
||||
|
||||
<span class='id identifier rubyid_return_io'>return_io</span> <span class='op'>=</span> <span class='const'>StringIO</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_end_point_block_data'>end_point_block_data</span><span class='period'>.</span><span class='id identifier rubyid_contents'>contents</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>rb</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
||||
|
||||
<span class='id identifier rubyid_reference'>reference</span> <span class='op'>=</span> <span class='id identifier rubyid_extract_reference'>extract_reference</span><span class='lparen'>(</span><span class='id identifier rubyid_return_io'>return_io</span><span class='rparen'>)</span>
|
||||
|
||||
<span class='id identifier rubyid_reference'>reference</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Fri May 8 17:02:49 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>
|
||||
Reference in New Issue
Block a user