Skip to content

Commit

Permalink
deploy: e57c08e
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Sep 1, 2024
1 parent a9ed0c0 commit 786159c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions thread__scanner_8cpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,30 +234,30 @@
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span> &lt;&lt; <span class="stringliteral">&quot;Stack frame Size: &quot;</span> &lt;&lt; std::dec &lt;&lt; stack_frame.size() &lt;&lt; <span class="stringliteral">&quot;\n===\n&quot;</span>;</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span><span class="preprocessor">#endif </span><span class="comment">//_SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keywordflow">for</span> (<span class="keyword">auto</span> itr = stack_frame.rbegin();</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> itr != stack_frame.rend();</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> ++itr, ++processedCntr)</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keyword">const</span> ULONGLONG next_return = *itr;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="preprocessor">#ifdef _SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordflow">if</span> (symbols) {</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> symbols-&gt;dumpSymbolInfo(next_return);</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> }</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span>;</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> printResolvedAddr(next_return);</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><span class="preprocessor">#endif </span><span class="comment">//_SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordtype">bool</span> is_curr_shc = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">const</span> <a class="code hl_class" href="classpesieve_1_1_scanned_module.html">ScannedModule</a>* mod = modulesInfo.findModuleContaining(next_return);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">const</span> std::string mod_name = mod ? mod-&gt;<a class="code hl_function" href="classpesieve_1_1_scanned_module.html#a032f8ad62f6bd513835a020fa8f55abb">getModName</a>() : <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordflow">if</span> (mod_name.length() == 0) {</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">if</span> (cDetails.is_managed) {</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span><span class="preprocessor">#ifdef _SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span> &lt;&lt; std::hex &lt;&lt; next_return &lt;&lt; <span class="stringliteral">&quot; &lt;=== .NET JIT\n&quot;</span>;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span><span class="preprocessor">#endif </span><span class="comment">//_SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> has_shellcode = is_curr_shc = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> itr != stack_frame.rend() </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> &amp;&amp; (!cDetails.is_managed &amp;&amp; !has_shellcode); <span class="comment">// break on first found shellcode, (for now) discontinue analysis if the module is .NET to avoid FP</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> ++itr, ++processedCntr)</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> {</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">const</span> ULONGLONG next_return = *itr;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="preprocessor">#ifdef _SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">if</span> (symbols) {</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> symbols-&gt;dumpSymbolInfo(next_return);</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> }</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span>;</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> printResolvedAddr(next_return);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span><span class="preprocessor">#endif </span><span class="comment">//_SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordtype">bool</span> is_curr_shc = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">const</span> <a class="code hl_class" href="classpesieve_1_1_scanned_module.html">ScannedModule</a>* mod = modulesInfo.findModuleContaining(next_return);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">const</span> std::string mod_name = mod ? mod-&gt;<a class="code hl_function" href="classpesieve_1_1_scanned_module.html#a032f8ad62f6bd513835a020fa8f55abb">getModName</a>() : <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">if</span> (mod_name.length() == 0) {</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">if</span> (!cDetails.is_managed) {</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> has_shellcode = is_curr_shc = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span><span class="preprocessor">#ifdef _SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span> &lt;&lt; std::hex &lt;&lt; next_return &lt;&lt; <span class="stringliteral">&quot; &lt;=== SHELLCODE\n&quot;</span>;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span><span class="preprocessor">#endif </span><span class="comment">//_SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span><span class="preprocessor">#ifdef _SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span> &lt;&lt; std::hex &lt;&lt; next_return &lt;&lt; <span class="stringliteral">&quot; &lt;=== SHELLCODE\n&quot;</span>;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> std::cout &lt;&lt; <span class="stringliteral">&quot;\t&quot;</span> &lt;&lt; std::hex &lt;&lt; next_return &lt;&lt; <span class="stringliteral">&quot; &lt;=== .NET JIT\n&quot;</span>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span><span class="preprocessor">#endif </span><span class="comment">//_SHOW_THREAD_INFO</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> }</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> }</div>
Expand Down

0 comments on commit 786159c

Please sign in to comment.