670 lines
29 KiB
HTML
670 lines
29 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::Java::Rmi::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::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">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::Builder
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</h1>
|
||
|
|
<div class="box_info">
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<dl>
|
||
|
|
<dt>Included in:</dt>
|
||
|
|
<dd><span class='object_link'><a href="Client.html" title="Msf::Exploit::Remote::Java::Rmi::Client (module)">Client</a></span></dd>
|
||
|
|
</dl>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<dl>
|
||
|
|
<dt>Defined in:</dt>
|
||
|
|
<dd>lib/msf/core/exploit/remote/java/rmi/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_call-instance_method" title="#build_call (instance method)">#<strong>build_call</strong>(opts = {}) ⇒ Rex::Proto::Rmi::Model::Call </a>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<span class="summary_desc"><div class='inline'>
|
||
|
|
<p>Builds a RMI call stream.</p>
|
||
|
|
</div></span>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
|
||
|
|
<li class="public ">
|
||
|
|
<span class="summary_signature">
|
||
|
|
|
||
|
|
<a href="#build_dgc_ack-instance_method" title="#build_dgc_ack (instance method)">#<strong>build_dgc_ack</strong>(opts = {}) ⇒ Rex::Proto::Rmi::Model::DgcAck </a>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<span class="summary_desc"><div class='inline'>
|
||
|
|
<p>Builds a RMI dgc ack stream.</p>
|
||
|
|
</div></span>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
|
||
|
|
<li class="public ">
|
||
|
|
<span class="summary_signature">
|
||
|
|
|
||
|
|
<a href="#build_header-instance_method" title="#build_header (instance method)">#<strong>build_header</strong>(opts = {}) ⇒ Rex::Proto::Rmi::Model::OutputHeader </a>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<span class="summary_desc"><div class='inline'>
|
||
|
|
<p>Builds a RMI header stream.</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_call-instance_method">
|
||
|
|
|
||
|
|
#<strong>build_call</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 a RMI call stream</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{Symbol => <Integer, Array>}</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">:message_id</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:object_number</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
— <div class='inline'>
|
||
|
|
<p>Random to identify the object.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:uid_number</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
— <div class='inline'>
|
||
|
|
<p>Identifies the VM where the object was generated.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:uid_time</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
— <div class='inline'>
|
||
|
|
<p>Time where the object was generated.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:uid_count</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
— <div class='inline'>
|
||
|
|
<p>Identifies different instance of the same object generated from the same VM at the same time.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:operation</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
— <div class='inline'>
|
||
|
|
<p>On JDK 1.1 stub protocol the operation index in the interface. On JDK 1.2 it is -1.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:hash</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
— <div class='inline'>
|
||
|
|
<p>On JDK 1.1 stub protocol the stub's interface hash. On JDK1.2 is a hash representing the method to call.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:arguments</span>
|
||
|
|
<span class="type">(<tt>Array</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
</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>
|
||
|
|
|
||
|
|
</div><table class="source_code">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<pre class="lines">
|
||
|
|
|
||
|
|
|
||
|
|
46
|
||
|
|
47
|
||
|
|
48
|
||
|
|
49
|
||
|
|
50
|
||
|
|
51
|
||
|
|
52
|
||
|
|
53
|
||
|
|
54
|
||
|
|
55
|
||
|
|
56
|
||
|
|
57
|
||
|
|
58
|
||
|
|
59
|
||
|
|
60
|
||
|
|
61
|
||
|
|
62
|
||
|
|
63
|
||
|
|
64
|
||
|
|
65
|
||
|
|
66
|
||
|
|
67
|
||
|
|
68
|
||
|
|
69
|
||
|
|
70
|
||
|
|
71
|
||
|
|
72
|
||
|
|
73
|
||
|
|
74
|
||
|
|
75
|
||
|
|
76</pre>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/java/rmi/builder.rb', line 46</span>
|
||
|
|
|
||
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_build_call'>build_call</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_message_id'>message_id</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:message_id</span><span class='rbracket'>]</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html#CALL_MESSAGE-constant" title="Rex::Proto::Rmi::Model::CALL_MESSAGE (constant)">CALL_MESSAGE</a></span></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_operation'>operation</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:operation</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='op'>-</span><span class='int'>1</span>
|
||
|
|
<span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:hash</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
|
||
|
|
<span class='id identifier rubyid_arguments'>arguments</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:arguments</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
||
|
|
|
||
|
|
<span class='id identifier rubyid_uid'>uid</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/UniqueIdentifier.html" title="Rex::Proto::Rmi::Model::UniqueIdentifier (class)">UniqueIdentifier</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/Element.html#initialize-instance_method" title="Rex::Proto::Rmi::Model::Element#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
||
|
|
<span class='label'>number:</span> <span class='id identifier rubyid_uid_number'>uid_number</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>time:</span> <span class='id identifier rubyid_uid_time'>uid_time</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>count:</span> <span class='id identifier rubyid_uid_count'>uid_count</span>
|
||
|
|
<span class='rparen'>)</span>
|
||
|
|
|
||
|
|
<span class='id identifier rubyid_call_data'>call_data</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/CallData.html" title="Rex::Proto::Rmi::Model::CallData (class)">CallData</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/Element.html#initialize-instance_method" title="Rex::Proto::Rmi::Model::Element#initialize (method)">new</a></span></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:</span> <span class='id identifier rubyid_uid'>uid</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>operation:</span> <span class='id identifier rubyid_operation'>operation</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>hash:</span> <span class='id identifier rubyid_hash'>hash</span><span class='comma'>,</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='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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/Call.html" title="Rex::Proto::Rmi::Model::Call (class)">Call</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/Element.html#initialize-instance_method" title="Rex::Proto::Rmi::Model::Element#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
||
|
|
<span class='label'>message_id:</span> <span class='id identifier rubyid_message_id'>message_id</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>call_data:</span> <span class='id identifier rubyid_call_data'>call_data</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_dgc_ack-instance_method">
|
||
|
|
|
||
|
|
#<strong>build_dgc_ack</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/DgcAck.html" title="Rex::Proto::Rmi::Model::DgcAck (class)">Rex::Proto::Rmi::Model::DgcAck</a></span></tt>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</h3><div class="docstring">
|
||
|
|
<div class="discussion">
|
||
|
|
|
||
|
|
<p>Builds a RMI dgc ack stream</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{Symbol => <Integer, String>}</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">:stream_id</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:unique_identifier</span>
|
||
|
|
<span class="type">(<tt>String</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
</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/DgcAck.html" title="Rex::Proto::Rmi::Model::DgcAck (class)">Rex::Proto::Rmi::Model::DgcAck</a></span></tt>)</span>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
</div><table class="source_code">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<pre class="lines">
|
||
|
|
|
||
|
|
|
||
|
|
84
|
||
|
|
85
|
||
|
|
86
|
||
|
|
87
|
||
|
|
88
|
||
|
|
89
|
||
|
|
90
|
||
|
|
91
|
||
|
|
92
|
||
|
|
93
|
||
|
|
94</pre>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/java/rmi/builder.rb', line 84</span>
|
||
|
|
|
||
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_build_dgc_ack'>build_dgc_ack</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_stream_id'>stream_id</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:stream_id</span><span class='rbracket'>]</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html#DGC_ACK_MESSAGE-constant" title="Rex::Proto::Rmi::Model::DGC_ACK_MESSAGE (constant)">DGC_ACK_MESSAGE</a></span></span>
|
||
|
|
<span class='id identifier rubyid_unique_identifier'>unique_identifier</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:unique_identifier</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00</span><span class='tstring_end'>"</span></span>
|
||
|
|
|
||
|
|
<span class='id identifier rubyid_dgc_ack'>dgc_ack</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/DgcAck.html" title="Rex::Proto::Rmi::Model::DgcAck (class)">DgcAck</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/Element.html#initialize-instance_method" title="Rex::Proto::Rmi::Model::Element#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
||
|
|
<span class='label'>stream_id:</span> <span class='id identifier rubyid_stream_id'>stream_id</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>unique_identifier:</span> <span class='id identifier rubyid_unique_identifier'>unique_identifier</span>
|
||
|
|
<span class='rparen'>)</span>
|
||
|
|
|
||
|
|
<span class='id identifier rubyid_dgc_ack'>dgc_ack</span>
|
||
|
|
<span class='kw'>end</span></pre>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="method_details ">
|
||
|
|
<h3 class="signature " id="build_header-instance_method">
|
||
|
|
|
||
|
|
#<strong>build_header</strong>(opts = {}) ⇒ <tt><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/OutputHeader.html" title="Rex::Proto::Rmi::Model::OutputHeader (class)">Rex::Proto::Rmi::Model::OutputHeader</a></span></tt>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</h3><div class="docstring">
|
||
|
|
<div class="discussion">
|
||
|
|
|
||
|
|
<p>Builds a RMI header stream</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{Symbol => <String, Integer>}</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">:signature</span>
|
||
|
|
<span class="type">(<tt>String</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:version</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
<li>
|
||
|
|
<span class="name">:protocol</span>
|
||
|
|
<span class="type">(<tt>Integer</tt>)</span>
|
||
|
|
<span class="default">
|
||
|
|
|
||
|
|
</span>
|
||
|
|
|
||
|
|
</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/OutputHeader.html" title="Rex::Proto::Rmi::Model::OutputHeader (class)">Rex::Proto::Rmi::Model::OutputHeader</a></span></tt>)</span>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</li>
|
||
|
|
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
</div><table class="source_code">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<pre class="lines">
|
||
|
|
|
||
|
|
|
||
|
|
18
|
||
|
|
19
|
||
|
|
20
|
||
|
|
21
|
||
|
|
22
|
||
|
|
23
|
||
|
|
24
|
||
|
|
25
|
||
|
|
26
|
||
|
|
27
|
||
|
|
28
|
||
|
|
29</pre>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/java/rmi/builder.rb', line 18</span>
|
||
|
|
|
||
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_build_header'>build_header</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_signature'>signature</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:signature</span><span class='rbracket'>]</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html#SIGNATURE-constant" title="Rex::Proto::Rmi::Model::SIGNATURE (constant)">SIGNATURE</a></span></span>
|
||
|
|
<span class='id identifier rubyid_version'>version</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:version</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>2</span>
|
||
|
|
<span class='id identifier rubyid_protocol'>protocol</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:protocol</span><span class='rbracket'>]</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html#STREAM_PROTOCOL-constant" title="Rex::Proto::Rmi::Model::STREAM_PROTOCOL (constant)">STREAM_PROTOCOL</a></span></span>
|
||
|
|
|
||
|
|
<span class='id identifier rubyid_header'>header</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'><span class='object_link'><a href="../../../../../Rex/Proto.html" title="Rex::Proto (module)">Proto</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi.html" title="Rex::Proto::Rmi (module)">Rmi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model.html" title="Rex::Proto::Rmi::Model (module)">Model</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/OutputHeader.html" title="Rex::Proto::Rmi::Model::OutputHeader (class)">OutputHeader</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../../../../../Rex/Proto/Rmi/Model/Element.html#initialize-instance_method" title="Rex::Proto::Rmi::Model::Element#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
||
|
|
<span class='label'>signature:</span> <span class='id identifier rubyid_signature'>signature</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>version:</span> <span class='id identifier rubyid_version'>version</span><span class='comma'>,</span>
|
||
|
|
<span class='label'>protocol:</span> <span class='id identifier rubyid_protocol'>protocol</span><span class='rparen'>)</span>
|
||
|
|
|
||
|
|
<span class='id identifier rubyid_header'>header</span>
|
||
|
|
<span class='kw'>end</span></pre>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div id="footer">
|
||
|
|
Generated on Fri May 8 17:02:22 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>
|