<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>ctf — drsh0&#39;s llog</title>
    <link>https://drsh0.writeas.com/tag:ctf</link>
    <description>my learning log; notes on cybersec activities, ctfs, and ill-equipped cyber adventures. Consume responsibly.</description>
    <pubDate>Tue, 17 Nov 2026 00:29:51 +0000</pubDate>
    <image>
      <url>https://i.snap.as/v7Oo2ci6.png</url>
      <title>ctf — drsh0&#39;s llog</title>
      <link>https://drsh0.writeas.com/tag:ctf</link>
    </image>
    <item>
      <title>OSINT CTF Strategy and Tactics</title>
      <link>https://drsh0.writeas.com/osint-ctf-strategy-and-tactics-notes?pk_campaign=rss-feed</link>
      <description>Sharing some notes I recorded during @AletheDenis&#39;&#xA;OSINT CTF Strategy and Tactics II event back in September 2020. I hope it helps!&#xA;&#xA;It covers some tips, strategies, and common mistakes to avoid in order to get the most out of OSINT CTFs.&#xA;&#xA;#osint #ctf</description>
      <content:encoded><![CDATA[<p>Sharing some notes I recorded during <a href="https://twitter.com/AletheDenis" rel="nofollow ugc">@AletheDenis</a>&#39;
<a href="https://www.eventbrite.com/e/osint-ctf-strategy-and-tactics-ii-tickets-119972459857" rel="nofollow ugc">OSINT CTF Strategy and Tactics II</a> event back in September 2020. I hope it helps!</p>

<p>It covers some tips, strategies, and common mistakes to avoid in order to get the most out of OSINT CTFs.</p>

<p><a href="https://drsh0.writeas.com/tag:osint" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">osint</span></a> <a href="https://drsh0.writeas.com/tag:ctf" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">ctf</span></a>
</p>

<h2 id="tips">Tips</h2>
<ol><li>Zoom! Enhance</li>
<li>There is no substitution for scrolling
<ul><li>scroll geolocated posts on IG</li>
<li>scroll profile posts+tweets</li></ul></li>
<li>Screen cap or it didn&#39;t happen.</li>
<li>Link usernames to other profiles.</li>
<li>Family trees have handy information</li></ol>

<h2 id="takeaways">Takeaways</h2>

<h3 id="collection">Collection</h3>
<ul><li>Annotations are fine on screenshots for proof. However, evaluate the time it will take vs being able to concisely provide links and information using text.</li></ul>

<h3 id="tools">Tools</h3>
<ul><li>Tools aren&#39;t really required to do good OSINT work. It ends up just complicating your workflow. Focus on good analysis.</li></ul>

<h3 id="strategy">Strategy</h3>
<ul><li><p>You should be able to submit a few hundred points in the first 30 mins. If you can&#39;t the subject may not have enough information to analyse.</p></li>

<li><p>Sometimes you cannot submit the same link twice. To get around this, submit a link to the specific post or information. This can sometimes be done via permalinks and via embed/share options.</p></li>

<li><p>Aim for 150-200 points in the first 20 minutes. This creates a good feedback loop for your brain to keep looking.</p></li>

<li><p>Low point flags must be submitted — STACK and LAYER until you hit a wall. Rinse and repeat.</p></li>

<li><p><strong>Aim:</strong> decrease <code>Time:Points</code> ratio.</p></li></ul>

<h3 id="submissions">Submissions</h3>
<ul><li><p>Build your case with low point flags e.g. facebook profile —&gt; confirmed. Utilise this to build bigger flags and mention that “since the fb account was confirmed previously...”</p></li>

<li><p>You won&#39;t always have the same judge. Therefore, always substantiate – especially towards the end.</p></li>

<li><p>Create rapport with your judge where possible. E.g. a group chat with the judge and your team in Slack (DM).</p></li></ul>

<h4 id="submission-example">Submission Example</h4>

<p><em>e.g. sister&#39;s fb page</em></p>
<ul><li><strong>Screenshot</strong> of information [the flag]</li>
<li><strong>Proof</strong> = public link to sister&#39;s fb page</li>
<li><strong>Relevance</strong> = “there could potentially be comments or interactions on this facebook page relating to the subject”</li>
<li><strong>Substantiation / Evidence</strong> = Include a link to the specific page and write how this is showing the above e.g. sister is talking about the brother 2 weeks before they disappeared.</li></ul>

<h3 id="analysis">Analysis</h3>
<ul><li>Make sure you are able to get foundational flags correct and verified. All future and potentially larger flags will depend on this foundation.</li></ul>
]]></content:encoded>
      <guid>https://drsh0.writeas.com/osint-ctf-strategy-and-tactics-notes</guid>
      <pubDate>Sun, 06 Dec 2020 06:47:10 +0000</pubDate>
    </item>
    <item>
      <title>SANS Holiday Hack Challenge 2020</title>
      <link>https://drsh0.writeas.com/sans-holiday-hack-challenge-2020?pk_campaign=rss-feed</link>
      <description>https://holidayhackchallenge.com/2020/&#xA;&#xA;Updating this as soon as the event starts in mid-December 2020 🎄</description>
      <content:encoded><![CDATA[<p><a href="https://holidayhackchallenge.com/2020/" rel="nofollow ugc">https://holidayhackchallenge.com/2020/</a></p>

<p>Updating this as soon as the event starts in mid-December 2020 🎄
</p>

<h3 id="resources">Resources</h3>

<p><a href="https://drive.google.com/file/d/1hXGELvPjCdqeFXIyP7m-FDFRLHpzA-vc/view?usp=sharing" rel="nofollow ugc">cheatsheet</a></p>

<p><a href="https://drsh0.writeas.com/tag:sans" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">sans</span></a> <a href="https://drsh0.writeas.com/tag:holidayhack" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">holidayhack</span></a> <a href="https://drsh0.writeas.com/tag:ctf" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">ctf</span></a> <a href="https://drsh0.writeas.com/tag:kringlecon" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">kringlecon</span></a></p>
]]></content:encoded>
      <guid>https://drsh0.writeas.com/sans-holiday-hack-challenge-2020</guid>
      <pubDate>Tue, 01 Dec 2020 02:24:41 +0000</pubDate>
    </item>
    <item>
      <title>SANS KringleCon / Holiday Hack 2019</title>
      <link>https://drsh0.writeas.com/sans-kringlecon-holiday-hack-2019?pk_campaign=rss-feed</link>
      <description>Talks John Strand, Keynote: A Hunting We Must Go Interval, con time, data size. Holes in an org are just as important to detect as threat...</description>
      <content:encoded><![CDATA[<h2 id="talks"><code>Talks</code></h2>

<h3 id="john-strand-keynote-a-hunting-we-must-go">John Strand, Keynote: A Hunting We Must Go</h3>
<ul><li>Interval, con time, data size.</li>
<li>Holes in an org are just as important to detect as threat actors.</li>
<li>Deception time + Reaction time &lt; Time to perform attack.</li></ul>

<h3 id="katie-knowles-how-to-holiday-hack-it-tips-for-crushing-ctfs-pwning-pentests">Katie Knowles, How to (Holiday) Hack It: Tips for Crushing CTFs &amp; Pwning Pentests</h3>
<ul><li>Recon –&gt; ID Vuln –&gt; ID Exploit –&gt; Test –&gt; New Info Integrate</li></ul>

<p><strong>1. Understanding the Problem</strong></p>
<ul><li>Drawing is a useful way to visualise a problem e.g.:</li></ul>

<p><img src="https://i.snap.as/kAC3wJ7.png" width="400"/></p>

<p><em>credit: Katie Knowles</em></p>

<p><strong>2. Plan</strong></p>
<ul><li>Google things; look for other things that are similar.</li>
<li>Having a list of things that we&#39;ve done and then ensuring all bases are covered in each step e.g. all ports checked, UDP as well?</li></ul>

<p><strong>3. Carry out the plan</strong></p>

<p><strong>4. Looking Back</strong></p>
<ul><li>Record your steps, useful links, wiki.</li></ul>

<h2 id="snow-santa-s-naughty-list-holiday-themed-social-engineering">Snow, Santa’s Naughty List: Holiday Themed Social Engineering</h2>

<h2 id="tools">Tools</h2>
<ul><li><code>rita</code> – tool to check for beacons</li>
<li><a href="https://www.zeek.org/" rel="nofollow ugc">Zeek</a></li>
<li><code>Url Crazy</code> – typosquatting <a href="https://drsh0.writeas.com/tag:socialengineering" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">socialengineering</span></a></li></ul>

<p><a href="https://drsh0.writeas.com/tag:CTF" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">CTF</span></a> <a href="https://drsh0.writeas.com/tag:SANS" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">SANS</span></a> <a href="https://drsh0.writeas.com/tag:HolidayHack" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">HolidayHack</span></a> <a href="https://drsh0.writeas.com/tag:KringleCon2019" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">KringleCon2019</span></a></p>
]]></content:encoded>
      <guid>https://drsh0.writeas.com/sans-kringlecon-holiday-hack-2019</guid>
      <pubDate>Sun, 15 Dec 2019 03:21:58 +0000</pubDate>
    </item>
    <item>
      <title>TryHackMe | Advent of Cyber 2019</title>
      <link>https://drsh0.writeas.com/tryhackme-advent-of-cyber-2019?pk_campaign=rss-feed</link>
      <description>Link: https://tryhackme.com/room/25daysofchristmas Get started with Cyber Security in 25 Days – Learn the basics by doing a new, beginner...</description>
      <content:encoded><![CDATA[<p>Link: <a href="https://tryhackme.com/room/25daysofchristmas" rel="nofollow ugc">https://tryhackme.com/room/25daysofchristmas</a></p>

<blockquote><p>Get started with Cyber Security in 25 Days – Learn the basics by doing a new, beginner friendly security challenge every day leading up to Christmas</p></blockquote>

<h2 id="day-1">Day 1</h2>
<ul><li>cookies that have fixed values are bad as it allows attackers to guess the pattern and values.</li>
<li>a new cookie can be created from Firefox dev tools &gt; storage &gt; cookies &gt; add new</li></ul>

<h2 id="day-2">Day 2</h2>
<ul><li>check source pages</li>
<li>dir searching</li>
<li>github search for website</li></ul>

<h2 id="day-3">Day 3</h2>
<ul><li>for pcaps, the best thing to do is search for interesting activities e.g. telnet and ssh</li>
<li>follow stream to export to txt</li>
<li>johntheripper can work on <code>/etc/shadow</code> without needeing <code>/etc/passwd</code>.</li></ul>

<h2 id="day-4">Day 4</h2>
<ul><li>to find text within all files: <code>grep -Ril &#34;text&#34;</code>
<ul><li>to grep for all IP addresses: <code>grep -E -o &#34;([0-9]{1,3}[\.]){3}[0-9]{1,3}&#34; file.txt</code></li></ul></li>
<li>It&#39;s wise to search for *.bak files in case some world readable backups exist :
<code>find / -name *.bak 2&gt;/dev/null</code></li></ul>

<h2 id="day-5">Day 5</h2>
<ul><li>OSINT required creative google searches, social media, and the use of waybackmachine.</li></ul>

<h2 id="day-6">Day 6</h2>
<ul><li>Tools used:
<ul><li>wireshark-gtk</li>
<li>fcrackzip</li>
<li>steghide</li></ul></li></ul>

<h2 id="day-7">Day 7</h2>
<ul><li>strange protocols running on weird ports are worth trying out via http.</li></ul>

<h2 id="day-8">Day 8</h2>
<ul><li>if binaries such as <code>find</code> are running as another user you can usually use <code>exec</code> to execute something with that binary e.g.:</li></ul>

<pre><code>find /home/igor -name flag1.txt  -exec cat /home/igor/flag1.txt \;
</code></pre>
<ul><li>commonly used command to list all suid binaries:</li></ul>

<pre><code>find / -user root -perm -4000 -exec ls -ldb {} \; 2&gt;/dev/null
</code></pre>

<h2 id="day-10-metasploit">Day 10: Metasploit</h2>
<ul><li>After a quick nmap scan, there seems to be a tomcat server running on port 80.</li>
<li>Version enumeration reveals that it may be prone to the <a href="https://www.secjuice.com/apache-struts2-cve-2018-11776/" rel="nofollow ugc">struts2 vuln</a>.</li>
<li>Let&#39;s use the <code>struts2_content_type_ognl</code> exploit via MSF and configure hosts, ports, and path (path = “”).</li>
<li>exploit successful! Use meterpreter shell to exploit further and find a way to break out of the docker container.</li>
<li>SSH creds are available —&gt; this is how we break out.</li></ul>

<h2 id="day-11-network-exploitation">Day 11: Network Exploitation</h2>
<ul><li><code>nmap -A $IP -oA &lt;filename&gt;</code></li>
<li>We can see the following services open: ftp, nfs, mysql</li>
<li>Anonymous login is allowed on FTP. Use <code>ftp</code> to login and retrieve file and credentials.</li></ul>

<h4 id="nfs">NFS</h4>
<ul><li><code>showmount -e $IP</code> to check if NFS is present and directory path.</li>
<li><code>cd /tmp &amp;&amp; mkdir thm-nfs-11</code></li>
<li><code>sudo mount $IP:/opt/files thm-nfs-11</code></li>
<li>thm-nfs-11 contains a file with the flag.</li></ul>

<h4 id="mysql">MySQL</h4>
<ul><li>I&#39;ll be using <a href="https://github.com/dbcli/mycli" rel="nofollow ugc"><code>mycli</code></a> to connect to the msql database.</li>
<li><code>mycli -h $IP -P 3306 -u root</code></li>
<li><code>show databases</code></li>
<li><code>use data</code></li>
<li><code>show tables</code></li>
<li><code>SELECT * FROM &#39;USERS&#39;</code></li>
<li>Creds are now retrieved from the table.</li></ul>

<h2 id="day-12">Day 12</h2>

<p>1) <code>md5sum</code>
2) <code>gpg --decrypt note1.txt.gpg</code> with supplied passphrase
3a) Decrypt private RSA key first with supplied passphrase <code>openssl rsa -in private.key -out test.key</code>
3b) Then use <code>openssl rsautl -decrypt -inkey test.key -in note2_encrypted.txt -out note2_decrypted.txt</code> to obtain decrypted note.</p>

