Reboot gh-pages

This commit is contained in:
jenkins-metasploit
2026-05-08 17:08:43 +00:00
commit c3f5bd3de2
3540 changed files with 2281201 additions and 0 deletions
@@ -0,0 +1,614 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base";
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> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">Base</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/base.rb</dd>
</dl>
</div>
<div id="subclasses">
<h2>Direct Known Subclasses</h2>
<p class="children"><span class='object_link'><a href="GetTickCount.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount (class)">GetTickCount</a></span>, <span class='object_link'><a href="If.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::If (class)">If</a></span>, <span class='object_link'><a href="IntAssignments.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::IntAssignments (class)">IntAssignments</a></span>, <span class='object_link'><a href="Malloc.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Malloc (class)">Malloc</a></span>, <span class='object_link'><a href="OutputDebugString.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::OutputDebugString (class)">OutputDebugString</a></span>, <span class='object_link'><a href="Printf.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf (class)">Printf</a></span>, <span class='object_link'><a href="StringAssignments.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::StringAssignments (class)">StringAssignments</a></span>, <span class='object_link'><a href="Switch.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Switch (class)">Switch</a></span>, <span class='object_link'><a href="UninitVariables.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::UninitVariables (class)">UninitVariables</a></span></p>
</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="#code-instance_method" title="#code (instance method)">#<strong>code</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 code.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#dep-instance_method" title="#dep (instance method)">#<strong>dep</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 dep.</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="#good_dep%3F-instance_method" title="#good_dep? (instance method)">#<strong>good_dep?</strong>(parser) &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Checks whether this class is suitable for the code.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; Base </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of Base.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#normalized_stub-instance_method" title="#normalized_stub (instance method)">#<strong>normalized_stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Override this method when you inherit this class.</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> &#x21d2; <tt><span class='object_link'><a href="" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Base.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
13
14
15
16</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/base.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
<span class='ivar'>@dep</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='ivar'>@code</span> <span class='op'>=</span> <span class='id identifier rubyid_normalized_stub'>normalized_stub</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="code-instance_method">
#<strong>code</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute code.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/base.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_code'>code</span>
<span class='ivar'>@code</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="dep-instance_method">
#<strong>dep</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute dep.</p>
</div>
</div>
<div class="tags">
</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/metasploit/framework/obfuscation/crandomizer/code_factory/base.rb', line 10</span>
<span class='kw'>def</span> <span class='id identifier rubyid_dep'>dep</span>
<span class='ivar'>@dep</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="good_dep?-instance_method">
#<strong>good_dep?</strong>(parser) &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Checks whether this class is suitable for the code.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>parser</span>
<span class='type'>(<tt>Metasm::C::Parser</tt>)</span>
</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">
37
38
39
40
41
42
43
44
45
46
47</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/base.rb', line 37</span>
<span class='kw'>def</span> <span class='id identifier rubyid_good_dep?'>good_dep?</span><span class='lparen'>(</span><span class='id identifier rubyid_parser'>parser</span><span class='rparen'>)</span>
<span class='comment'># The difference between @dep and parser.toplevel.symbol.keys
</span> <span class='comment'># is the list of functions not being supported by the original code.
</span> <span class='id identifier rubyid_ready_function_names'>ready_function_names</span> <span class='op'>=</span> <span class='id identifier rubyid_parser'>parser</span><span class='period'>.</span><span class='id identifier rubyid_toplevel'>toplevel</span><span class='period'>.</span><span class='id identifier rubyid_symbol'>symbol</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span>
<span class='id identifier rubyid_delta'>delta</span> <span class='op'>=</span> <span class='id identifier rubyid_dep'>dep</span> <span class='op'>-</span> <span class='id identifier rubyid_ready_function_names'>ready_function_names</span>
<span class='kw'>if</span> <span class='id identifier rubyid_delta'>delta</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
<span class='kw'>true</span>
<span class='kw'>else</span>
<span class='kw'>false</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="normalized_stub-instance_method">
#<strong>normalized_stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
49
50
51
52</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/base.rb', line 49</span>
<span class='kw'>def</span> <span class='id identifier rubyid_normalized_stub'>normalized_stub</span>
<span class='id identifier rubyid_stub_parser'>stub_parser</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_parse'><span class='object_link'><a href="../Utility.html#parse-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.parse (method)">parse</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_stub'>stub</span><span class='rparen'>)</span>
<span class='id identifier rubyid_stub_parser'>stub_parser</span><span class='period'>.</span><span class='id identifier rubyid_toplevel'>toplevel</span><span class='period'>.</span><span class='id identifier rubyid_statements'>statements</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_var'>var</span><span class='period'>.</span><span class='id identifier rubyid_initializer'>initializer</span><span class='period'>.</span><span class='id identifier rubyid_statements'>statements</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Override this method when you inherit this class. The method should return the source of the stub youre trying to create, as a C function. For example: %Q| void printf(const char*); void stub()
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_printf'>printf</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>hello world\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='semicolon'>;</span>
</code></pre>
<p>| Notice if you are using a function like the above, you must declare/define that beforehand. The function declaration will not be used in the final source code.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Raises:</p>
<ul class="raise">
<li>
<span class='type'>(<tt>NotImplementedError</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
29
30
31</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/base.rb', line 29</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:04 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,593 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunction
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunction";
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 (F)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">FakeFunction</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunction
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunction</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function.rb</dd>
</dl>
</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="#args-instance_method" title="#args (instance method)">#<strong>args</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 args.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#attribute-instance_method" title="#attribute (instance method)">#<strong>attribute</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 attribute.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#function_name-instance_method" title="#function_name (instance method)">#<strong>function_name</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 function_name.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#return_type-instance_method" title="#return_type (instance method)">#<strong>return_type</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 return_type.</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="#generate_body-instance_method" title="#generate_body (instance method)">#<strong>generate_body</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(func_name) &#x21d2; FakeFunction </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of FakeFunction.</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>(func_name) &#x21d2; <tt><span class='object_link'><a href="" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunction (class)">FakeFunction</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of FakeFunction.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
15
16
17
18
19
20</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function.rb', line 15</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_func_name'>func_name</span><span class='rparen'>)</span>
<span class='ivar'>@attribute</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'> __attribute__((export))</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span>
<span class='ivar'>@return_type</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>int</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>char*</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>void</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span>
<span class='ivar'>@args</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>int i</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>char* s</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>void</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span>
<span class='ivar'>@function_name</span> <span class='op'>=</span> <span class='id identifier rubyid_func_name'>func_name</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="args-instance_method">
#<strong>args</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute args.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
12
13
14</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function.rb', line 12</span>
<span class='kw'>def</span> <span class='id identifier rubyid_args'>args</span>
<span class='ivar'>@args</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="attribute-instance_method">
#<strong>attribute</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute attribute.</p>
</div>
</div>
<div class="tags">
</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/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function.rb', line 10</span>
<span class='kw'>def</span> <span class='id identifier rubyid_attribute'>attribute</span>
<span class='ivar'>@attribute</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="function_name-instance_method">
#<strong>function_name</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute function_name.</p>
</div>
</div>
<div class="tags">
</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/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function.rb', line 13</span>
<span class='kw'>def</span> <span class='id identifier rubyid_function_name'>function_name</span>
<span class='ivar'>@function_name</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="return_type-instance_method">
#<strong>return_type</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute return_type.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_return_type'>return_type</span>
<span class='ivar'>@return_type</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="generate_body-instance_method">
#<strong>generate_body</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function.rb', line 22</span>
<span class='kw'>def</span> <span class='id identifier rubyid_generate_body'>generate_body</span>
<span class='kw'>case</span> <span class='id identifier rubyid_return_type'>return_type</span>
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>int</span><span class='tstring_end'>&#39;</span></span>
<span class='id identifier rubyid_rand_return_val'>rand_return_val</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_int'><span class='object_link'><a href="../Utility.html#rand_int-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_int (method)">rand_int</a></span></span>
<span class='id identifier rubyid_return_statement'>return_statement</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>%Q|</span><span class='tstring_content'>return </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_rand_return_val'>rand_return_val</span><span class='embexpr_end'>}</span><span class='tstring_content'>;</span><span class='tstring_end'>|</span></span>
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>char*</span><span class='tstring_end'>&#39;</span></span>
<span class='id identifier rubyid_rand_return_str'>rand_return_str</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_string'><span class='object_link'><a href="../Utility.html#rand_string-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_string (method)">rand_string</a></span></span>
<span class='id identifier rubyid_return_statement'>return_statement</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>%Q|</span><span class='tstring_content'>return &quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_rand_return_str'>rand_return_str</span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot;;</span><span class='tstring_end'>|</span></span>
<span class='kw'>else</span>
<span class='id identifier rubyid_return_statement'>return_statement</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
<span class='kw'>end</span>
<span class='tstring'><span class='tstring_beg'>%Q|</span><span class='tstring_content'>
</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_return_type'>return_type</span><span class='embexpr_end'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_function_name'>function_name</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_attribute'>attribute</span><span class='embexpr_end'>}</span><span class='tstring_content'>(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_args'>args</span><span class='embexpr_end'>}</span><span class='tstring_content'>) {
</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_return_statement'>return_statement</span><span class='embexpr_end'>}</span><span class='tstring_content'>
}</span><span class='tstring_end'>|</span></span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:05 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,782 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection";
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 (F)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">FakeFunctionCollection</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName">Object</span>
<ul class="fullTree">
<li>Object</li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb</dd>
</dl>
</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="#functions-instance_method" title="#functions (instance method)">#<strong>functions</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns the value of attribute functions.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#max_functions-instance_method" title="#max_functions (instance method)">#<strong>max_functions</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 max_functions.</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="#each-instance_method" title="#each (instance method)">#<strong>each</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Yields a list of fake functions available.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#empty%3F-instance_method" title="#empty? (instance method)">#<strong>empty?</strong> &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Checks if the collection is empty or not.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#has_function_name%3F-instance_method" title="#has_function_name? (instance method)">#<strong>has_function_name?</strong>(name) &#x21d2; Boolean </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Asks the FakeFunctionCollection if a function is available.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(max_functions) &#x21d2; Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>Initializes a Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection instance.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#sample-instance_method" title="#sample (instance method)">#<strong>sample</strong> &#x21d2; Metasm::C::Declaration </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns a fake Metasm::C::Declaration from the FakeFunctionCollection object.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'>
<p>Returns a string that joins the fake functions.</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>(max_functions) &#x21d2; <tt><span class='object_link'><a href="" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection (class)">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Initializes a Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::FakeFunctionCollection instance.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>max_functions</span>
<span class='type'>(<tt>Integer</tt>)</span>
&mdash;
<div class='inline'>
<p>Max number of fake functions to generate.</p>
</div>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
17
18
19
20
21
22</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 17</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_max_functions'>max_functions</span><span class='rparen'>)</span>
<span class='ivar'>@functions</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='ivar'>@max_functions</span> <span class='op'>=</span> <span class='id identifier rubyid_max_functions'>max_functions</span>
<span class='id identifier rubyid_populate'>populate</span>
<span class='kw'>self</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="functions=-instance_method"></span>
<div class="method_details first">
<h3 class="signature first" id="functions-instance_method">
#<strong>functions</strong> &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute functions.</p>
</div>
</div>
<div class="tags">
</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/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 10</span>
<span class='kw'>def</span> <span class='id identifier rubyid_functions'>functions</span>
<span class='ivar'>@functions</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<span id=""></span>
<div class="method_details ">
<h3 class="signature " id="max_functions-instance_method">
#<strong>max_functions</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
</h3><div class="docstring">
<div class="discussion">
<p>Returns the value of attribute max_functions.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_max_functions'>max_functions</span>
<span class='ivar'>@max_functions</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="each-instance_method">
#<strong>each</strong> &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Yields a list of fake functions available.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
25
26
27
28
29</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 25</span>
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
<span class='id identifier rubyid_functions'>functions</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_f'>f</span><span class='op'>|</span>
<span class='kw'>yield</span> <span class='id identifier rubyid_f'>f</span>
<span class='kw'>end</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="empty?-instance_method">
#<strong>empty?</strong> &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Checks if the collection is empty or not.</p>
</div>
</div>
<div class="tags">
<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">
58
59
60</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 58</span>
<span class='kw'>def</span> <span class='id identifier rubyid_empty?'>empty?</span>
<span class='id identifier rubyid_functions'>functions</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="has_function_name?-instance_method">
#<strong>has_function_name?</strong>(name) &#x21d2; <tt>Boolean</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Asks the FakeFunctionCollection if a function is available.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>name</span>
<span class='type'>(<tt>String</tt>)</span>
</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">
47
48
49
50
51
52
53
54
55</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 47</span>
<span class='kw'>def</span> <span class='id identifier rubyid_has_function_name?'>has_function_name?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
<span class='id identifier rubyid_functions'>functions</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_f'>f</span><span class='op'>|</span>
<span class='kw'>if</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_var'>var</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span>
<span class='kw'>return</span> <span class='kw'>true</span>
<span class='kw'>end</span>
<span class='kw'>end</span>
<span class='kw'>false</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="sample-instance_method">
#<strong>sample</strong> &#x21d2; <tt>Metasm::C::Declaration</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a fake Metasm::C::Declaration from the FakeFunctionCollection object.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
<span class='type'>(<tt>Metasm::C::Declaration</tt>)</span>
</li>
</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
34
35
36</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 34</span>
<span class='kw'>def</span> <span class='id identifier rubyid_sample'>sample</span>
<span class='id identifier rubyid_functions'>functions</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="to_s-instance_method">
#<strong>to_s</strong> &#x21d2; <tt>Object</tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a string that joins the fake functions</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
39
40
41</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/fake_function_collection.rb', line 39</span>
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
<span class='id identifier rubyid_functions'>functions</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</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:04:05 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,287 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount";
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 (G)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">GetTickCount</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/gettickcount.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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> &#x21d2; GetTickCount </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of GetTickCount.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</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> &#x21d2; <tt><span class='object_link'><a href="" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::GetTickCount (class)">GetTickCount</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of GetTickCount.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/gettickcount.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
<span class='kw'>super</span>
<span class='ivar'>@dep</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GetTickCount</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
16
17
18
19
20
21</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/gettickcount.rb', line 16</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='lbracket'>[</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_single_gettickcount'>single_gettickcount</span> <span class='rbrace'>}</span><span class='comma'>,</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_diff_gettickcount'>diff_gettickcount</span> <span class='rbrace'>}</span>
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:05 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,222 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::If
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::If";
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 (I)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">If</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::If
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::If</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/if.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base</a></span></p>
</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14
15
16
17</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/if.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='lbracket'>[</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_if_stub'>if_stub</span> <span class='rbrace'>}</span><span class='comma'>,</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_if_if_else_stub'>if_if_else_stub</span> <span class='rbrace'>}</span><span class='comma'>,</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_if_else_stub'>if_else_stub</span> <span class='rbrace'>}</span>
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:04 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,222 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::IntAssignments
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::IntAssignments";
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 (I)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">IntAssignments</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::IntAssignments
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::IntAssignments</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/int_assignments.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base</a></span></p>
</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14
15
16
17</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/int_assignments.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='id identifier rubyid_var_name'>var_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>fakeint_</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_int'><span class='object_link'><a href="../Utility.html#rand_int-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_int (method)">rand_int</a></span></span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
<span class='tstring'><span class='tstring_beg'>%Q|</span><span class='tstring_content'>
void stub() {
int </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_var_name'>var_name</span><span class='embexpr_end'>}</span><span class='tstring_content'> = </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_int'><span class='object_link'><a href="../Utility.html#rand_int-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_int (method)">rand_int</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'>;
}</span><span class='tstring_end'>|</span></span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:05 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,291 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Malloc
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Malloc";
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 (M)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">Malloc</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Malloc
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Malloc</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/malloc.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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> &#x21d2; Malloc </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of Malloc.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</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> &#x21d2; <tt><span class='object_link'><a href="" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Malloc (class)">Malloc</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Malloc.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/malloc.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
<span class='kw'>super</span>
<span class='ivar'>@dep</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>malloc</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
16
17
18
19
20
21
22
23</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/malloc.rb', line 16</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='id identifier rubyid_var_name'>var_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>m</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_int'><span class='object_link'><a href="../Utility.html#rand_int-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_int (method)">rand_int</a></span></span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
<span class='tstring'><span class='tstring_beg'>%Q|</span><span class='tstring_content'>
void* malloc(unsigned int);
void stub() {
void* </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_var_name'>var_name</span><span class='embexpr_end'>}</span><span class='tstring_content'> = malloc(</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_int'><span class='object_link'><a href="../Utility.html#rand_int-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_int (method)">rand_int</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'>);
}</span><span class='tstring_end'>|</span></span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:04 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,287 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::OutputDebugString
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::OutputDebugString";
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 (O)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">OutputDebugString</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::OutputDebugString
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::OutputDebugString</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/outputdebugstring.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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> &#x21d2; OutputDebugString </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of OutputDebugString.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</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> &#x21d2; <tt><span class='object_link'><a href="" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::OutputDebugString (class)">OutputDebugString</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of OutputDebugString.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/outputdebugstring.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
<span class='kw'>super</span>
<span class='ivar'>@dep</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>OutputDebugString</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
16
17
18
19
20
21</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/outputdebugstring.rb', line 16</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='lbracket'>[</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_outputdebugstring_1'>outputdebugstring_1</span> <span class='rbrace'>}</span><span class='comma'>,</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_outputdebugstring_2'>outputdebugstring_2</span> <span class='rbrace'>}</span>
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:05 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,289 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf";
relpath = '../../../../../';
</script>
<script type="text/javascript" charset="utf-8" src="../../../../../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../../../../../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../../../../../class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../../../../../_index.html">Index (P)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">Printf</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/printf.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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> &#x21d2; Printf </a>
</span>
<span class="note title constructor">constructor</span>
<span class="summary_desc"><div class='inline'>
<p>A new instance of Printf.</p>
</div></span>
</li>
<li class="public ">
<span class="summary_signature">
<a href="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</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> &#x21d2; <tt><span class='object_link'><a href="" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Printf (class)">Printf</a></span></tt>
</h3><div class="docstring">
<div class="discussion">
<p>Returns a new instance of Printf.</p>
</div>
</div>
<div class="tags">
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/printf.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
<span class='kw'>super</span>
<span class='ivar'>@dep</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>printf</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
16
17
18
19
20
21
22</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/printf.rb', line 16</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='tstring'><span class='tstring_beg'>%Q|</span><span class='tstring_content'>
int printf(const char*);
void stub() {
printf(&quot;</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_string'><span class='object_link'><a href="../Utility.html#rand_string-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_string (method)">rand_string</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot;);
}</span><span class='tstring_end'>|</span></span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:04 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,222 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::StringAssignments
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::StringAssignments";
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 (S)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">StringAssignments</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::StringAssignments
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::StringAssignments</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/string_assignments.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base</a></span></p>
</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14
15
16
17</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/string_assignments.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='id identifier rubyid_var_name'>var_name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>fake_string_</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_int'><span class='object_link'><a href="../Utility.html#rand_int-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_int (method)">rand_int</a></span></span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
<span class='tstring'><span class='tstring_beg'>%Q|</span><span class='tstring_content'>
void stub() {
const char* </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_var_name'>var_name</span><span class='embexpr_end'>}</span><span class='tstring_content'> = &quot;</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Utility.html" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility (class)">Utility</a></span></span><span class='period'>.</span><span class='id identifier rubyid_rand_string'><span class='object_link'><a href="../Utility.html#rand_string-class_method" title="Metasploit::Framework::Obfuscation::CRandomizer::Utility.rand_string (method)">rand_string</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'>&quot;;
}</span><span class='tstring_end'>|</span></span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:05 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,220 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Switch
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Switch";
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 (S)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">Switch</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Switch
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Switch</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/switch.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base</a></span></p>
</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14
15
16</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/switch.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='lbracket'>[</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_switch_1'>switch_1</span> <span class='rbrace'>}</span><span class='comma'>,</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_switch_2'>switch_2</span> <span class='rbrace'>}</span>
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:04 2026 by
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.37 (ruby-3.1.5).
</div>
</div>
</body>
</html>
@@ -0,0 +1,222 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Class: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::UninitVariables
&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 = "Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::UninitVariables";
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 (U)</a> &raquo;
<span class='title'><span class='object_link'><a href="../../../../../Metasploit.html" title="Metasploit (module)">Metasploit</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../../Framework.html" title="Metasploit::Framework (module)">Framework</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../../Obfuscation.html" title="Metasploit::Framework::Obfuscation (module)">Obfuscation</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../CRandomizer.html" title="Metasploit::Framework::Obfuscation::CRandomizer (module)">CRandomizer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../CodeFactory.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory (module)">CodeFactory</a></span></span>
&raquo;
<span class="title">UninitVariables</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: Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::UninitVariables
</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd>
<span class="inheritName"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></span>
<ul class="fullTree">
<li>Object</li>
<li class="next"><span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></li>
<li class="next">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::UninitVariables</li>
</ul>
<a href="#" class="inheritanceTree">show all</a>
</dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>lib/metasploit/framework/obfuscation/crandomizer/code_factory/uninit_variables.rb</dd>
</dl>
</div>
<h2>Instance Attribute Summary</h2>
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#code-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#code (method)">#code</a></span>, <span class='object_link'><a href="Base.html#dep-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#dep (method)">#dep</a></span></p>
<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="#stub-instance_method" title="#stub (instance method)">#<strong>stub</strong> &#x21d2; Object </a>
</span>
<span class="summary_desc"><div class='inline'></div></span>
</li>
</ul>
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base (class)">Base</a></span></h3>
<p class="inherited"><span class='object_link'><a href="Base.html#good_dep%3F-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#good_dep? (method)">#good_dep?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#normalized_stub-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#normalized_stub (method)">#normalized_stub</a></span></p>
<div id="constructor_details" class="method_details_list">
<h2>Constructor Details</h2>
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base#initialize (method)">Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Base</a></span></p>
</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="stub-instance_method">
#<strong>stub</strong> &#x21d2; <tt>Object</tt>
</h3><table class="source_code">
<tr>
<td>
<pre class="lines">
11
12
13
14
15
16
17</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/metasploit/framework/obfuscation/crandomizer/code_factory/uninit_variables.rb', line 11</span>
<span class='kw'>def</span> <span class='id identifier rubyid_stub'>stub</span>
<span class='lbracket'>[</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_char'>char</span> <span class='rbrace'>}</span><span class='comma'>,</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_int'>int</span> <span class='rbrace'>}</span><span class='comma'>,</span>
<span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_string'>string</span> <span class='rbrace'>}</span>
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_sample'>sample</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated on Fri May 8 17:04:05 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>