Files
metasploit-gs/api/Msf/Exploit/Git/Lfs/Response.html
T
jenkins-metasploit c3f5bd3de2 Reboot gh-pages
2026-05-08 17:08:43 +00:00

1198 lines
53 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Msf::Exploit::Git::Lfs::Response
&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::Git::Lfs::Response";
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 (R)</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="../../Git.html" title="Msf::Exploit::Git (module)">Git</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Lfs.html" title="Msf::Exploit::Git::Lfs (module)">Lfs</a></span></span>
&raquo;
<span class="title">Response</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::Git::Lfs::Response
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html" title="Rex::Proto::Http::Response (class)">Rex::Proto::Http::Response</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html" title="Rex::Proto::Http::Packet (class)">Rex::Proto::Http::Packet</a></span></li>
<li class="next"><span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html" title="Rex::Proto::Http::Response (class)">Rex::Proto::Http::Response</a></span></li>
<li class="next">Msf::Exploit::Git::Lfs::Response</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Includes:</dt>
<dd><span class='object_link'><a href="../Lfs.html" title="Msf::Exploit::Git::Lfs (module)">Msf::Exploit::Git::Lfs</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/msf/core/exploit/git/lfs/response.rb</dd>
</dl>
</div>
<h2>
Constant Summary
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
</h2>
<dl class="constants">
<dt id="STATUS_CODES-constant" class="">STATUS_CODES =
</dt>
<dd><pre class="code"><span class='lbrace'>{</span>
<span class='int'>200</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>OK</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>401</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Auth required, but creds were not sent</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>403</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>User does not have write access</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>404</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The object does not exist on the server</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>406</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The Accept header needs to be application/vnd.git-lfs+json</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>410</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The object was removed by owner of repository</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>413</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The batch API request contained too many objects</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>422</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Requested object(s) invalid</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>429</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Server rate limit reached</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>501</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The server has not implemented the current method</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>507</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The server has insufficient storage capacity to complete the request</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
<span class='int'>509</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The bandwidth limit for the user or repository has been exceeded</span><span class='tstring_end'>&#39;</span></span>
<span class='rbrace'>}</span></pre></dd>
</dl>
<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="#base_addr-instance_method" title="#base_addr (instance method)">#<strong>base_addr</strong> &#x21d2; Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the value of attribute base_addr.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#operation-instance_method" title="#operation (instance method)">#<strong>operation</strong> &#x21d2; Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the value of attribute operation.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#requested_oids-instance_method" title="#requested_oids (instance method)">#<strong>requested_oids</strong> &#x21d2; Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the value of attribute requested_oids.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#transfers-instance_method" title="#transfers (instance method)">#<strong>transfers</strong> &#x21d2; Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the value of attribute transfers.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#valid_objs-instance_method" title="#valid_objs (instance method)">#<strong>valid_objs</strong> &#x21d2; Object </a>
</span>
<span class="note title readonly">readonly</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the value of attribute valid_objs.</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html" title="Rex::Proto::Http::Response (class)">Rex::Proto::Http::Response</a></span></h3>
<p class="inherited"><span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#code-instance_method" title="Rex::Proto::Http::Response#code (method)">#code</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#count_100-instance_method" title="Rex::Proto::Http::Response#count_100 (method)">#count_100</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#message-instance_method" title="Rex::Proto::Http::Response#message (method)">#message</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#peerinfo-instance_method" title="Rex::Proto::Http::Response#peerinfo (method)">#peerinfo</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#proto-instance_method" title="Rex::Proto::Http::Response#proto (method)">#proto</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#request-instance_method" title="Rex::Proto::Http::Response#request (method)">#request</a></span></p>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html" title="Rex::Proto::Http::Packet (class)">Rex::Proto::Http::Packet</a></span></h3>
<p class="inherited"><span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#auto_cl-instance_method" title="Rex::Proto::Http::Packet#auto_cl (method)">#auto_cl</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#body-instance_method" title="Rex::Proto::Http::Packet#body (method)">#body</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#body_bytes_left-instance_method" title="Rex::Proto::Http::Packet#body_bytes_left (method)">#body_bytes_left</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#bufq-instance_method" title="Rex::Proto::Http::Packet#bufq (method)">#bufq</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#chunk_max_size-instance_method" title="Rex::Proto::Http::Packet#chunk_max_size (method)">#chunk_max_size</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#chunk_min_size-instance_method" title="Rex::Proto::Http::Packet#chunk_min_size (method)">#chunk_min_size</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#compress-instance_method" title="Rex::Proto::Http::Packet#compress (method)">#compress</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#error-instance_method" title="Rex::Proto::Http::Packet#error (method)">#error</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#headers-instance_method" title="Rex::Proto::Http::Packet#headers (method)">#headers</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#incomplete-instance_method" title="Rex::Proto::Http::Packet#incomplete (method)">#incomplete</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#inside_chunk-instance_method" title="Rex::Proto::Http::Packet#inside_chunk (method)">#inside_chunk</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#keepalive-instance_method" title="Rex::Proto::Http::Packet#keepalive (method)">#keepalive</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#max_data-instance_method" title="Rex::Proto::Http::Packet#max_data (method)">#max_data</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#state-instance_method" title="Rex::Proto::Http::Packet#state (method)">#state</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#transfer_chunked-instance_method" title="Rex::Proto::Http::Packet#transfer_chunked (method)">#transfer_chunked</a></span></p>
<h2>
Class Method Summary
<small><a href="#" class="summary_toggle">collapse</a></small>
</h2>
<ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#from_http_request-class_method" title="from_http_request (class method)">.<strong>from_http_request</strong>(request, git_addr = &#39;&#39;) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#obj_sha256-class_method" title="obj_sha256 (class method)">.<strong>obj_sha256</strong>(content) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#parse_request_data-class_method" title="parse_request_data (class method)">.<strong>parse_request_data</strong>(body) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></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>(opts = {}) &#x21d2; Response </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of Response.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#set_headers-instance_method" title="#set_headers (instance method)">#<strong>set_headers</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#valid_objects%3F-instance_method" title="#valid_objects? (instance method)">#<strong>valid_objects?</strong>(repo_objects) &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Checks that the instances requested oids are valid Git objects in the repo.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#validate_requested_objects-instance_method" title="#validate_requested_objects (instance method)">#<strong>validate_requested_objects</strong>(repo_objects) &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Populates the valid objects list based on oids requested by the client.</p>
</div></span>
</li>
</ul>
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Lfs.html" title="Msf::Exploit::Git::Lfs (module)">Msf::Exploit::Git::Lfs</a></span></h3>
<p class="inherited"><span class='object_link'><a href="../Lfs.html#generate_pointer_file-instance_method" title="Msf::Exploit::Git::Lfs#generate_pointer_file (method)">#generate_pointer_file</a></span>, <span class='object_link'><a href="../Lfs.html#get_batch_response-instance_method" title="Msf::Exploit::Git::Lfs#get_batch_response (method)">#get_batch_response</a></span>, <span class='object_link'><a href="../Lfs.html#get_requested_obj_response-instance_method" title="Msf::Exploit::Git::Lfs#get_requested_obj_response (method)">#get_requested_obj_response</a></span></p>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html" title="Rex::Proto::Http::Response (class)">Rex::Proto::Http::Response</a></span></h3>
<p class="inherited"><span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#check_100-instance_method" title="Rex::Proto::Http::Response#check_100 (method)">#check_100</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#cmd_string-instance_method" title="Rex::Proto::Http::Response#cmd_string (method)">#cmd_string</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_cookies-instance_method" title="Rex::Proto::Http::Response#get_cookies (method)">#get_cookies</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_cookies_parsed-instance_method" title="Rex::Proto::Http::Response#get_cookies_parsed (method)">#get_cookies_parsed</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_hidden_inputs-instance_method" title="Rex::Proto::Http::Response#get_hidden_inputs (method)">#get_hidden_inputs</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_html_document-instance_method" title="Rex::Proto::Http::Response#get_html_document (method)">#get_html_document</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_html_meta_elements-instance_method" title="Rex::Proto::Http::Response#get_html_meta_elements (method)">#get_html_meta_elements</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_html_scripts-instance_method" title="Rex::Proto::Http::Response#get_html_scripts (method)">#get_html_scripts</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_json_document-instance_method" title="Rex::Proto::Http::Response#get_json_document (method)">#get_json_document</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#get_xml_document-instance_method" title="Rex::Proto::Http::Response#get_xml_document (method)">#get_xml_document</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#gzip_decode-instance_method" title="Rex::Proto::Http::Response#gzip_decode (method)">#gzip_decode</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#gzip_decode!-instance_method" title="Rex::Proto::Http::Response#gzip_decode! (method)">#gzip_decode!</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#redirect%3F-instance_method" title="Rex::Proto::Http::Response#redirect? (method)">#redirect?</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#redirection-instance_method" title="Rex::Proto::Http::Response#redirection (method)">#redirection</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Response.html#update_cmd_parts-instance_method" title="Rex::Proto::Http::Response#update_cmd_parts (method)">#update_cmd_parts</a></span></p>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html" title="Rex::Proto::Http::Packet (class)">Rex::Proto::Http::Packet</a></span></h3>
<p class="inherited"><span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#[]-instance_method" title="Rex::Proto::Http::Packet#[] (method)">#[]</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#[]=-instance_method" title="Rex::Proto::Http::Packet#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#check_100-instance_method" title="Rex::Proto::Http::Packet#check_100 (method)">#check_100</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#chunk-instance_method" title="Rex::Proto::Http::Packet#chunk (method)">#chunk</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#cmd_string-instance_method" title="Rex::Proto::Http::Packet#cmd_string (method)">#cmd_string</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#completed%3F-instance_method" title="Rex::Proto::Http::Packet#completed? (method)">#completed?</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#from_s-instance_method" title="Rex::Proto::Http::Packet#from_s (method)">#from_s</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#output_packet-instance_method" title="Rex::Proto::Http::Packet#output_packet (method)">#output_packet</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#parse-instance_method" title="Rex::Proto::Http::Packet#parse (method)">#parse</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#parse_body-instance_method" title="Rex::Proto::Http::Packet#parse_body (method)">#parse_body</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#parse_header-instance_method" title="Rex::Proto::Http::Packet#parse_header (method)">#parse_header</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#reset-instance_method" title="Rex::Proto::Http::Packet#reset (method)">#reset</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#reset_except_queue-instance_method" title="Rex::Proto::Http::Packet#reset_except_queue (method)">#reset_except_queue</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#to_s-instance_method" title="Rex::Proto::Http::Packet#to_s (method)">#to_s</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#to_terminal_output-instance_method" title="Rex::Proto::Http::Packet#to_terminal_output (method)">#to_terminal_output</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/Http/Packet.html#update_cmd_parts-instance_method" title="Rex::Proto::Http::Packet#update_cmd_parts (method)">#update_cmd_parts</a></span></p>
<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>(opts = {}) &#x21d2; <tt><span class='object_link'><a href="" title="Msf::Exploit::Git::Lfs::Response (class)">Response</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Response.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
27
28
29
30
31
32
33
34
35
36
37
38
39</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 27</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</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='ivar'>@uri</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:uri</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span>
<span class='ivar'>@base_addr</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:base_addr</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
<span class='ivar'>@code</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:code</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>200</span>
<span class='ivar'>@message</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:message</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="#STATUS_CODES-constant" title="Msf::Exploit::Git::Lfs::Response::STATUS_CODES (constant)">STATUS_CODES</a></span></span><span class='lbracket'>[</span><span class='ivar'>@code</span><span class='rbracket'>]</span>
<span class='ivar'>@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='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>download</span><span class='tstring_end'>&#39;</span></span>
<span class='ivar'>@requested_oids</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:requested_oids</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='ivar'>@valid_objs</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:valid_objs</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='ivar'>@transfers</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:transfers</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>basic</span><span class='tstring_end'>&#39;</span></span> <span class='rbracket'>]</span>
<span class='kw'>super</span><span class='lparen'>(</span><span class='ivar'>@code</span><span class='comma'>,</span> <span class='ivar'>@message</span><span class='rparen'>)</span>
<span class='id identifier rubyid_set_headers'>set_headers</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="base_addr-instance_method">
#<strong>base_addr</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute base_addr.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
9
10
11</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 9</span>
<span class='kw'>def</span> <span class='id identifier rubyid_base_addr'>base_addr</span>
<span class='ivar'>@base_addr</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="operation-instance_method">
#<strong>operation</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute operation.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
9
10
11</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 9</span>
<span class='kw'>def</span> <span class='id identifier rubyid_operation'>operation</span>
<span class='ivar'>@operation</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="requested_oids-instance_method">
#<strong>requested_oids</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute requested_oids.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
9
10
11</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 9</span>
<span class='kw'>def</span> <span class='id identifier rubyid_requested_oids'>requested_oids</span>
<span class='ivar'>@requested_oids</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="transfers-instance_method">
#<strong>transfers</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute transfers.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
9
10
11</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 9</span>
<span class='kw'>def</span> <span class='id identifier rubyid_transfers'>transfers</span>
<span class='ivar'>@transfers</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="valid_objs-instance_method">
#<strong>valid_objs</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute valid_objs.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
9
10
11</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 9</span>
<span class='kw'>def</span> <span class='id identifier rubyid_valid_objs'>valid_objs</span>
<span class='ivar'>@valid_objs</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
<div id="class_method_details" class="method_details_list">
<h2>Class Method Details</h2>
<div class="method_details first">
<h3 class="signature first" id="from_http_request-class_method">
.<strong>from_http_request</strong>(request, git_addr = &#39;&#39;) &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 82</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_from_http_request'>from_http_request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_git_addr'>git_addr</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:uri</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_uri'>uri</span>
<span class='kw'>case</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_method'>method</span>
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GET</span><span class='tstring_end'>&#39;</span></span>
<span class='id identifier rubyid_uri_parts'>uri_parts</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:uri</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_requested_oid'>requested_oid</span> <span class='op'>=</span> <span class='id identifier rubyid_uri_parts'>uri_parts</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
<span class='kw'>unless</span> <span class='id identifier rubyid_requested_oid'>requested_oid</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:code</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='int'>422</span>
<span class='kw'>return</span> <span class='const'><span class='object_link'><a href="" title="Msf::Exploit::Git::Lfs::Response (class)">Response</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Msf::Exploit::Git::Lfs::Response#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
<span class='kw'>end</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:requested_oids</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_requested_oid'>requested_oid</span> <span class='rbracket'>]</span>
<span class='const'><span class='object_link'><a href="" title="Msf::Exploit::Git::Lfs::Response (class)">Response</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Msf::Exploit::Git::Lfs::Response#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>POST</span><span class='tstring_end'>&#39;</span></span>
<span class='kw'>unless</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>info/lfs/objects/batch</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:code</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='int'>404</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:message</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Not Found</span><span class='tstring_end'>&#39;</span></span>
<span class='kw'>return</span> <span class='const'><span class='object_link'><a href="" title="Msf::Exploit::Git::Lfs::Response (class)">Response</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Msf::Exploit::Git::Lfs::Response#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
<span class='kw'>end</span>
<span class='id identifier rubyid_git_addr'>git_addr</span> <span class='op'>=</span> <span class='id identifier rubyid_git_addr'>git_addr</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
<span class='kw'>if</span> <span class='id identifier rubyid_git_addr'>git_addr</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>The URL for the Git repository was not supplied</span><span class='tstring_end'>&#39;</span></span>
<span class='kw'>end</span>
<span class='id identifier rubyid_git_addr'>git_addr</span> <span class='op'>=</span> <span class='id identifier rubyid_git_addr'>git_addr</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\/\w+\.git</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:base_addr</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_git_addr'>git_addr</span>
<span class='id identifier rubyid_parsed_options'>parsed_options</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_request_data'>parse_request_data</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span>
<span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_parsed_options'>parsed_options</span><span class='rparen'>)</span>
<span class='const'><span class='object_link'><a href="" title="Msf::Exploit::Git::Lfs::Response (class)">Response</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Msf::Exploit::Git::Lfs::Response#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="obj_sha256-class_method">
.<strong>obj_sha256</strong>(content) &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
78
79
80</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 78</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_obj_sha256'>obj_sha256</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span>
<span class='const'>Digest</span><span class='op'>::</span><span class='const'>SHA256</span><span class='period'>.</span><span class='id identifier rubyid_hexdigest'>hexdigest</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="parse_request_data-class_method">
.<strong>parse_request_data</strong>(body) &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
118
119
120
121
122
123
124
125
126
127
128
129
130</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 118</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse_request_data'>parse_request_data</span><span class='lparen'>(</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span>
<span class='id identifier rubyid_json_data'>json_data</span> <span class='op'>=</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span>
<span class='id identifier rubyid_oids'>oids</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='id identifier rubyid_req_opts'>req_opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
<span class='id identifier rubyid_req_opts'>req_opts</span><span class='lbracket'>[</span><span class='symbol'>:operation</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_json_data'>json_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>operation</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>download</span><span class='tstring_end'>&#39;</span></span>
<span class='id identifier rubyid_objects'>objects</span> <span class='op'>=</span> <span class='id identifier rubyid_json_data'>json_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>objects</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id identifier rubyid_json_data'>json_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>objects</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
<span class='id identifier rubyid_objects'>objects</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_obj'>obj</span><span class='op'>|</span> <span class='id identifier rubyid_oids'>oids</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_obj'>obj</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>oid</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='rbrace'>}</span>
<span class='id identifier rubyid_req_opts'>req_opts</span><span class='lbracket'>[</span><span class='symbol'>:requested_oids</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_oids'>oids</span>
<span class='id identifier rubyid_req_opts'>req_opts</span><span class='lbracket'>[</span><span class='symbol'>:transfers</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_json_data'>json_data</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>transfers</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
<span class='id identifier rubyid_req_opts'>req_opts</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="set_headers-instance_method">
#<strong>set_headers</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
41
42
43
44
45
46</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 41</span>
<span class='kw'>def</span> <span class='id identifier rubyid_set_headers'>set_headers</span>
<span class='id identifier rubyid_required_header'>required_header</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>application/vnd.git-lfs+json</span><span class='tstring_end'>&#39;</span></span>
<span class='ivar'>@headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Accept</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_required_header'>required_header</span>
<span class='ivar'>@headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_required_header'>required_header</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="valid_objects?-instance_method">
#<strong>valid_objects?</strong>(repo_objects) &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Checks that the instances requested oids are valid Git objects in the repo</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>list</span>
<span class='type'>(<tt>Array</tt>)</span>
&mdash;
<div class='inline'>
<p>of objects in repo</p>
</div>
</li>
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Boolean</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
54
55
56
57
58
59
60
61</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 54</span>
<span class='kw'>def</span> <span class='id identifier rubyid_valid_objects?'>valid_objects?</span><span class='lparen'>(</span><span class='id identifier rubyid_repo_objects'>repo_objects</span><span class='rparen'>)</span>
<span class='id identifier rubyid_repo_objects'>repo_objects</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_repo_objects'>repo_objects</span> <span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_repo_objects'>repo_objects</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_repo_objects'>repo_objects</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
<span class='id identifier rubyid_validate_requested_objects'>validate_requested_objects</span><span class='lparen'>(</span><span class='id identifier rubyid_repo_objects'>repo_objects</span><span class='rparen'>)</span>
<span class='ivar'>@valid_objs</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_obj'>obj</span><span class='op'>|</span> <span class='ivar'>@requested_oids</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_obj_sha256'>obj_sha256</span><span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="validate_requested_objects-instance_method">
#<strong>validate_requested_objects</strong>(repo_objects) &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Populates the valid objects list based on oids requested by the client</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>list</span>
<span class='type'>(<tt>Array</tt>)</span>
&mdash;
<div class='inline'>
<p>of objects in repo</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
68
69
70
71
72
73
74
75
76</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/git/lfs/response.rb', line 68</span>
<span class='kw'>def</span> <span class='id identifier rubyid_validate_requested_objects'>validate_requested_objects</span><span class='lparen'>(</span><span class='id identifier rubyid_repo_objects'>repo_objects</span><span class='rparen'>)</span>
<span class='id identifier rubyid_repo_objects'>repo_objects</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_obj'>obj</span><span class='op'>|</span>
<span class='ivar'>@requested_oids</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_oid'>oid</span><span class='op'>|</span>
<span class='ivar'>@valid_objs</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_obj'>obj</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_obj_sha256'>obj_sha256</span><span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='id identifier rubyid_oid'>oid</span>
<span class='kw'>end</span>
<span class='kw'>end</span>
<span class='ivar'>@valid_objs</span><span class='period'>.</span><span class='id identifier rubyid_uniq!'>uniq!</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:03:33 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>