<h2 id="day-14-aws-s3-buckets">Day 14: AWS S3 Buckets</h2>
<ul><li>Buckets can be accessed via <code>bucketname.s3.amazonaws.com</code> or <code>bucketname.region-name.amazonaws.com</code></li>
<li>Bucket contents can be accessed via <code>bucketname.region-name.amazonaws.com/file-name</code></li></ul>

<h2 id="day-15-local-file-inclusion">Day 15: Local File Inclusion</h2>
<ul><li>Webservers will often pull files from local locations to display on a webpage.</li>
<li>It&#39;s best to have a look at the HTTP requests and start crafting potential LFI that way.</li>
<li>Be sure to encode the <code>/</code> using <code>%2F</code>.</li>
<li>Example payload: <code>http://host/get-file/%2fetc%2fpasswd</code></li></ul>

<p><a href="https://drsh0.writeas.com/tag:writeups" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">writeups</span></a> <a href="https://drsh0.writeas.com/tag:ctf" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">ctf</span></a> <a href="https://drsh0.writeas.com/tag:tryhackme" class="hashtag" rel="nofollow ugc"><span>#</span><span class="p-category">tryhackme</span></a></p>
]]></content:encoded>
      <guid>https://drsh0.writeas.com/tryhackme-advent-of-cyber-2019</guid>
      <pubDate>Sun, 08 Dec 2019 23:40:33 +0000</pubDate>
    </item>
  </channel>
</rss>