308 lines
9.9 KiB
HTML
308 lines
9.9 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::X11::Extension
|
|
|
|
— 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::X11::Extension";
|
|
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 (E)</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="../X11.html" title="Msf::Exploit::Remote::X11 (module)">X11</a></span></span>
|
|
»
|
|
<span class="title">Extension</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::X11::Extension
|
|
|
|
|
|
|
|
</h1>
|
|
<div class="box_info">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Includes:</dt>
|
|
<dd><span class='object_link'><a href="Read.html" title="Msf::Exploit::Remote::X11::Read (module)">Read</a></span>, <span class='object_link'><a href="../../../../Rex/Proto/X11/Extension.html" title="Rex::Proto::X11::Extension (module)">Rex::Proto::X11::Extension</a></span></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Included in:</dt>
|
|
<dd><span class='object_link'><a href="../X11.html" title="Msf::Exploit::Remote::X11 (module)">Msf::Exploit::Remote::X11</a></span></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
<dt>Defined in:</dt>
|
|
<dd>lib/msf/core/exploit/remote/x11/extension.rb</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<h2>Overview</h2><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>This mixin is a simplistic implementation of X11 initial connection protocol</p>
|
|
|
|
<p>Wireshark dissector: <a href="https://wiki.wireshark.org/X11">wiki.wireshark.org/X11</a></p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</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="#x11_query_extension-instance_method" title="#x11_query_extension (instance method)">#<strong>x11_query_extension</strong>(extension_name, call_count) ⇒ Object </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>Query for an extension, converts the name of the extension to the ID #.</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
<li class="public ">
|
|
<span class="summary_signature">
|
|
|
|
<a href="#x11_toggle_extension-instance_method" title="#x11_toggle_extension (instance method)">#<strong>x11_toggle_extension</strong>(extension_id, wanted_major: 0, toggle: true) ⇒ Object </a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="summary_desc"><div class='inline'>
|
|
<p>toggles an extension on or off (enable/disable).</p>
|
|
</div></span>
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="Read.html" title="Msf::Exploit::Remote::X11::Read (module)">Read</a></span></h3>
|
|
<p class="inherited"><span class='object_link'><a href="Read.html#x11_read_response-instance_method" title="Msf::Exploit::Remote::X11::Read#x11_read_response (method)">#x11_read_response</a></span></p>
|
|
|
|
|
|
<div id="instance_method_details" class="method_details_list">
|
|
<h2>Instance Method Details</h2>
|
|
|
|
|
|
<div class="method_details first">
|
|
<h3 class="signature first" id="x11_query_extension-instance_method">
|
|
|
|
#<strong>x11_query_extension</strong>(extension_name, call_count) ⇒ <tt>Object</tt>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>Query for an extension, converts the name of the extension to the ID #</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
14
|
|
15
|
|
16
|
|
17</pre>
|
|
</td>
|
|
<td>
|
|
<pre class="code"><span class="info file"># File 'lib/msf/core/exploit/remote/x11/extension.rb', line 14</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_x11_query_extension'>x11_query_extension</span><span class='lparen'>(</span><span class='id identifier rubyid_extension_name'>extension_name</span><span class='comma'>,</span> <span class='id identifier rubyid_call_count'>call_count</span><span class='rparen'>)</span>
|
|
<span class='id identifier rubyid_sock'>sock</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../../../Rex/Proto/X11/Extension/X11QueryExtensionRequest.html" title="Rex::Proto::X11::Extension::X11QueryExtensionRequest (class)">X11QueryExtensionRequest</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>extension:</span> <span class='id identifier rubyid_extension_name'>extension_name</span><span class='comma'>,</span> <span class='label'>unused2:</span> <span class='id identifier rubyid_call_count'>call_count</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_binary_s'>to_binary_s</span><span class='rparen'>)</span>
|
|
<span class='id identifier rubyid_x11_read_response'>x11_read_response</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../../../Rex/Proto/X11/Extension/X11QueryExtensionResponse.html" title="Rex::Proto::X11::Extension::X11QueryExtensionResponse (class)">X11QueryExtensionResponse</a></span></span><span class='rparen'>)</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="method_details ">
|
|
<h3 class="signature " id="x11_toggle_extension-instance_method">
|
|
|
|
#<strong>x11_toggle_extension</strong>(extension_id, wanted_major: 0, toggle: true) ⇒ <tt>Object</tt>
|
|
|
|
|
|
|
|
|
|
|
|
</h3><div class="docstring">
|
|
<div class="discussion">
|
|
|
|
<p>toggles an extension on or off (enable/disable)</p>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tags">
|
|
|
|
|
|
</div><table class="source_code">
|
|
<tr>
|
|
<td>
|
|
<pre class="lines">
|
|
|
|
|
|
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/x11/extension.rb', line 20</span>
|
|
|
|
<span class='kw'>def</span> <span class='id identifier rubyid_x11_toggle_extension'>x11_toggle_extension</span><span class='lparen'>(</span><span class='id identifier rubyid_extension_id'>extension_id</span><span class='comma'>,</span> <span class='label'>wanted_major:</span> <span class='int'>0</span><span class='comma'>,</span> <span class='label'>toggle:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
|
<span class='id identifier rubyid_sock'>sock</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span>
|
|
<span class='const'><span class='object_link'><a href="../../../../Rex/Proto/X11/Extension/X11ExtensionToggleRequest.html" title="Rex::Proto::X11::Extension::X11ExtensionToggleRequest (class)">X11ExtensionToggleRequest</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
|
|
<span class='label'>opcode:</span> <span class='id identifier rubyid_extension_id'>extension_id</span><span class='comma'>,</span>
|
|
<span class='label'>toggle:</span> <span class='lparen'>(</span><span class='id identifier rubyid_toggle'>toggle</span> <span class='op'>?</span> <span class='int'>0</span> <span class='op'>:</span> <span class='int'>1</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='comment'># 0 is enable, 1 is disable
|
|
</span> <span class='label'>wanted_major:</span> <span class='id identifier rubyid_wanted_major'>wanted_major</span>
|
|
<span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_binary_s'>to_binary_s</span>
|
|
<span class='rparen'>)</span>
|
|
<span class='id identifier rubyid_x11_read_response'>x11_read_response</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../../../Rex/Proto/X11/Extension/X11ExtensionToggleResponse.html" title="Rex::Proto::X11::Extension::X11ExtensionToggleResponse (class)">X11ExtensionToggleResponse</a></span></span><span class='rparen'>)</span>
|
|
<span class='kw'>end</span></pre>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
Generated on Fri May 8 17:02:10 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> |