<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rob on Medium]]></title>
        <description><![CDATA[Stories by Rob on Medium]]></description>
        <link>https://medium.com/@robsware?source=rss-641ed5141c27------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Znq02ibYujYgN7toIgIgWw.jpeg</url>
            <title>Stories by Rob on Medium</title>
            <link>https://medium.com/@robsware?source=rss-641ed5141c27------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:43:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@robsware/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quick guide to catch up and get started with AI image and text generation as of April 2023]]></title>
            <link>https://robsware.medium.com/quick-guide-to-catch-up-and-get-started-with-ai-image-and-text-generation-as-of-april-2023-7f1a420dc774?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f1a420dc774</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[image-generation]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[stable-diffusion]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Mon, 03 Apr 2023 09:13:34 GMT</pubDate>
            <atom:updated>2023-04-03T09:13:34.527Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been out of the AI world for a few years as I’ve focued on infosec, but since I achieved my goal of obtaining the OSWE and a bunch of other certs, I’ve spent my past 2 weeks just catching up with AI. And what a wild 2 weeks it’s been! Let’s jump into it.</p><p>I have focused on self hosted AI tools, which I have ran on my Nvidia 2080 and 3080 — both which have 8 GBs of VRAM.</p><h3><strong>Image Generation</strong></h3><p>Stable Diffusion (SD) is the way to go. <a href="https://github.com/AUTOMATIC1111">AUTOMATIC1111</a> has created a wonderful repository that can get you started right away:</p><p><a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui">GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI</a></p><p>The first thing you’ll want to know about is how to get more models. The best place to start (and stop) is <a href="https://civitai.com/">https://civitai.com/</a>. They have a huge variety of models, and many can be directly downloaded and placed in your model s folder and be ready to go. Model makers and users can also include the prompts they used to create their pictures so it is very easy to just pick one you like and use it as a starting point.</p><p>Reddit is also a good source of this. From using <a href="https://www.reddit.com/r/StableDiffusion/comments/11i11nd/to_generate_icons_on_a_neutral_background_put_a/">SD to create logos</a> to <a href="https://www.reddit.com/r/StableDiffusion/comments/1244h2c/will_smith_eating_spaghetti/">cursed videos of Will Smith eating spagetti</a>, the subreddit has a lot of inspiration and tutorials available.</p><p>While browsing civai, you might also notice the existence of <a href="https://stable-diffusion-art.com/lora/">LORAs </a>— SD models that apply small changes to standard models. AUTOMATIC1111’s repo includes support for LORAs so you can incorporate them just as easily as a standard model.</p><p>The next step to improve your outputs is <a href="https://stable-diffusion-art.com/controlnet/">ControlNet</a>. As the name suggests, this repo gives you tremendous control over what SD is able to make. From turning scribbles into images to posing characters, it gives users fine control over the outputs.<a href="https://www.reddit.com/r/StableDiffusion/comments/11c4m4q/one_of_the_best_uses_for_multicontrolnet_from/"> Reddit users even found ways to incorporate layers of controlnet to fix both poses and hands on their outputs.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*Dl84hdKvp6maBWxe" /><figcaption>Scribbles to art</figcaption></figure><h3>Text Generation and chatbots</h3><h4>Web UI’s</h4><p>I’ve experimented with 3 different clients here, <a href="https://github.com/KoboldAI/KoboldAI-Client">KoboldAI</a>, <a href="https://github.com/TavernAI/TavernAI">TavernAI</a>, and <a href="https://github.com/oobabooga/text-generation-webui/">oobabooga’s webui</a>, and it was a hard choice but I think I liked the latter the most, mainly because it was the only one that supported the leaked Facebook LLaMa model. If you manage to get your hands on it through various means (such as googling for it), the base model does not have the weights included which make it unsuitable to act as a chatbot, but Stanford created weights to address that purpose.</p><p>Unfortunately, they didn’t release them. Fortunately, the released how they did it and someone redid the process for the 7B model here: <a href="https://github.com/pointnetwork/point-alpaca">https://github.com/pointnetwork/point-alpaca</a></p><p>Since this is a leaked model, the repo has to tip toe around it a bit and use encrypted datasets, but I’ve had no issues with it and I was able to run it on a 3080 with 8 GB of VRAM, although it was quite slow and I ran out of memory often.</p><p>If you do not intend to use the Facebook LLaMa model, then I would recommend Kobold instead. It has a large repository of available models it can download and is very flexible. TavernAI is a bit more designed to be used with cloud instances of GPU and operates based on an API, but the amount of character cards available to get you started is astounding so do give it a go if you want an uncensored character.ai. However, those cards can be exported to oobabooga’s webui. Sometimes directly, otherwise via copy pasting the <a href="https://oobabooga.github.io/character-creator.html">prompts in here</a> and importing the JSON file.</p><p>I would recommend trying all of them, but so far I think oobabooga’s webui is primed to become the most comprehensive one.</p><h4>Models</h4><p>The leaked Facebook LLaMa model with the Stanford weights is the most comprehensive one but it has high hardware requirements and needs various workarounds described above to work. If you’re looking for something with a far easier learning curve, try out <a href="https://huggingface.co/PygmalionAI/pygmalion-6b">Pygmalion AI</a>. It can be easily imported and downloaded directly from the Web UI’s mentioned above and the 6B model can be run even on <a href="https://www.reddit.com/r/PygmalionAI/comments/1115gom/running_pygmalion_6b_with_8gb_of_vram/">8GB VRAM</a>, although with some minor loss in quality. If you are looking for more models,<a href="https://huggingface.co/KoboldAI"> KoboldAI has a list of all the models it can easily import</a> and download from the Web UI so feel free to experiment.</p><h3>Conclusion</h3><p>That’s it. With this quick tutorial, you should be ready to get started in a matter of hours. The rabbit hole goes much, much deeper, and there are ways to incorporate LLMs together via tools such <a href="https://github.com/hwchase17/langchain">langchain</a> or extensions built into the UI. LLMs are a very exciting space to be in right now and the technology moves so fast that 2 months can seem like a decade ago in terms of capability. Go out there and experiment!</p><p>If you’ve enjoyed this article, feel free to follow me <a href="https://twitter.com/robsware">@robsware</a> on Twitter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f1a420dc774" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using chatgpt and GPT4 to accelerate appsec learning]]></title>
            <link>https://robsware.medium.com/using-chatgpt-and-gpt4-to-accelerate-appsec-learning-13c4cfba8855?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/13c4cfba8855</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[gpt-4]]></category>
            <category><![CDATA[appsec]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 09:24:51 GMT</pubDate>
            <atom:updated>2023-04-02T09:28:26.765Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve recently passed my <a href="https://robsware.github.io/2023/03/13/oswe">OSWE exam</a> and I found myself wanting more. While CVE hunting and actual appsec work are on the table, I wanted something smaller in scope that I can use to keep my skills sharp in the meantime. I am a huge fan of the <a href="https://dayzerosec.com/about.html">DayZero podcast </a>and of their <a href="https://imgur.com/a/2EQoqbr">regular challenges</a> so I wanted to create something similar.</p><p><a href="https://robsware.github.io/challenges/dailyappsec/">As a result, I have built a daily appsec puzzle generator available here.</a> (Still in beta, there are some issues that need fixing)</p><p>If you are wondering how I did it, keep reading.</p><p>I started with chatgpt. Chatgpt is amazingly powerful and incredibly affordable. About two days of experiments, close to 200 requests, and I incurred a total cost of just 10 cents while also learning a lot about prompt engineering and parsing its output.</p><p>The thought process was that I could ask chatgpt to create a vulnerable code snippet, based on a specific vulnerability. For example, I could ask ChatGPT to generate a code snippet that receives user input without proper input validation or sanitization and it would generate an example like:</p><pre>$username = $_POST[&#39;username&#39;];<br><br>$sql = &quot;SELECT * FROM users WHERE username = &#39;$username&#39;&quot;;<br><br>$result = mysqli_query($conn, $sql);<br><br>if ($result) {<br>  while($row = mysqli_fetch_assoc($result)) {<br>    echo &quot;Welcome &quot; . $row[&quot;username&quot;];<br>  }<br>}</pre><p>Which is technically correct, but also mostly nonsensical as this kind of application would very likely not exist in a real scenario.</p><p>So the next step was to try and add it to an existing web application. After a lot of tweaking with the prompts and the responses, I got some promising results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*1Cj_XrTn2D_V-O7qzb9GKQ.png" /><figcaption>Early attempts</figcaption></figure><p>Unfortunately, there is a natural fuzziness that comes from chatgpt results. There’s always some entropy in the way it generates responses, even when the prompt specified a fixed format.</p><p>However, just as I had released the beta for the daily appsec puzzle using chagpt, I got access to GPT4!</p><p>While it is significantly more expensive than chatgpt, I have been able to get reliable results in the format I want:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*YycJChU5mWPJruMwuTZslg.png" /><figcaption>GPT4 to the rescue</figcaption></figure><p>The solutions are also automatically generated and uploaded the next day.</p><p>Overall, I’ve been very happy with the results and it’s one of the things I check every day to test myself. Everything is entirely automated, the vulnerabilities are pulled from the official <a href="https://cwe.mitre.org/data/index.html">CWE MITRE website</a> and the language is picked at random, so as long as my raspberry pi doesn’t lose WiFi signal, I can get my daily appsec fix.</p><p>I genuinely believe that AI models such as chatgpt and GPT4 can accelerate learning in almost all industries. Since you can ask them to explain their througt process, they can act as individual teachers to fit your needs. You can even send the challenges to chatgpt to get help on identifying the vulnerability!</p><p>I’m excited to see how much further I can take this project (appsec labs?) or how others can build on top of existing appsec solutions to further push this industry forward.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13c4cfba8855" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to access your virtual machine from the internet with OpenVPN]]></title>
            <link>https://robsware.medium.com/how-to-access-your-virtual-machine-from-the-internet-with-openvpn-b26dc80cd3cb?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/b26dc80cd3cb</guid>
            <category><![CDATA[openvpn]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[vps]]></category>
            <category><![CDATA[vm]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Mon, 21 Jun 2021 07:53:45 GMT</pubDate>
            <atom:updated>2021-06-21T08:00:26.660Z</atom:updated>
            <content:encoded><![CDATA[<p>During my pentest engagements, I sometimes get remote code execution (RCE) on a server. Depending on the type of engagement, sometimes this might be enough for the client, but other times they might ask for post exploitation too. For cases like this, I’ve relied on a droplet (VPS) hosted on Digital Ocean to transfer files across and get my shells going. This runs into a few problems, mostly related to costs. A VPS with kali and its toolset can become somewhat expensive. My previous solution was to have a debian distro with the kali repos and just use what I need, which worked fine for the most part, but I kept wanting to have access to my full kali box on my PC. Since I started working fully remote, I like working from various places, so the option of a fixed business IP is not really feasible. Thus this project.</p><p>To achieve this goal, I’m using my Digital Ocean droplet as a proxy with openvpn. Traffic sent to the public droplet IP will be forwarded to the kali box and the responses from the kali box will be sent across the droplet as well. Since the droplet just needs to act as a proxy/VPN server, you can run it on the cheapest cloud option available as performance is not an issue. The process is surprisingly short and simple if you’re familiar with IP tables, but it still took me about a week to figure it out. So, to save you this time, here’s how you can do it too.</p><p><strong>The Virtual Machine:</strong></p><p>Running it in bridged mode will make management easier. If you are using VMware, just change it from the VM settings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*7op9E-Af1OxM0KrQ" /></figure><p><strong>The Router</strong></p><p>This is fairly simple. Go to your router config, locate your kali VM, which should have its own IP since it’s a bridged network, and forward UDP port 1194:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*ggWLtQscUmKZ-N6b" /></figure><p><strong>The cloud server</strong></p><p>I used digital ocean. You can use any VPS provider you like, I liked digital ocean’s options the most so if you decide on them as well, consider using my referral link: <a href="https://m.do.co/c/ec356af64a15">https://m.do.co/c/ec356af64a15</a> .</p><p>I’ll start by rebuilding my droplet so we can have a clean state. I’ll be using a Debain 10 image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/0*RTkocUVEx3BQeMzi" /></figure><p>Once you get your shell on the VPS, we begin by using the amazing script made by the people at pivpn: <a href="https://www.pivpn.io/">https://www.pivpn.io/</a></p><pre>curl -L <a href="https://install.pivpn.io/">https://install.pivpn.io</a> | bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*iC1iiN-VFthUuUDV" /></figure><p>For interface, select eth0:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/0*Q0AJspDiI2UZV95o" /></figure><p>You might have to create a new user for openvpn. I created a new user named “kali”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/0*Ds9I9ODSuwMn4D7D" /></figure><p>Setup a password and continue on.</p><p>We’ll be using OpenVPN for our purpose:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*ph5U73bEcb17zwzb" /></figure><p>Select no:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/0*iFL60EAcddceB90t" /></figure><p>I personally like using the google DNS server:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/0*CSaGNxrB5geat9rK" /></figure><p>Just keep pressing enter after this point until you get to the server reboot. Reboot when asked.</p><p>Reconnect to the box and generate an .ovpn file for your kali box:</p><pre>pivpn add nopass</pre><pre>Enter a Name for the Client: kali</pre><pre>How many days should the certificate last? 1080</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*V7_IliMqAdSeKBpe" /></figure><p>From your kali VM, copy over the .ovpn file:</p><pre>scp -i id_rsa root@138.xxx.xxx.xxx:/home/kali/ovpns/kali.ovpn .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/0*BkQqznlr6Aqhut6j" /></figure><p>Let’s run a quick test before we move on:</p><pre>sudo openvpn kali.ovpn</pre><pre>curl ip.me</pre><p>At this point you should be seeing your droplet IP. Congratulations, you have now rolled out your own VPN service!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*ySZj-lyt1BTrR3Br" /></figure><p>But that’s not why we’re here. Return to the droplet/VPS, and flush the IP Tables options.</p><p>flush iptables:</p><pre>iptables -F</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/0*UaQR1P3CKLPq8Xhk" /></figure><p>Now for the crucial part, the iptables rules that make the NAT work. In this particular case, we want to make a webserver hosted on kali on port 8000 accessible from the web:</p><pre>iptables -t nat -A PREROUTING -d 138.xxx.xxx.xxx -p tcp — dport 8000 -j DNAT — to-dest 10.8.0.2:8000</pre><pre>iptables -t nat -A POSTROUTING -d 10.8.0.2 -p tcp — dport 8000 -j SNAT — to-source 138.xxx.xxx.1</pre><p>138.xxx.xxx.xxx is the droplet IP. If you don’t have any other clients on the openvpn network, 10.8.0.2 should be your VM IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/0*wc5bRepC845t_2Jr" /></figure><p>That’s it!</p><p>You can now return to the kali box, reconnect to the .ovpn file and run a python server on port 8000:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/0*DuI4-Nyp0px-AVcI" /></figure><p>We can now visit the VPS IP and get access to our kali webserver:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/0*59Ms-Ol5c7DmsgLU" /></figure><p>You can redo the above IP tables rule for any other port you want.</p><p>If you’d like to forward all ports, you can use those rules:</p><pre>iptables -t nat -A PREROUTING -d 138.xxx.xxx.xxx -p tcp -j DNAT — to-dest 10.8.0.2</pre><pre>iptables -t nat -A POSTROUTING -d 10.8.0.2 -p tcp -j SNAT — to-source 138.xxx.xxx.1</pre><p><strong>WARNING</strong>: if you don’t have another way of managing your VPS, you will be unable to ssh into it from outside the openvpn network if you apply those rules. You can, however, SSH from inside it:</p><pre>ssh -i id_rsa root@10.8.0.1</pre><p>That is it. You should now have a VM accessible from the internet, with a fixed public IP. If you would like for those rules to persist across restarts, save them in /etc/iptables/rules.v4 .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b26dc80cd3cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackTheBox Offshore review]]></title>
            <link>https://robsware.medium.com/hackthebox-offshore-review-df5d17390922?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/df5d17390922</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[offshore]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Sat, 15 May 2021 19:30:36 GMT</pubDate>
            <atom:updated>2021-05-15T19:30:36.784Z</atom:updated>
            <content:encoded><![CDATA[<p>After significant struggle, I finally finished Offshore, a prolab offered by HackTheBox. I attempted this lab to improve my knowledge of AD, improve my pivoting skills and practice using a C2. I have achieved all the goals I set for myself and more. For the C2, I picked metasploit and it has been a huge time saver after I got used to it. The lab took me about 6 weeks to finish with a full time job, but I’ve done nothing but work and do Offshore for those 6 weeks. My knowledge before attempting offshore was the CRTP certification from Pentester Academy and about a year of web focused pentesting work experience. I had close to no practical experience in pentesting an internal network outside of the OSCP. I paid for offshore out of my own pocket.</p><p><strong>The Premise</strong></p><p>You are a super secret agent tasked with breaching into a secure offshore bank and exposing their money laundering practices. The bank has acquired a number of smaller companies and plugged them into their main network as different domains. I like it when CTFs provide a story and hacking into a bank is a pretty good one. Also gives you an idea of the potential layout and security pitfalls of the company.</p><p><strong>The Lab</strong></p><p>The lab contains 21 machines and 38 flags spread across 4 domains. You will have to pivot at various points. This can occasionally get a bit ridiculous, like being 4 pivots deep and with 3 nested RDP sessions praying that your tools still work, but for the most part is manageable if you do some proper post exploitation. Every box has only one intended path.</p><p><strong>The Good</strong></p><p>For 90 pounds + 20 pounds/month after, you get a rather sizeable lab with a lot of content in it. The AD related content is good to very good. As a reference, I was able to use my CRTP knowledge as a crutch to get me as far as to the third domain. Once there I had to do some extra research and progress slowed down. Purely for learning and practicing purposes, the lab is good value for the money as long as you don’t go for longer than 5–6 months.</p><p>You will get to play with bloodhound a lot, deepen your knowledge of kerberos attack vectors, ACL abuse, pass the hash, DCSync and other AD related attack vectors, as well as a few other challenges that will test your scripting ability.</p><p><strong>The Bad</strong></p><p>The infamous shared lab experience. You will often encounter other players in the lab, especially until DC03. At peak hours, the lab can slow down considerably. A single box serves as an early pivot to a large part of the lab and can only be accessed via RDP. Expect your shells to drop a lot. Also expect players to leave solutions behind, to change passwords for boxes and to leave some boxes in an unsolvable state until a reset is requested. This can all be immensely frustrating.</p><p>Some side quests are also not quite up to par in terms of their design and can end up being frustrating and immensely time consuming. Do not hesitate to ask for sanity checks from the community!</p><p><strong>The Great</strong></p><p>Ippsec’s box is a lot of fun and felt like a really well paced challenge — although it should be worth way more points. Aside from the lab, the people I got to meet and interact along the way were incredible and I will be forever thankful for their patience. This is an instance of the whole being greater than the sum of its parts. The people made this experience great, as they were my teachers and helped when I got stuck, and all for free. Don’t be afraid to look like a fool and ask questions on the discord channel. Often enough I found the solution while trying to word a question.</p><p><strong>Prerequisites</strong></p><p>The Offshore Path from hackthebox is a good intro. Also use ippsec.rocks to check other AD related boxes from HTB. CRTP knowledge will also get you reasonably far. If you’re not familiar with the HTB discord, also consider lurking in the offshore channel for a bit.</p><p><strong>Conclusion</strong></p><p>Offshore can be a very enjoyable experience if you purely focus on the learning aspect and not on the certificate itself, earning it a 4.5/5. It also works as a bridge between something like CRTP, and something more difficult such as OSEP or CRTE. The overall lab track needs some polish and redesign around some of the pivots and side challenges, but getting to practice in a 15+ boxes lab environment for $120 is a really good deal if you can avoid peak times. A lukewarm recommendation if you want to go for the full cert, which I’d personally rate as more of a 3.5/5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aODCYKdwMRN5kG5y" /></figure><p>Thanks for reading. If you’ve enjoyed this review, be sure to check out some extra points here: <a href="https://robsware.github.io/rants/offshore#extra">https://robsware.github.io/rants/offshore#extra</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df5d17390922" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A week with GPT3]]></title>
            <link>https://robsware.medium.com/a-week-with-gpt3-e8fd6f0aaaeb?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8fd6f0aaaeb</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[discord]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[gpt-3]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Sun, 27 Dec 2020 21:09:09 GMT</pubDate>
            <atom:updated>2021-01-04T12:24:58.584Z</atom:updated>
            <content:encoded><![CDATA[<h3>A week with GPT3 — Making a Discord chatbot</h3><p>On the 19th of December, I woke up bleary eyed on a Saturday after another late night of doing CTFs and reached for my phone to check the time, expecting a lazy weekend ahead to cool down and I noticed an email from OpenAI. Suffice to say that woke me faster than any amount of binge drinking Monster energy drinks would. The email just said I now have a trial access to GPT3, either through March or until I hit my quota, whichever comes first. So I jumped right out of bed and to my PC to read the docs.</p><p>Extra bits available on my website, <a href="https://robsware.github.io/experiments/GPT3.html">https://robsware.github.io/experiments/GPT3.html</a></p><p><strong>The Project — Discord Technical Helper</strong></p><p>I have a private discord server for a few friends to talk about ideas, current events and projects together. I’ve already made a chatbot previously (writeup coming before the heat death of the universe) that was pretty successful and also a good avenue to practice my javascript. With access to GPT3, I figured a chatbot designed to assist in our technical tasks would be a great project. While we’re not all programmers, all of us work in a STEM related field.</p><p>GPT3 works based on prompts. You provide a prompt, set the stop sequences, and submit it via an API call to get a generated response back. There are a few parameters to tweak, but the only real learning curve is figuring out how to use the stop sequences.</p><p>Enter November, or 11 for short. Named so because I made the first commit on this project in November. OpenAI has an example for a chatbot with a personality, so I decided to add one too and wrote the prompt in an attempt to create a brainy and smug android.</p><p>Since the discord.py functions are quite strict, I made a function that would send the Discord message to GPT 3 together with the prompt and import it into the main bot code as a function called ask().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*TCC-qalZYdUa6ScIMtLdew.png" /></figure><p>Main code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*s4nw3sUQ2VndBMKSLgj5sA.png" /></figure><p>Let’s give it a whirl:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/0*ofo_IjwZpGcFV7RB" /></figure><p>Wonderful. Time for some field testing. I’ve asked my friends to ask questions about something they’re knowledgeable about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/0*5rmgSJrfsHbct9Ls" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*ClEhcimgMmWPG27B" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/0*ab2n_CbQmGfOIxdU" /></figure><p>More examples on my <a href="https://robsware.github.io/experiments/GPT3.html">website</a>.</p><p>Pretty impressive, isn’t it?</p><p><strong>The Good — Impressive results</strong></p><p>Even with a fairly short prompt, the results were really impressive. The responses were articulate and had a twinge of personality added to them. GPT3 proved to be knowledgeable across all fields that we probed it for, even being snarky when we made typos or sent the message before we finished writing it. It was also incredibly fast, most responses taking less than 1 second to be processed and sent back even over Discord.</p><p>The real magic came from those little personality touches. The occasional snarky response or burn over a typo got us laughing, and some of its replies were so insightful that for a second we forgot we were talking to an API, instilling a sense of somber.</p><p>The trial is also reasonably generous, with 300k tokens being enough to get a good idea about what you’re dealing with, although you can definitely burn through them surprisingly fast.</p><p><strong>The bad — It’s expensive</strong></p><p>While very flexible in terms of pricing, the fact that for every request you have to send the whole prompt can drive the cost up significantly. Our queries together with the prompt and response were around 500 tokens, and while using the “best of” parameter and the davinci engine, the cost would be somewhere between 3 and 5 cents per question. Not a lot at first glance, but 20–30 questions can get you to a dollar which still isn’t a huge number, but it adds up. A dollar per day is roughly 30 dollars per month. Not a huge sum, but consider all the other things you could get for less than 30 dollars. Your own domain, a HackTheBox sub and a Netflix sub among others. The flexible per use pricing is great, it allows someone like me to run the chatbot for 20–30 dollars a month without needing to go for the 100 dollar option that offers about 2 million tokens. You can also downgrade the quality of the responses to cut down the price. The flexibility is there and it’s good. The issue is that you can still burn through tokens prohibitively fast during initial testing, as even requests using the playground count towards your cap.</p><p>Being an invite only program, there’s not a lot of documentation available on the web. OpenAI has some examples on their website, but it might take you a moment to get your head around it. Also, some of the responses were cherry picked. While about 90% of the responses were good to great, 10% were complete nonsense.</p><p><strong>The Great — It just works</strong></p><p>Once you figure out how the prompt system works and plug it into something else, it just works and with great results.The responses themselves involve 0 coding and anyone can start playing around with it regardless of how much experience they have.</p><p>OpenAI’s website automatically loads your API key in their documentation, while also providing great guidelines and examples. The playground prompts can be exported as Python code or curl requests, making integration really painless. You can quite literally go from 0 to a working prototype in a matter of hours and that’s remarkable. And best of it all, you don’t have to spend time training anything. The prompt that gets submitted is the training, so keeping the dataset intact is easy.</p><p><strong>Upgrades people, upgrades</strong></p><p>The main complaint from the entitled server users was the lack of persistence. Given how the prompt system worked, GPT3 would consider each query in a vacuum. People demanded persistence and I looked for a way to do it that wouldn’t blow through my remaining tokens.</p><p>So I decided I’d use a cache system. Once someone interacted with 11, a cache of the dialogue would start being built and sent alongside the prompt and the query. This allowed 11 to discuss the same topic in depth and appear more human. The real issue came from integrating this system. Since the discord.py library is very strict with what parameters its functions can accept, I had to resort to using global variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*Z1dGZGAysKRoh4Tfzaqy1w.png" /></figure><p>A new problem came up now, namely token usage. Given that traffic was rather heavy, the cache would quickly balloon in size and end up burning through a ton of tokens. So I decided to implement a timer. If you’d stop interacting with 11 for more than 2 hours, the cache would get emptied. A generous timeline, but I figured it’d be enough to keep a conversation going and account for lulls in it. To implement this, I had to use a timer. Given the nature of the discord.py library, it had to be asynchronous, so I decided to use the elegant solution and use multi threading. First define a time function to use a new thread with the threading.Timer function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*ROqliBK0-YlZJJOrziOh8A.png" /></figure><p>Next, simply call it after every query:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*KSagJ6xj1kY9VLrRuhClOw.png" /></figure><p>Done and done. The AI is now ready to roll. Let’s test it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*59Oi2SFu4sY9Kzk8" /></figure><p>It works! I wonder what in depth conversations will users have with it now tha-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*6RmfQa2mU-a6n7RS" /></figure><p>Well, this is unfortunate. Checking my quota usage on OpenAI, it reveals that I’ve used almost all of it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/0*lE2AY_0thmLznz1G" /></figure><p>I won’t lie, it was a real bummer. I had more features in mind, such as it being able to differentiate between users. I also tested some other ideas in the playground, such as static code analysis and sentiment analysis and I was planning to integrate them into some other projects. Unfortunately, I’ve had to put a stop to it for the foreseeable future.</p><p><strong>Conclusion — It’s solid</strong></p><p>Much like me during university, GPT3 may appear extremely intelligent but deeper probing reveals how mindless it really is. It is still an extraordinary achievement, and with adequate tweaking it can have some incredible results. It’s user friendly and very fast to prototype and “train”. It won’t replace programmers anytime soon, but I can certainly see Elon Musk’s point that AI can augment people’s work instead of replacing it. You can definitely use OpenAI’s GTP3 to automate away dreary tasks and quickly too. It’s not general artificial intelligence, but it has certain moments when it makes you forget it’s just a bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*ld-NFDzfYfoU-Fjo" /></figure><p>Downsides aside, it’s an amazing step towards Artificial General Intelligence, suddenly increasing the feeling of urgency in the need to talk about AI ethics. OpenAI have knocked it out of the park by making it affordable for small scale developers and easy to use to companies with deep pockets and I think we’re gonna see some really neat projects as more and more people are granted access to the API. At the end of this week, I only wish I had more tokens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8fd6f0aaaeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The OWSP experience: #TryAgain]]></title>
            <link>https://robsware.medium.com/the-owsp-experience-tryagain-57b8a32b219a?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/57b8a32b219a</guid>
            <category><![CDATA[oswp]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[wireless]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Tue, 08 Dec 2020 20:00:50 GMT</pubDate>
            <atom:updated>2021-01-26T12:45:08.415Z</atom:updated>
            <content:encoded><![CDATA[<h3>OWSP Review - #TryAgain</h3><p>It’s been almost 1 month since I attempted and passed my OSWP. Here are my thoughts about the famous “meme” certification.</p><h3>The Good — The Information</h3><p>As someone with only a vague knowledge of how wireless communication works, the course was extremely informative in explaining and detailing how things work and the history of wireless communication. If I were to judge the course as an informative/historical book, it would be a great book. Unfortunately, things start to fall apart when it gets to the practical part. The self built lab is a double edged sword. On one hand, I loved not feeling the time pressure of the regular OffSec labs and being able to take my time. Setting it up and pulling all the power and ethernet cables around made feel like an old school sysadmin. On the other hand…</p><h3>The Bad — The Lab</h3><p>The suggested hardware for the lab is ancient and you’ll really struggle to find it. If you don’t live in a place with a large second hand market, you might be entirely out of luck, like I was. I asked around if people had any old router that supporter WEP and borrowed a DIR 300 from a friend. As for WiFi NIC, I used a tp-link tl-wn722n v3 from a previous project. With the spare ethernet cables I had lying around, I was able to set up my lab without spending any money. OffSec suggests using their backtrack image, but I couldn’t get it to recognize or install my WiFi NIC drivers. I didn’t really have the hardware available to just install it on a new laptop, so after a lot of frustration and headscratching I ended up installing kali on a rasPi and connecting to it via SSH. I figured this would match the exam environment quite nicely. Most of the tools used in the exercises work on rasPi kali, and the ones that don’t aren’t really relevant.</p><p>The second bad part is the content. It is <strong>old.</strong> Very old. I’ve personally never seen a WEP network in my entire life, and I’m 26 for the record. I couldn’t even get my router into all the WEP configs the lab described. So the lab experience was half lived at best.</p><h3>The Great — Everything you need</h3><p>This is probably the only OffSec certification that teaches you everything you need to pass the exam, so that’s convenient. If you just really focus on the exercises, you should be in great shape for the exam. Setting up the lab took me about a week, and it took me another 2 weeks to go through the videos and the practice labs.</p><h3>The Exam</h3><p>The exam takes 4 hours. Given my luck, all the lab exercises that I couldn’t set up were on my exam. Regardless, after going back to my notes, I was able to complete the exam in under 2 hours so I used the remaining time to have lunch and go over the exercises again and take proper screenshots. One peculiar thing about the exam is that things might not… work. Even if you did everything right, it might not work on first attempt. Or second attempt. Third attempt usually does it. So all I can say is: double check your commands and.. Try Again. Inconvenient and can be a cause of lots of unwanted stress.</p><h3>Final Thoughts</h3><p>As a disclaimer, my employer paid for the exam. I originally only planned to get my CRTP during 2020, but I was able to pass with just one month of lab time and had some training funds left over. On a whim I decided to get my OSWP after a coworker got his recently too. I regret the headaches I got while trying to get Backtrack and some of the labs exercises to work, but overall I feel I learned some very crucial concepts about WiFi. I’m not quite sure I’d recommend the course, it is a tad expensive for what it is and it is quite outdated. You still get the OffSec brand quality though which evens the offer a bit. If you don’t know much about WiFi and have some cash to burn, then consider it, it’s not a major time investment and you’ll learn some cool stuff. Otherwise, prioritize other certifications. As an alternative, I head good things about the WiFi course on Pentester Academy, although I personally haven’t attempted it. <a href="https://www.pentesteracademy.com/course?id=9">https://www.pentesteracademy.com/course?id=9</a> WiFi hasn’t really changed that much over the years. I wouldn’t say that OSWP prepared me for a WiFi engagement, but it did provide a foundation solid enough so that I could build my own toolkit and methodology. Unfortunately, most Wifi assessments are capturing the WPA2 handshakes, tossing them into hashcat and praying for the best. I’d like to see an updated version cover stuff like BlueTooth and Zigbee, more focused on IoT communications, but right now I can only hope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HiRLelbiD3cZlgyykIUtOA.png" /></figure><p>This article can also be found on my personal website, <a href="https://robsware.github.io/rants/oswp.html">https://robsware.github.io/rants/oswp.html</a></p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57b8a32b219a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to safely scan your network for the Zerologon Vulnerability]]></title>
            <link>https://robsware.medium.com/how-to-safely-scan-your-network-for-the-zerologon-vulnerability-bcf526351066?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcf526351066</guid>
            <category><![CDATA[domain-controller]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[audit]]></category>
            <category><![CDATA[zerologon]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Mon, 12 Oct 2020 15:25:54 GMT</pubDate>
            <atom:updated>2020-10-12T15:44:25.161Z</atom:updated>
            <content:encoded><![CDATA[<p>By now we’re all hopefully familiar with the Zerologon vulnerability, and its potentially disastrous impact. If not, there are many websites that go in depth about the vulnerability, but the gist of it is that it allows a hacker to take control of any domain controller (DC), including the root DC, by changing or removing the password for a service account on the controller. From there on it becomes trivial to cause a mass denial of service in the network or simply take over all its assets. It has been rated as a Critical 10/10 CVE, about the worst it can get: <a href="https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1472">https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1472</a></p><p>Recently I’ve had the opportunity to flex my blue team skills a bit and do a scan across a network with hundreds of DCs for auditing purposes. We’ll use a bit of powershell magic, some python and a publicly available Zerologon PoC. We’ll be running this from a generic domain Windows box. This scan <strong>will not cause any kind of damage or downtime</strong>.</p><p><strong>Step 1 — Collect all the DCs:</strong></p><p>In a powershell session, import the active directory module and run the following command:</p><pre>$allDCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ }</pre><p>If you don’t have the active directory module installed, you can install it from the Remote Server Administration Tools here:</p><p><a href="https://www.microsoft.com/en-us/download/details.aspx?id=45520">https://www.microsoft.com/en-us/download/details.aspx?id=45520</a></p><p>This will collect all the DCs on the network with all their property details. Since the PoC we’re using only needs the hostname and the IP, we can filter for those and save them to a file:</p><pre>echo $allDCs | select -Property Name, IPv4Address | Out-File -FilePath .\DCs.txt</pre><p><strong>Step 2 — The PoC:</strong></p><p>I’ve decided to use this PoC as it’s already in python and I could actually read what it does. It’s a bit library heavy though: <a href="https://github.com/SecuraBV/CVE-2020-1472">https://github.com/SecuraBV/CVE-2020-1472</a></p><p>Git clone it to your directory, and import all the required libraries:</p><pre>pip install -r requirements.txt</pre><p>In my case it did not get flagged up by the antivirus.</p><p><strong>Step 3 — The scan:</strong></p><p>Let’s write a simple loop that will take input from our DC list, run the PoC against it and log the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*OMVwYT2Tqn0IKA6w75jjaQ.png" /></figure><p>The code can be found here:</p><p><a href="https://gist.github.com/robsware/d5e4844115fc802fd6f833fa021aca8d">https://gist.github.com/robsware/d5e4844115fc802fd6f833fa021aca8d</a></p><p>Now you wait. It takes about 5–15 minutes/DC, so in my case it took about 3 days to scan the entire network.</p><p><strong>Step 4 — The results:</strong></p><p>Once the python script finished running, you can grep for the DCs where the attack succeeded:</p><pre>Select-String -path .\log.txt -pattern “Success! DC can be fully compromised by a Zerologon attack.” -Context 3 | Out-File VulnerableDCs.txt</pre><p>Depending on the number of vulnerable DCs you encountered, you might need to do some regex. In my case, all the DCs had 3 capital letters somewhere in the name so I used this:</p><pre>Select-String -path .\VulnerableDCs.txt -pattern ‘[A-Z]{3}’</pre><p>That’s it. Go and patch those DCs now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcf526351066" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A review of CRTP and the Attacking and Defending Active Directory Course]]></title>
            <link>https://robsware.medium.com/a-review-of-crtp-and-the-attacking-and-defending-active-directory-course-f66360a26a05?source=rss-641ed5141c27------2</link>
            <guid isPermaLink="false">https://medium.com/p/f66360a26a05</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[pentester-academy]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Rob]]></dc:creator>
            <pubDate>Sun, 20 Sep 2020 12:50:54 GMT</pubDate>
            <atom:updated>2021-04-20T13:02:01.282Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>A review of the </strong>Certified Red Team Professional (<strong>CRTP) and the Attacking and Defending Active Directory Course</strong></h3><h3><strong>Introduction</strong></h3><p>Quick question: What’s a technology that almost every company out there is using, which is often very dangerous and can lead to a complete compromise of company assets in case of breach? That’s right, it’s Active Directory. Unfortunately, there are not a lot of resources when it comes to attacking and defending Active Directory, and those that already exist have various drawbacks: HTB Pro Labs can be a bit pricey and the first boxes are a nightmare as everybody is swarming them and ruining the experience, PWK/OSCP just recently added an AD module to the syllabus but it is still rather expensive, and the stand alone HTB Boxes that involve AD usually do it in a superfluous way.</p><p>Enter the Red Team Labs from Pentester Academy, which seeks to fill this niche — <a href="https://www.pentesteracademy.com/redlabs.">https://www.pentesteracademy.com/redlabs.</a> About a week ago I attempted (and passed) my CRTP exam, the first in terms of difficulty in the series. I’ll review it with my (not) patented way of splitting it into 3 categories: The Good, The Bad and The Great. I’ll mention the exam and compare it to the OSCP at the end.</p><p><strong>The Good</strong></p><p>The course focuses entirely on AD and holds your hand throughout it. Comes with ample video content and a PDF that go through all 23 Learning Objectives. While the course will also cover brute forcing and other more complex attacks, the focus is on learning the methodology and being able to work efficiently from just powershell. Powershell tends to have the learning curve of a brick wall, but the course does a fantastic job of easing you into it and often offers alternative commands and ways to achieve your goals. Furthermore, a few videos and the last 100 slides or so of the PDF dedicated to AD Defense and Detection, making this course even more valuable for blue teamers.</p><p>You are granted a foothold box in a rather small network, already loaded with tools and with most of the FW and AV disabled. By following the Learning Objectives you will learn how to completely compromise the network and reach Forest admin through multiple paths. The syllabus is available here: <a href="https://www.pentesteracademy.com/course?id=47">https://www.pentesteracademy.com/course?id=47</a></p><p>If you’re coming from HTB, you’ll be pleased to know that the AD lab is a lot emptier, and often you won’t even notice other students. According to Bloodhound there were 7 other students with access to the lab at the same time as me but I’ve personally only noticed one active. The labs reset every night so in case you’ve screwed something up, you can just try again the next day. You can connect to the lab via VPN + RDP or via web based RDP. I chose the first since the web version didn’t scale very well with my 4k screen. Both US and EU based connection packs are available. I’ve used the EU one and had no latency issues.</p><p>The PDF is very comprehensive and constantly updated so you can safely rely on it. Overall, I’ve put in about 2–3 hours of study per day and 5–6 on a weekend day and I was able to watch all the videos and complete all the exercises twice over in about 3 weeks. Given that the lab is quite affordable, you can go for the 30 days option and dedicate some time to it. I was able to schedule my exam about 2 weeks after I finished the Learning Objectives.</p><p>For someone brand new to AD, the guided experience was very valuable. It’s way more difficult to practice and prepare AD Security since there is no VulnHub for AD and the other solutions have their drawbacks as mentioned before. From a technical point of view, the lab is fantastic.</p><p><strong>The Bad</strong></p><p>While <strong>none of these are a deal breaker</strong>, there are a few nitpicks that I have to make.</p><p>The video quality varies quite a bit, in both presentation and content. This is understandable given that we’re dealing with Microsoft and proprietary software, and shooting a new video for every update and change would be overkill. Fortunately, the videos mainly follow the PDF so you can rely on that instead. I’d advise against trying to follow along the videos as it can get a bit confusing and Nikhil can occasionally jump around quite a bit. You can safely watch the videos at 1.2x to 1.5x speed and just focus on understanding the concepts.</p><p>Another nitpick is that the last Learning Objective can often fizzle and end up with a bricked foothold box that you have to get fixed by contacting Lab Support. It’s a fairly complex attack with a lot of prerequisites, so in the end it’s not very relevant, so just focus on the video and PDF instead until you get it.</p><p>Last would be the scheduling aspect, which can be a bit cumbersome, but I have been informed that a solution for it will be rolled out in the very near future. I asked for a 9 AM UK time time slot and they were able to accommodate that request with no issues. Which brings me to my final point.</p><p><strong>The Great</strong></p><p>The customer service is absolutely incredible. They are very quick to reply, and were able to accommodate all my elaborate payment and invoice requirements. Whenever I broke something they’d be quick to fix it and they were extremely communicative in regards to the exam. A master class in customer service.</p><p>The affordable prices are also a nice addition :)</p><p><strong>The Exam</strong></p><p>I’ll refer to the OSCP as my main point of reference. Just like the OSCP, the CRTP exam is 24 hours long, but unlike the OSCP, you get 48 hours after to write the report. The exam involves 5 boxes and your foothold box, your goal being achieving code execution on all of them, although not necessarily as Administrator. The 5 boxes must be done in a sequential order and do not include your foodhold box, as I painfully had to learn.</p><p>In terms of difficulty, the first 2 boxes are the hardest and I’d say they are comparable to some OSCP boxes, but a bit easier since there won’t be that many rabbit holes. Perhaps not as difficult as a 20 pointer and not as easy as the 10 pointer, but somewhere in between. The exam is fair and designed to test your knowledge, not to torture you. Even then, do not underestimate it. It took me 7 hours to own my first box and then 2 more hours to own the entire network. If you get past the 2 first boxes, the others drastically drop in difficulty. There is no clear number of boxes that you need to own, the rumour is that you can get by with 3 boxes and a good lab report, but if you’ve compromised 3 boxes you can easily do the other 2 unless you somehow forget about them.</p><p>Unlike the OSCP, there is no clear Exam Report template you can follow. I’ve used the old reliable OffSec Sample report here:</p><p><a href="https://www.offensive-security.com/reports/penetration-testing-sample-report-2013.pdf">https://www.offensive-security.com/reports/penetration-testing-sample-report-2013.pdf</a></p><p>Kept the format but changed the content. Personally I struggled a bit more with the report than with the OSCP one as you have to provide a solid defense plan at the end of it and document all your tools.</p><p>Overall, the course somewhat covers everything you need in the exam. I would still recommend using the lab to experiment on your own. I would also advise getting very familiar with Boodhound and trying to come up with your own vectors. Some useful resources:</p><p><a href="https://adsecurity.org/">https://adsecurity.org/</a></p><p><a href="http://www.labofapenetrationtester.com/">Lab of a Penetration Tester</a></p><p><a href="https://www.harmj0y.net/blog/">https://www.harmj0y.net/blog/</a></p><p>Also consider stalking Nikhil on twitter, he posts a lot of a great stuff:</p><p><a href="https://twitter.com/nikhil_mitt">https://twitter.com/nikhil_mitt</a></p><p><strong>Conclusion</strong></p><p>I dove into this course with 0 knowledge of AD. I didn’t even know how to import a Powershell module. Now that I’m done and I can look back at it, I can tell I’ve come a long way but I’m not quite sure I’m ready to call myself a “Professional” yet. I can certainly find my way around an AD network now and I feel confident enough do some whitebox pentest engagements. Red teaming or anything more advanced would require substantially more training, most likely the CRTE, their next level AD lab. For now I’ll work on setting up my own AD lab and maybe hit some of the Pro Labs on HTB. I learned a lot from the CRTP and I think it’s a fantastic introductory course and exam for anyone interested in Active Directory Security, read teamers and blue teamers alike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*q3s28DfPBveQQBJcLZWtvw.png" /></figure><p>Thanks for reading.</p><p>I sporadically post things on twitter, check me out if you’d like <a href="https://twitter.com/robsware">@robsware</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f66360a26a05" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>