Files
metasploit-gs/api/Msf/Exploit/Remote/Kerberos/Model/TgtResponse.html
T
jenkins-metasploit c3f5bd3de2 Reboot gh-pages
2026-05-08 17:08:43 +00:00

773 lines
19 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Msf::Exploit::Remote::Kerberos::Model::TgtResponse
&mdash; 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::Kerberos::Model::TgtResponse";
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 (T)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Msf.html" title="Msf (module)">Msf</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Exploit.html" title="Msf::Exploit (class)">Exploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Remote.html" title="Msf::Exploit::Remote (class)">Remote</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Kerberos.html" title="Msf::Exploit::Remote::Kerberos (module)">Kerberos</a></span></span> &raquo; <span class='title'>Model</span>
&raquo;
<span class="title">TgtResponse</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>Class: Msf::Exploit::Remote::Kerberos::Model::TgtResponse
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">Msf::Exploit::Remote::Kerberos::Model::TgtResponse</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb</dd>
</dl>
</div>
<h2>Overview</h2><div class="docstring">
<div class="discussion">
<p>A helper response object associated with a call to send_request_tgt.</p>
</div>
</div>
<div class="tags">
</div>
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#as_rep-instance_method" title="#as_rep (instance method)">#<strong>as_rep</strong> &#x21d2; Rex::Proto::Kerberos::Model::EncKdcResponse </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The Kerberos AS REP.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#decrypted_part-instance_method" title="#decrypted_part (instance method)">#<strong>decrypted_part</strong> &#x21d2; Rex::Proto::Kerberos::Model::EncKdcResponse </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The decrypted enc-part.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#krb_enc_key-instance_method" title="#krb_enc_key (instance method)">#<strong>krb_enc_key</strong> &#x21d2; Hash{String =&gt; object}<sup>?</sup> </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>The KrbEnctype used, including enctype, key, and a salt.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#preauth_required-instance_method" title="#preauth_required (instance method)">#<strong>preauth_required</strong> &#x21d2; TrueClass, FalseClass </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>False if the ticket was created without requiring preauthentication, otherwise true.</p>
</div></span>
</li>
</ul>
<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="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(as_rep:, krb_enc_key:, preauth_required:, decrypted_part:) &#x21d2; TgtResponse </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of TgtResponse.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#ticket-instance_method" title="#ticket (instance method)">#<strong>ticket</strong> &#x21d2; Rex::Proto::Kerberos::Model::Ticket </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>The Kerberos ticket.</p>
</div></span>
</li>
</ul>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<div class="method_details first">
<h3 class="signature first" id="initialize-instance_method">
#<strong>initialize</strong>(as_rep:, krb_enc_key:, preauth_required:, decrypted_part:) &#x21d2; <tt><span class='object_link'><a href="" title="Msf::Exploit::Remote::Kerberos::Model::TgtResponse (class)">TgtResponse</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of TgtResponse.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>as_rep</span>
<span class='type'>(<tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/EncKdcResponse.html" title="Rex::Proto::Kerberos::Model::EncKdcResponse (class)">Rex::Proto::Kerberos::Model::EncKdcResponse</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The Kerberos AS REP</p>
</div>
</li>
<li>
<span class='name'>The</span>
<span class='type'>(<tt>Hash{String =&gt; object}</tt>)</span>
&mdash;
<div class='inline'>
<p>KrbEnctype used, including enctype, key, and a salt</p>
</div>
</li>
<li>
<span class='name'>preauth_required</span>
<span class='type'>(<tt>TrueClass</tt>, <tt>FalseClass</tt>)</span>
&mdash;
<div class='inline'>
<p>False the ticket was created without requiring preauthentication, otherwise true.</p>
</div>
</li>
<li>
<span class='name'>decrypted_part</span>
<span class='type'>(<tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/EncKdcResponse.html" title="Rex::Proto::Kerberos::Model::EncKdcResponse (class)">Rex::Proto::Kerberos::Model::EncKdcResponse</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The decrypted response</p>
</div>
</li>
</ul>
<p class="tag_title">Raises:</p>
<ul class="raise">
<li>
<span class='type'>(<tt>ArgumentError</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
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/kerberos/model/tgt_response.rb', line 22</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>as_rep:</span><span class='comma'>,</span> <span class='label'>krb_enc_key:</span><span class='comma'>,</span> <span class='label'>preauth_required:</span><span class='comma'>,</span> <span class='label'>decrypted_part:</span><span class='rparen'>)</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Missing required option :enctype</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_krb_enc_key'>krb_enc_key</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_krb_enc_key'>krb_enc_key</span><span class='lbracket'>[</span><span class='symbol'>:enctype</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Missing required option :key</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_krb_enc_key'>krb_enc_key</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_krb_enc_key'>krb_enc_key</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
<span class='ivar'>@as_rep</span> <span class='op'>=</span> <span class='id identifier rubyid_as_rep'>as_rep</span>
<span class='ivar'>@krb_enc_key</span> <span class='op'>=</span> <span class='id identifier rubyid_krb_enc_key'>krb_enc_key</span>
<span class='ivar'>@preauth_required</span> <span class='op'>=</span> <span class='id identifier rubyid_preauth_required'>preauth_required</span>
<span class='ivar'>@decrypted_part</span> <span class='op'>=</span> <span class='id identifier rubyid_decrypted_part'>decrypted_part</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_attr_details" class="attr_details">
<h2>Instance Attribute Details</h2>
<span id=""></span>
<div class="method_details first">
<h3 class="signature first" id="as_rep-instance_method">
#<strong>as_rep</strong> &#x21d2; <tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/EncKdcResponse.html" title="Rex::Proto::Kerberos::Model::EncKdcResponse (class)">Rex::Proto::Kerberos::Model::EncKdcResponse</a></span></tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns The Kerberos AS REP.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/EncKdcResponse.html" title="Rex::Proto::Kerberos::Model::EncKdcResponse (class)">Rex::Proto::Kerberos::Model::EncKdcResponse</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The Kerberos AS REP</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 6</span>
<span class='kw'>def</span> <span class='id identifier rubyid_as_rep'>as_rep</span>
<span class='ivar'>@as_rep</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="decrypted_part-instance_method">
#<strong>decrypted_part</strong> &#x21d2; <tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/EncKdcResponse.html" title="Rex::Proto::Kerberos::Model::EncKdcResponse (class)">Rex::Proto::Kerberos::Model::EncKdcResponse</a></span></tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns The decrypted enc-part.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/EncKdcResponse.html" title="Rex::Proto::Kerberos::Model::EncKdcResponse (class)">Rex::Proto::Kerberos::Model::EncKdcResponse</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The decrypted enc-part</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
16
17
18</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 16</span>
<span class='kw'>def</span> <span class='id identifier rubyid_decrypted_part'>decrypted_part</span>
<span class='ivar'>@decrypted_part</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="krb_enc_key-instance_method">
#<strong>krb_enc_key</strong> &#x21d2; <tt>Hash{String =&gt; object}</tt><sup>?</sup> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns The KrbEnctype used, including enctype, key, and a salt. Nil if pre-auth was not required.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Hash{String =&gt; object}</tt>, <tt>nil</tt>)</span>
&mdash;
<div class='inline'>
<p>The KrbEnctype used, including enctype, key, and a salt. Nil if pre-auth was not required</p>
</div>
</li>
</ul>
<p class="tag_title">See Also:</p>
<ul class="see">
<li><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Crypto/Encryption.html" title="Rex::Proto::Kerberos::Crypto::Encryption (module)">Rex::Proto::Kerberos::Crypto::Encryption</a></span></li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
10
11
12</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 10</span>
<span class='kw'>def</span> <span class='id identifier rubyid_krb_enc_key'>krb_enc_key</span>
<span class='ivar'>@krb_enc_key</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="preauth_required-instance_method">
#<strong>preauth_required</strong> &#x21d2; <tt>TrueClass</tt>, <tt>FalseClass</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns False if the ticket was created without requiring preauthentication, otherwise true.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>TrueClass</tt>, <tt>FalseClass</tt>)</span>
&mdash;
<div class='inline'>
<p>False if the ticket was created without requiring preauthentication, otherwise true.</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
13
14
15</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_preauth_required'>preauth_required</span>
<span class='ivar'>@preauth_required</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="ticket-instance_method">
#<strong>ticket</strong> &#x21d2; <tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/Ticket.html" title="Rex::Proto::Kerberos::Model::Ticket (class)">Rex::Proto::Kerberos::Model::Ticket</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns The Kerberos ticket.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt><span class='object_link'><a href="../../../../../Rex/Proto/Kerberos/Model/Ticket.html" title="Rex::Proto::Kerberos::Model::Ticket (class)">Rex::Proto::Kerberos::Model::Ticket</a></span></tt>)</span>
&mdash;
<div class='inline'>
<p>The Kerberos ticket</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
33
34
35</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 33</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ticket'>ticket</span>
<span class='ivar'>@as_rep</span><span class='period'>.</span><span class='id identifier rubyid_ticket'>ticket</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:03:47 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>