<?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 Tobias on Medium]]></title>
        <description><![CDATA[Stories by Tobias on Medium]]></description>
        <link>https://medium.com/@lordsaibat?source=rss-998681fbc212------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*yOk1ZBjYITT5ufvug_VqEg.jpeg</url>
            <title>Stories by Tobias on Medium</title>
            <link>https://medium.com/@lordsaibat?source=rss-998681fbc212------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 13:47:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lordsaibat/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[Year One: Offensive Security Engineer to Management (CISO/Deputy CISO)]]></title>
            <link>https://medium.com/@lordsaibat/year-one-offensive-security-engineer-to-management-ciso-deputy-ciso-2860828ad12f?source=rss-998681fbc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/2860828ad12f</guid>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ciso]]></category>
            <dc:creator><![CDATA[Tobias]]></dc:creator>
            <pubDate>Fri, 29 Oct 2021 15:58:58 GMT</pubDate>
            <atom:updated>2021-10-29T15:58:58.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Year One: Offensive Security Engineer to Management (CISO/Deputy CISO)</p><p>Background: For most of my career I have been in Pentesting, in the consulting aspect. I have been a PCI/FedRAMP assessor which involves reading and understanding these standards and explaining the findings to customers. I have also been part of an internal Risk assessment team, focusing on pentesting web applications and working with the developer in the company. I have also worked for a pentesting mill, which is a company whose only focus is to churn out as many pentests as possible. I have been the Director of Information Security/Deputy CISO for the last year.</p><p>Changing from being a very seasoned pentester to a deputy CISO has been challenging and rewarding. One of the first things I did was sit down with each VP and understand their portions of the business- what in their eyes would be bad if an outsider got hold of (like source code or customer data). I also reviewed previous pentest reports and performed a complete internal assessment. All this gave me a great idea of the current risk picture and areas that were not being looked at. Using skills I learned from consulting with thousands of companies in the past, I built relationships with other groups within the company to assign priority based on customer/regulatory compliance. It also helped to be able to demonstrate to these teams why these findings mattered, the actual exploit or business risk. This has so much impact when a team might not see the immediate need to fix something. One of the greatest things I learned this year was how to better help the company balance business against compliance/security. What that means is writing up why a finding is not as high as it was originally noted due to mitigation factors that were not taken into consideration. Other teams appreciate that you are also defending them from unnecessary or lower priority work. I look forward to keeping this momentum and am glad that security is being involved in more aspects of the business now.</p><p>Takeaways:</p><p>Management (CTO/CISO): <br>Look at seasoned pentesters. A seasoned pentester has done consulting, worked on an internal team, and individuals who help the business by working on projects. Invest in security and audit, security gets pulled into more areas of the business than you think. They work with your developers and engineers to ensure the company does not end up in the news. Your audit team is the reason you can make sales by ensuring you maintain standards of your customers&#39; trust. They enable sales by responding to RFP, Questionnaires, and reviewing contracts. If you don&#39;t have enough resources in these areas then you are risking taking on too much risk or worse, having a complete breach.</p><p>Pentesters: Try to keep expanding the areas you work in and learn quickly. Learn how to explain your technical findings in a way that matters to THAT business. Identify something that takes the company a lot of time and resources to do, see if you can automate some of those processes. Ask to start reading contracts and statements of works so you can understand the business side of the process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2860828ad12f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Self Service Cloud Resource deployment Portal]]></title>
            <link>https://medium.com/@lordsaibat/building-a-self-service-cloud-resource-deployment-portal-90d1933d597d?source=rss-998681fbc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/90d1933d597d</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Tobias]]></dc:creator>
            <pubDate>Wed, 25 Mar 2020 01:35:43 GMT</pubDate>
            <atom:updated>2020-03-25T01:35:43.095Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qa59M99ePQ5vf1S_qD790w.png" /></figure><h3>Introduction</h3><p>If you are a trainer of an IT based course or consistently spinning up the same infrastructure for a situations like in pentesting, this setup will help you.</p><p>“Anything that you do more than twice has to be automated”</p><ul><li><em>Adam Stone, CEO, D-Tools</em></li></ul><p>If you have created any type of lab environment or setup machines for an engagement then you know how long the process is. Some people/companies come up with run books with step by step directions to ensure the system is setup the same way each time but it is still a big tasking.</p><h3>Technology</h3><p>In this article I will introduce you to three open source technologies that can help you setup a self service portal.</p><p>The three technologies are:</p><ul><li>Rundeck (<a href="https://www.rundeck.com/open-source">https://www.rundeck.com/open-source</a>)</li><li>Terraform (<a href="https://www.terraform.io/">https://www.terraform.io/</a>)</li><li>Guacamole (<a href="https://guacamole.apache.org/">https://guacamole.apache.org/</a>) (<a href="https://github.com/boschkundendienst/guacamole-docker-compose">https://github.com/boschkundendienst/guacamole-docker-compose</a>)</li></ul><p>All systems are using ubuntu 18.04 Desktop as a base image.</p><h3>Setting up Rundeck</h3><p>Go to <a href="https://www.rundeck.com/open-source">https://www.rundeck.com/open-source</a> and click on the download link.</p><p>Click on,Download the rundeck community edition. You will want to select the Debian/Ubuntu install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*kBPF_P2vxkaWV5O6JepgJA.png" /></figure><p>In my case, I copied the link and did a wget on my ubuntu host to download the file there.</p><p><em>cd /tmp/;wget </em><a href="https://dl.bintray.com/rundeck/rundeck-deb/rundeck_3.2.4.20200318-1_all.deb"><em>https://dl.bintray.com/rundeck/rundeck-deb/rundeck_3.2.4.20200318-1_all.deb</em></a></p><p>On the ubuntu Rundeck host run the following commands:</p><p><em>sudo apt update &amp;&amp; sudo apt install openjdk-8-jdk-headless; sudo dpkg -i rundeck_3.2.4.20200318–1_all.deb</em></p><p>Then change to a root user via:</p><p><em>sudo su</em></p><p>There are two configuration files that need to be edited.</p><p>edit /etc/rundeck/framework.properties, changing localhost to the ip address of your system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*LP-_GmlRh2YGfm3RqIYXIg.png" /></figure><p>After editing that file, edit the /etc/rundeck/rundeck-config.properties, changing localhost to the ip address of the systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*o5RB39oD3X14q3yHcm73mQ.png" /></figure><p>Restart the service:</p><p><em>service rundeckd restart</em></p><p>After about 3–5 min, you should be able to open the website going to:</p><p>http://&lt;ip&gt;:4440</p><p>the default login is admin:admin</p><p>you can change that and manually add users by editing the /etc/rundeck/realm.properties</p><h3>Setting up Terraform</h3><p>Go to <a href="https://www.terraform.io/downloads.html">https://www.terraform.io/downloads.html</a> and click on Linux 64-bit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*wz6LAE894yoZcMZ6s4CrVQ.png" /></figure><p>In my case, I copied the link and did a wget on my ubuntu host to download the file there.</p><p><em>sudo apt install ssh -y;cd /tmp/;wget </em><a href="https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip"><em>https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip</em></a><em>;unzip terraform_0.12.24_linux_amd64.zip;sudo </em>cp terraform /usr/bin/</p><p>This command will download terraform to /tmp/, unzip it, and copy it to /usr/bin.</p><p>Setup two directories, one for your source and one for your deployment. In my case I named the account terraform, so the command would be:</p><p><em>mkdir /home/terraform/source;mkdir /home/terraform/deploy</em></p><p>Then git clone your infrastructure code into the /home/terraform/source directory. If you want to start with what I came up with for google cloud you can clone mine but you will of course need to change some things.</p><p><em>git clone </em><a href="https://github.com/lordsaibat/Rt-Google-Infra-Guacmole.git"><em>https://github.com/lordsaibat/Rt-Google-Infra-Guacmole.git</em></a></p><h3>Setting up Apache Guacamole</h3><p>This system will be running guacamole via docker containers. To use docker and docker-compose they need to be installed. Run the following commands to install docker and docker compose.</p><p><em>sudo apt update &amp;&amp; sudo apt install docker.io docker-compose -y</em></p><p>There is a good project that will setup guacamole via docker quick and easy. This project can be cloned to the system and setup via:</p><p><em>git clone </em><a href="https://github.com/boschkundendienst/guacamole-docker-compose;cd"><em>https://github.com/boschkundendienst/guacamole-docker-compose;cd</em></a><em> guacmole-docker-compose;sudo service docker start;sudo ./prepare.sh;sudo docker-compose up -d</em></p><p>Now all the pieces are setup and they just need to be wired together.</p><h3>Wiring up Rundeck to Terraform</h3><p>If you setup terraform on another system. A ssh key needs to be created in order to execute commands on that system. Splitting up the systems means that you can harden the deployment (terraform) server.</p><p>On the terraform server generate the ssh key.</p><p>cd ~;ssh-keygen -f terraform; cat terraform.pub &gt;&gt; ~/.ssh/authorized_keys</p><p>Go to the webpage for your rundeck setup (http://&lt;ip&gt;:4440)</p><p>The key needs to be added to rundeck in order to use it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*Aff365q3cdx194rUgtlN5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2BnUTEUjUYrkSWiEmv8uQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*wkqZw4TQ41CK4_DPmnzqTw.png" /></figure><p>We need to create a project in rundeck to run commands on external nodes.</p><p>Go to the main screen of rundeck and click on New Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpvA0MRAMftGOojf_SEsDQ.png" /></figure><p>For the project name, I used “Twitch-demo”, then click on Default Node Executor.</p><p>Use the drop down to select “openssh/executor”. Then select “privatekey” for Authentication and then click on SSH key storage path and select the key you saved earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b6WfwXU3uC_r8D8WLeytag.png" /></figure><p>After you create the project, you should be on the “Edit Nodes” page. If not, on the left menu click on Project Settings and the Edit Nodes..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*8xGp6eB9Lf6Mf572pS5n1w.png" /></figure><p>Click on “Add a new Node Source”. Select file, on the right side click on the drop down and select “resourcexml”. Enter a path in the file path, I am going with /home/terraform.xml. Then check off Generate, Include Server Node, Writeable. Click save, then save again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*v-1jyuugeXvdBj7yhNHksw.png" /></figure><p>If you get a FileNotFoundException, the file will have to be created on the rundeck server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*PP_1jWHg3hAY4bnNmfWvXQ.png" /></figure><p>To do that on the rundeck server.</p><p><em>sudo su; touch /home/terraform.xml; chown rundeck /home/terraform.xml; chgrp rundeck /home/terraform.xml</em></p><p>Now edit the file on rundeck webpage and just click save. You should get a different error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*KNGHiMqtqblpbAXdozJr9Q.png" /></figure><p>You can now click Edit, next to the Sources on the top bar and click on Modify.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*OBv__rL8-SleHjIjHHWRhw.png" /></figure><p>Use the following as a guideline to create a node. Change the username, IP, and ssh-key-storage-path to match what you setup previously.</p><p>&lt;?xml version=”1.0&quot; encoding=”UTF-8&quot;?&gt;<br>&lt;project&gt;<br> &lt;node name=”terraform-server”<br> username=”terraform”<br> hostname=”192.168.2.190&quot;<br> ssh-key-storage-path=”/keys/terraform-key”<br> /&gt;<br>&lt;/project&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*AGTurwiroBdKaStNfvOW1w.png" /></figure><p>Click on save. To confirm you setup everything you can click on “commands”. You then have filter the nodes and select “terraform-server”. You should see the results of whatever command you run on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiU0NBTZF_3ShHiRXRZFOQ.png" /></figure><p>Now we can create jobs in this project.Click on Jobs, Create New Job, Name the job “Deploy Google RT”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*an1BQ5z6tBVxue4RN5e9xg.png" /></figure><p>Then click on workflow, near the bottom you can add steps. These are commands ran on the terraform system. One gotcha is that if you need to run something out of a certain directory you need to chain your commands together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JiVrgoU-oOcv-0_FU5Tupw.png" /></figure><p>Click on Nodes at top bar and Select “Dispatch to Nodes”. This is similar to when you were testing the ssh connection. You will select the all Nodes, click Search, then in the matched nodes click terraform-server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*R52aqp5TSKQnYAcIkbEEBQ.png" /></figure><p>If you edited the terraform code to point to the correct project id, it should kick off and build everything.</p><p>If it did not end in success check the following:</p><ul><li>make sure you have correct permissions in google cloud for your service role</li><li>ensure that in complete_c2.tf is the google project id and not just the name.</li><li>ensure that the ip, port, and username, and password are correct for guacamole.</li></ul><h3>Wiring up Terraform to Guacmole</h3><p>Guacamole has an API that can be called to do tasks in it. Unfortunately, there is no terraform module to rely on. So I created three python scripts to help tie these two technologies. There are some limitations with the script but it could be modified if need be.</p><p>I plan on writing a guacmole terraform provider by the end of the year.</p><p>The three scripts are guac-auth.py, guac-new-host.py, guac-remove-host.py</p><p>guac-auth.py</p><p>Will login to guac and get an authentication token to make the rest of the calls.</p><p>guac-new-host.py</p><p>Will create the connection in guacamole and assign it to all users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ZAOgAgCOWJEW-4lo-icSA.png" /></figure><p>guac-remove-host.py</p><p>Will remove the host from guac on destroy.</p><h3>Final thoughts</h3><p>This article and steps should help you get red team infrastructure down as a quick deployment that is consistent and accurate every time.</p><p>Also don’t forget to add a new job to run terraform destroy.</p><p>Here is a quick picture for that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*Rhz3h85a12pXoB_VvCHQDA.png" /></figure><h3>Bonus</h3><p>You can also create self destroying infrastructure by adding an option to the job.</p><p>If you go back to jobs and go to the far right you can edit the job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ub33Mful-kZez2PxGXkbWA.png" /></figure><p>Click on “Add an option” and set it up like I have. You can add more days if need be by editing the list values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OyERmo51B1c2dY2FwXU4pA.png" /></figure><p>add an additional step to the workflow to add the destruction time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZ3UA1k27yrfrKQl8HX0BA.png" /></figure><p>Now your project will run terraform destroy in the amount of days you select.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hgjr2nC5LcXmMIMO2NHykw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90d1933d597d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WizardLabs — Panopticon Write up]]></title>
            <link>https://medium.com/@lordsaibat/wizardlabs-panopticon-write-up-54502b30c945?source=rss-998681fbc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/54502b30c945</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[wizardlabs]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[Tobias]]></dc:creator>
            <pubDate>Thu, 30 Jan 2020 01:30:25 GMT</pubDate>
            <atom:updated>2020-01-30T01:30:25.771Z</atom:updated>
            <content:encoded><![CDATA[<h3>WizardLabs — Panopticon Write up</h3><p>This is a write-up about the Panopticon box (retired) on WizardLabs ( <a href="https://labs.wizard-security.net/">https://labs.wizard-security.net/</a>). WizardLabs is a new Capture the flag hosting site. These lab sites help inspiring and current penetration testers practice on vulnerable systems.</p><h3>Scanning</h3><p>To start off we need to scan all the open ports on the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*ld0xNG0pXKd4ctNBOCSO6g.png" /></figure><h3>Enumeration</h3><p>Whenever I see a Samba port open, I gravitate towards it to see if there is an open share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3TuMCkZfsdfXrkb6wUreQ.png" /></figure><p>In order to download the file, I mounted the share and downloaded the file to my local system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Al7tphHYbJGbHsJ_dShQA.png" /></figure><p>There was old-site.zip that was being publicly shared. Backups usually have a great deal of information. Let’s see what is inside the zip file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*vGPpHd9hAD97stsIwPmfIw.png" /></figure><p>There were a lot of files, so using a code editor to find some sensitive information helps. I used Visual Studio Code to search through all the files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*z8QHT7M4XDTpEzcRegm5yw.png" /></figure><h3>Exploition</h3><p>In the config.php file, credentials to the database were discovered. Let’s see if the credentials were also used on any of the other services exposed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9tjOlvUKbevC5oUnoUplw.png" /></figure><p>We now have access to the system via SSH and should get the lay of the land.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*DDle8IX9CxNiZgpaOK5WAA.png" /></figure><h3>Post — Exploition</h3><p>The next step is looking for an opportunity for privileges escalation. Running Linenum ( <a href="https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh">https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh</a>) to identify any potential avenues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1QW85kQzxLdHEVQNlaWs6Q.png" /></figure><p>After looking through the results, no real opportunities that stood out. I then reviewed the user directories and found an interesting note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEUnb21DMvohfBejVRvAdA.png" /></figure><p>Also a message would keep displaying on the terminal indicating that new mail was received. The new mail combined with the note set the stage on a possible avenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*SWXGwg5zPAKpX4-4puM-oA.png" /></figure><p>I used a normal python reverse shell in the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*rE3PgQv-Td3VVbgV12hYrg.png" /></figure><p>Now the reverse shell needs to be setup to catch this shell when it gets executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6H-ngLiMdaoWRgTg3Ih3Aw.png" /></figure><p>With that, access to the root flag was possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZF-EzN4EXNiajIN1Euz2w.png" /></figure><p>Catch me on twitch on Tuesdays @8:30 PM.</p><p><a href="https://www.twitch.tv/lordsaibat">https://www.twitch.tv/lordsaibat</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54502b30c945" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WizardLabs — Dummy Write-up]]></title>
            <link>https://medium.com/@lordsaibat/wizardlabs-dummy-write-up-1ec797ae7d2?source=rss-998681fbc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ec797ae7d2</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[wizardlabs]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Tobias]]></dc:creator>
            <pubDate>Tue, 22 Oct 2019 15:01:51 GMT</pubDate>
            <atom:updated>2019-10-22T15:14:54.546Z</atom:updated>
            <content:encoded><![CDATA[<h3>WizardLabs — Dummy Write-up</h3><p>This is a write-up about the Dummy box (retired) on WizardLabs ( <a href="https://labs.wizard-security.net/">https://labs.wizard-security.net/</a>). WizardLabs is a new Capture the flag hosting site. These lab sites help inspiring and current penetration testers practice on vulnerable systems.</p><h3>Scanning</h3><p>To start off we need to scan all the open ports on the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*HeRJEWDxdnPo_VvygbWqvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*awNlZPk8c2Aq9bT7olbeIg.png" /></figure><p>Importing the nmap results into metasploit, this help organize the scan data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*4Bjz_2L_ybPBYEQmCRiq2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*oy4JGu2z-WYJ9YZt6Or75w.png" /></figure><p>Let’s review what our attack surface is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZeyYC5IdM5MsnNYN6Ql7rw.png" /></figure><p>After reviewing ports 135 and 445, the left over attack surface was icecast on port 8000.</p><p>Using metasploit, you can search for icecast exploits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*CmotiLjOnSzfN97AMTUfOg.png" /></figure><p>After putting all the required fields together to exploit the service and execute windows/meterpreter/reverse_tcp payload</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*EInetNvKrlRYykQvL9X4zg.png" /></figure><p>After gaining access to the system, it is good to check what level of access we have. In this case it is DUMMY\Admin</p><p>We drop to shell access to determine any other users on the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*9WsicVDkcd_6Yux45ehWxw.png" /></figure><p>With Admin access to the system you can access the user and root flags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/254/1*MQNR2f4nLr3uPqDdKnICCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/269/1*sOejnHv3im5P8N5-bcqzqQ.png" /></figure><p>Check out the video on youtube:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfU04kH_Lfqs%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfU04kH_Lfqs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfU04kH_Lfqs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a57d11da45c161688ea6f8c1039ca583/href">https://medium.com/media/a57d11da45c161688ea6f8c1039ca583/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ec797ae7d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking Mr. Robot’s Creator]]></title>
            <link>https://medium.com/@lordsaibat/hacking-mr-robots-creator-f10583a2d87d?source=rss-998681fbc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/f10583a2d87d</guid>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[mr-robot]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Tobias]]></dc:creator>
            <pubDate>Fri, 11 Oct 2019 19:13:47 GMT</pubDate>
            <atom:updated>2019-10-11T19:13:47.592Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a story about a responsible disclosure with Sam Esmail (the creator of Mr. Robot). Mr. Robot is a great show on USA about a young, anti-social computer programmer Elliot works as a cyber security engineer during the day, but at night he is a vigilante hacker.</p><p>The Mr. Robot show and Sam Esmail have been known to put Easter eggs in their site and code. So when Sam tweeted about his new site the hunt was on..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAGv4ENZNcumgq6Zv93EuQ.png" /></figure><p>I do pen-testing in my day to day job, so I started doing some normal recon on the site and scanned for any possible hidden files. One common mistakes that developers do is upload hidden files to the web server. These hidden files could be in directories that have . in front of them. In this case, the.git directory was uploaded to the server. The config file in the .git directory describes the github location it was downloaded from and other configuration options. Here was a config file found on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UEg1msqYf8aZsirLRn7zWQ.jpeg" /></figure><p>So what does it matter if a .git directory gets accidentally uploaded to a webserver? Depending on the developer or team, every commit to git is recorded. This would include all source code, passwords, or any other files that were commit in a historical format. To a pentester this is gold. It could include passwords to databases or the ability to identify any risky functions in the source code.</p><p>How does one pull all the files committed to git?</p><p>Gitdumper works great at this, you can download it here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzlsXlwe597xag7VGlOudw.png" /></figure><p>This seemed like it was one of those Easter eggs. I was not 100% sure, so I tried to reach out to them to verify if it was and if not give them a chance to fix the problem. This is ALWAYS the hard part of responsible disclosure. 1. Getting someone to respond to you and 2. Getting them to take the issue seriously.</p><p>Eventually I was able to get a hold of someone at Esmail corp through twitter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJ0C4ed45Ny0J-Z2DS-u2g.jpeg" /></figure><p>After some back and forth they locked down the .git directory, preventing anyone from gaining access to the directory.</p><p>So, that was the time I hacked Sam.. kind of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*i1VdhOEFxOAJxJHaLGW1uw.jpeg" /></figure><h3>Advice to developers</h3><p>When uploading code to you site, verify that you don’t accidentally upload hidden files. After you upload code to the site, review the files uploaded by listing files in the directory. This can be done using:</p><blockquote>ls -al</blockquote><p>That will list out all the files including hidden files and directories.</p><p>If you are using apache you could setup your .htaccess file to block access to sensitive files.</p><p>Here is a link to help get this started:</p><p><a href="https://www.opentechguides.com/how-to/article/apache/115/htaccess-file-dir-security.html">Using .htaccess to restrict access to Files and Directories</a></p><p>I hope everyone is enjoying Mr. Robot this last and final season. Thanks again to Sam Esmail and his group for listening to my concerns and handling it correctly.</p><h3>Advice to Bug hunter/Pentester’s</h3><p>Scan for sensitive directories using the “directory-list-2.3-medium.txt” in Kali but also include .git in there.</p><p><a href="https://github.com/internetwache/GitTools/blob/master/Dumper/gitdumper.sh">internetwache/GitTools</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f10583a2d87d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dark Side Ops: Malware Dev Review]]></title>
            <link>https://medium.com/@lordsaibat/dark-side-ops-malware-dev-review-14d1e7cda46e?source=rss-998681fbc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/14d1e7cda46e</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[dark-side-ops]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cobalt-strike]]></category>
            <category><![CDATA[review]]></category>
            <dc:creator><![CDATA[Tobias]]></dc:creator>
            <pubDate>Tue, 21 May 2019 01:51:41 GMT</pubDate>
            <atom:updated>2019-05-21T01:51:41.424Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://silentbreaksecurity.com/training/upcoming-training-schedule/">https://silentbreaksecurity.com/training/upcoming-training-schedule/</a></p><p><strong>Location: </strong>Columbia, MD</p><p><strong>Price: </strong>$2,000</p><p><strong># Days of Training: </strong>2 days (8 hours/day)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LROAMhCRFZ8iLF6imAIKJA.png" /><figcaption>Throwback Visual Studio Project</figcaption></figure><h3>Background</h3><p>The course is a walkthrough of building Throwback and Slingshot. This is the most up to date version from Silent Break Security github (<a href="https://github.com/silentbreaksec">https://github.com/silentbreaksec</a>). The version built in class has more features and introduces concepts in easy to digest modules that are then followed up by labs where that concept is demonstrated.</p><p>I took this class to supplement our operations based on Cobalt Strike (<a href="https://cobaltstrike.com/">https://cobaltstrike.com/</a>). As anyone who uses Cobalt Strike knows it is getting harder to get any compiled version of the exe or dll past even Windows defender. Unfortunately, there are no real resources that help with this problem. Raphael does provide some ideas in the way of artifact kit, but even with heavy modification it still gets caught.</p><h3>What is provided?</h3><ul><li>3 VMs, setup for Class:</li></ul><p>— Development Machine: Windows 10</p><p>— Target Machine: Windows 10</p><p>— Server Machine: Linux</p><ul><li>Manual for the class</li><li>Additional code for each of the labs</li><li>Slides presented during class</li></ul><h3>Topics covered in class</h3><ul><li>Throwback (this version is far more advanced than github repo)</li><li>Command &amp; Control</li><li>Staging</li><li>Weapons of Mass Initial Access</li><li>Persistent Threat</li><li>Toolkit Modularity</li><li>Slingshot</li><li>Mimikatz</li><li>Host-Evasion</li><li>PowerShell</li><li>Lateral Movement</li></ul><h3>Review of the class</h3><p>I really like the style of the class. The instructors talk and show a concept on the slides and then it is covered in the lab. Each lab is step by step but, with an explanation of what you are doing and why. Also some of the labs are setup to have the reader trip over some common mistakes to only help you fix them later. For example, during one of the labs new functionality was added to Throwback. The command issued on the server did not function correctly due to tasking code not being added to the server.</p><h3>Pros/Cons</h3><p><strong>Pros</strong></p><ul><li>The class is structured in a way that anyone with some programming experience will learn something.</li><li>The material is very robust (providing depth and breath) ensuring the reader is not only expanding on knowledge but understanding better some key concepts.</li></ul><p><strong>Cons</strong></p><ul><li>The VMs were custom built with no idea on what was installed on them. I personally don’t like this as I do not like an unknown environment. I would never recommend using a box that you did not built yourself on an engagement where you are accessing customer data. It would have been great to have a build script for the server at least.</li><li>Some of the labs are long and you need to finish them before you can move on to the next due to way the class is built. You are using the last lab to add more functionality to it.</li><li>No ability to take in an online setting. (This is most of these specialized classes)</li></ul><h3>Final Summary</h3><p>I highly recommend this class for anyone using any toolkit like Cobalt Strike and does not want to rely on any closed source kit. This class will help you start writing a custom malware. The techniques demonstrated in class are beneficial to any penetration tester who is looking to up their game. Also to put it in perspective Cobalt Strike has a $3,500 price tag and the class was $2,000. Cobalt Strike payloads are caught by AV and will require you to spend time on development to overcome these obstacles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14d1e7cda46e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cracking Passwords with Terraform and AWS]]></title>
            <link>https://medium.com/@lordsaibat/cracking-passwords-with-terraform-and-aws-3685cc918721?source=rss-998681fbc212------2</link>
            <guid isPermaLink="false">https://medium.com/p/3685cc918721</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[password-cracking]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Tobias]]></dc:creator>
            <pubDate>Wed, 20 Mar 2019 19:07:44 GMT</pubDate>
            <atom:updated>2019-03-20T19:07:44.740Z</atom:updated>
            <content:encoded><![CDATA[<p>At some point during a penetration testing engagement, the assessor will gain access to hashes. Hashes are passwords with a one way function performed on the string value of the password. For example, the MD5 value of “password” is 5f4dcc3b5aa765d61d8327deb882cf99. Depending on the rules of engagement for the penetration test, password cracking is warranted and needed in order to gain additional footholds. Over time it was discovered that graphic cards could help perform these task at an accelerated speed due to their ability to do complex math problems with the GPU. When it was discovered that graphic cards could also help mine bitcoin, it became almost impossible to get a graphics card without being over charged. AWS eventually integrated EC2 instances with GPU attached. This now allows a user to perform password cracking on AWS.</p><p>Based on current AWS on-demand pricing (3/20/19):</p><ul><li>p3.16xlarge cost Only $24.48 per Hour</li></ul><p>This could be an expensive bill, it you forgot it was running.That is where automation and Terraform comes into play. Terraform can quickly automate this process. This project is to help with the process of cracking passwords.</p><p>I’ve broken up the project into two parts. Part 1 is if you do not have an S3 bucket already. This will create an S3 bucket, upload your files, create an IAM user and group, and generate a credential to use in the EC2 instance.</p><p>Part 2, requires access to the S3 bucket to read in the wordlist for hashcat. The EC2 instance will do all the work and cat out the results.</p><p>Well enough talk, here is the repo:</p><p><a href="https://github.com/lordsaibat/Cloud_crack">https://github.com/lordsaibat/Cloud_crack</a></p><p>Got improvements? Submit a pull.</p><p>Happy password cracking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3685cc918721" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>