<?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 Daniel Swai on Medium]]></title>
        <description><![CDATA[Stories by Daniel Swai on Medium]]></description>
        <link>https://medium.com/@oldpranks?source=rss-671b06461b7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LDNuKqfY7JcxN6iIfBAYzw.jpeg</url>
            <title>Stories by Daniel Swai on Medium</title>
            <link>https://medium.com/@oldpranks?source=rss-671b06461b7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:43:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oldpranks/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[OSINT E07 — Sofia Santos | OSINT Analysis & Exercises]]></title>
            <link>https://medium.com/@oldpranks/osint-e07-sofia-santos-osint-analysis-exercises-101afd858adc?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/101afd858adc</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Wed, 20 Nov 2024 06:26:51 GMT</pubDate>
            <atom:updated>2024-11-20T06:26:51.078Z</atom:updated>
            <content:encoded><![CDATA[<h3>OSINT E07 — Sofia Santos | OSINT Analysis &amp; Exercises</h3><p><strong>Challenges can be found here </strong><a href="https://gralhix.com/list-of-osint-exercises/osint-exercise-007/">OSINT Exercise #007 — Sofia Santos | OSINT Analysis &amp; Exercises</a></p><p><strong>Task briefing:</strong><br>The photo below was taken a few years ago in a beautiful city.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QUzyWSKFfeWrrzIt" /></figure><p>Your task is to find the answers to the following questions:<br>a) Where was the photo taken?</p><p>Doing Image OSINT can be so much simple when the image contains some urban sculptures or public arts.</p><p>From the image, there’s an urban sculpture that “may” uniquely identify the area, simplifying our image intelligence analysis.</p><p>So, let’s start with reverse image searching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fe6R7u-SRB7T479W-L_I7Q.png" /></figure><p>I got similar results as from the image. I tried to find the result using the trip advisor feed result. That’s a good point of view because it will also list hotels and tourist attractions nearby.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-Q2Qc1fx9KvxH7Poywr7Q.png" /></figure><p>The photo was taken at Centro Vasco da Gama in Lisbon, Portugal.</p><blockquote>Centro Vasco da Gama in Lisbon, Portugal.</blockquote><p>b) In which year was the photo taken?</p><p>To identify when the photo was taken, we can look for image metadata. But I got nothing helpful when I looked for the metadata.</p><p>So, I started to look other thing within the image that can help to identify the year. Finally, I came across a big poster to which it can be changed. (As we all know that posters do not stay on street and city banners forever, they change in time).</p><p>Therefore, I started looking for the images in which the same big poster on the farther right will be found.</p><p>A quite useful tool for this task is using <em>street view</em> in <em>google maps</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fc9L6_jrIYYCx1RSaFAtzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MhZi9OafJWYA1qCiugy3yg.png" /></figure><p>But I noticed that, the poster has been changed. Not similar to the one in the challenge image. The results are from July 2022.</p><p>Let’s find results from previous years and see how it looked like. Trying to find the same poster in the challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NHguigHBA_ZZySvEIuWhg.png" /></figure><p>Now I got the results from October 2019. But since, we are not sure that the photo in the challenge was taken in October. But we are sure that, the photo was taken in 2019.</p><blockquote>The photo was taken in 2019.</blockquote><p>c) The big poster on the right contained a link to a website. What was the link?</p><p>Using street view, let’s move towards the big poster and read the link.</p><p>This was a little trickier one! Whenever I tried to move towards using the street view, the dates changed. So, I had to zoom in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*54qFDFM2baX1e_05OoQDqA.png" /></figure><p>There seems the link, but it cannot be seen clearly.</p><p>Therefore, I had to find another point of view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L2M6-ti8TrcxEemXc7zvlQ.png" /></figure><p>Finally, there is the link!</p><blockquote><a href="http://www.tutankamon.pt/">www.tutankamon.pt</a></blockquote><p>DOING OSINT IS SO MUCH FUNN!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=101afd858adc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSINT E08 -Sofia Santos | OSINT Analysis & Exercises]]></title>
            <link>https://medium.com/@oldpranks/osint-e08-sofia-santos-osint-analysis-exercises-b6870675e20a?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6870675e20a</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Wed, 20 Nov 2024 05:19:11 GMT</pubDate>
            <atom:updated>2024-11-20T05:19:11.859Z</atom:updated>
            <content:encoded><![CDATA[<p>Challenges can be found here <a href="https://gralhix.com/list-of-osint-exercises/osint-exercise-008/">OSINT Exercise #008 — Sofia Santos | OSINT Analysis &amp; Exercises</a></p><p><strong>Task Briefing</strong></p><p>The large photo below was taken from a page of the Epoch Times, a Chinese newspaper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*aRBQ-Q_4w_czcymV" /></figure><p>Please answer the following questions:<br>a) What was the audience applauding?</p><p>I’m not that good with Chinese (Taiwan), so what I first did, was to translate the words into English.</p><p>This is what I got!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V3W6CUIa9bzCjXxDcdd1Zw.png" /></figure><blockquote>Simply, the audience “may be” applauding to Shen Yun when showcasing the traditional values.</blockquote><p><strong>b) When was the photo taken?</strong></p><p>The magazine was written on January 12, 2023. But this does not justify when the picture was taken.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a0yyoEBW7SHwtUrLA7lyLw.png" /></figure><p>We need to find when the photo appeared on the magazine was taken. Let’s find out.</p><p>I performed image reverse search using google lens. You can use any other reverse image search of your choice such as Yandex and FishEye.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MaaFy9FhzcJYvujgbEZ23w.png" /></figure><p>I then, first selected the first feed result to read and find more about it. Translate the page for easy understandability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VO3fuKQsd8ygfZzNiMGSXA.png" /></figure><p>Remember that we found the word <em>epoch times </em>from the magazine. Additionally, the magazine had something which aligns same as the heading of the story. So, let’s deep in and read more about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3q-srf13oGIWRcQ7O_Fmvw.png" /></figure><p>The article describes that the event took place in seven different cities on the same day. The day of the event as described from the article was January 9, 2023. This means that the photo was taken during the event on the same day when the Shen Yun Arts Troupe were performing. Cutting long story short, the photo was taken on January 9, 2023.</p><blockquote>January 9, 2023</blockquote><p><strong>c) What is the name of the venue?</strong></p><p>Let’s brainstorm a little bit!!</p><p><em>Since the event was performed in seven different cities in the United States and Europe on the same day, can you try to guess where was the photo taken?</em></p><p>I first needed to find out which cities hosted the Shen Yun Arts event within the United States and Europe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Rh0-km192zCo68CamIwOg.png" /></figure><p>The seven cities which hosted the event in the United States were San Francisco, Atlanta, Norfolk, Austin and Dallas. In Europe, Berlin (Germany) and Birmingham (United Kingdom) hosted the event.</p><p>Okay, now let’s deep in a little bit, to find out to which venues in each city hosted the event.</p><p>Oh!! Sorry, that will be a lot of stress work.</p><p>We got the answer from the beginning.</p><p>Just use any translate language tool of your choice, (<em>if you are not quite well with Chinese (Taiwan)</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MmKtC5Eplhg7lH_cgKL5Ag.png" /></figure><p>The event on the magazine was performed at Potsdamer Platz in Berlin (Germany).</p><p>Name of the venue:</p><blockquote>Potsdamer Platz in Berlin</blockquote><p>DOING OSINT IS SO MUCH FUNN!!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6870675e20a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSINT E04 — Sofia Santos | OSINT Analysis & Exercises]]></title>
            <link>https://medium.com/@oldpranks/osint-e04-sofia-santos-osint-analysis-exercises-15aed42937a9?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/15aed42937a9</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 09:26:54 GMT</pubDate>
            <atom:updated>2024-09-10T09:26:54.427Z</atom:updated>
            <content:encoded><![CDATA[<h3>OSINT E04 — Sofia Santos | OSINT Analysis &amp; Exercises</h3><p>Challenge can be found here <a href="https://gralhix.com/list-of-osint-exercises/osint-exercise-004/">OSINT Exercise #004 — Sofia Santos | OSINT Analysis &amp; Exercises (gralhix.com)</a></p><p><strong>Task briefing:</strong><br>This is a photo of a resort located on an island.<br>a) What is the name of the resort?<br>b) What are the coordinates of the island?<br>c) In which cardinal direction was the camera facing when the photo was taken?</p><p>Click <a href="https://gralhix.com/wp-content/uploads/2023/08/osint-exercise-004-big-picture.jpg">here</a> to open the photo on a new tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJz6-N2ZH54bErMdWfWKfA.jpeg" /></figure><p><strong>NAME OF THE RESORT</strong></p><p>Performing reverse image search using google photos, bing image search or yandex reverse image search. You can also use other tools to perform reverse image search such as FishEye.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9B33Ny2wtlPVcHLLE5XtA.png" /></figure><p>There is an image result on the right which resembles to the image given on the challenge. Let’s have more clear view of the image results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cT5ZZTJFStfHGxLLtH_qxg.png" /></figure><p>Just moved to view all pages with the image. We have the onaresort site and also the Facebook gives information on the image.</p><p>I then visited the Facebook page to find out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J80IOOrH55Fk4dKnamPzXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FgSaWKbeFjtj5QT0eNt9cw.png" /></figure><p>Account name with this image is Ona Resort with more information accompanying the account. Such as;</p><blockquote>Page: Beach</blockquote><blockquote>Phone number: +691 330 5450</blockquote><blockquote>And email address</blockquote><p>Name of the resort is <strong><em>ONA RESORT</em></strong></p><p><strong>COORDINATES OF THE ISLAND</strong></p><p>From the Facebook account, we got the following details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*oS4P1H65QtVCeTCYNhbWeg.png" /></figure><p>That is, it ‘may suggests’ that the island resort is located in Federated States of Micronesia, Seaside Dock, Weno Island, Chuuk State.</p><p>Now let’s find that on map.</p><p>Copy the address and paste it on map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoXzKk3E3a_QuqQK_QVMxA.png" /></figure><p>From the map, seems that it is located in Chuuk, Micronesia. The island is <em>‘may</em>’ called Weno Island.</p><p>GPS Coordinates may be;</p><blockquote>Latitude: 7.4401475</blockquote><blockquote>Longitude: 151.8479531</blockquote><p><strong>CAMERA POSITION / CARDINAL DIRECTION</strong></p><p>To determine the cardinal direction the camera was facing when the photo was taken, I looked for clues such as the position of the sun or shadows. However, this image doesn’t provide clear indicators of direction.</p><p>The photo shows an aerial view of a tropical island with lush greenery due to forestry vegetation, white sandy beaches, and clear blue waters.</p><p>Without additional context or directional markers, it’s challenging to pinpoint the exact direction the camera was facing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15aed42937a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSINT E03 — Sofia Santos | OSINT Analysis & Exercises]]></title>
            <link>https://medium.com/@oldpranks/osint-e03-sofia-santos-osint-analysis-exercises-814ea5336be3?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/814ea5336be3</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 08:18:33 GMT</pubDate>
            <atom:updated>2024-09-10T08:18:33.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>OSINT E03 — Sofia Santos | OSINT Analysis &amp; Exercises</h3><p>Challenge can be found here <a href="https://gralhix.com/list-of-osint-exercises/osint-exercise-003/">OSINT Exercise #003 — Sofia Santos | OSINT Analysis &amp; Exercises (gralhix.com)</a></p><p><strong>Task briefing:</strong><br>In April 2017 Mohamed Abdullahi Farmaajo, the then president of Somalia, visited Turkey. A news agency published a photo where he was seen shaking hands with Recep Tayyip Erdoğan, the country’s president. The article did not disclose where the photo was taken. Your task is to find out the name and coordinates of the location seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*Yezw4jRENM7bc8k--EMPIg.jpeg" /></figure><p>LET’S DIG IN!!</p><p>From the given information, we can summarize into some few important details;</p><blockquote>Time/Period : April 2017</blockquote><blockquote>Mohamed Abdullahi Farmaajo (President of Somalia) visited Türkiye</blockquote><blockquote>Recep Tayyip Erdoğan — President of Türkiye</blockquote><blockquote>Task: Find the location and GPS Coordinates</blockquote><p>I performed reverse image search. You can use any tool of your choice. You can also use search engines such as google image, yandex image and others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ER8BVfK3l14PP4PjU5zrmw.png" /></figure><p>If you look close enough on those ‘highlighted’ pictures, it shows that the images have all been taken within the same location. The background suggests that it looks familiar in many presidential photos in Türkiye.</p><p>I then followed one of the links which suggests the photo was taken.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlyFVUuJ-_qb6H2iOJAXvQ.png" /></figure><p>The reverse image search performed face detection and analysis and showed results for the people in the image as <strong><em>“looks alike”</em></strong>.</p><p>As it is seen, the people in the image are <strong><em>Mohamed Abdullahi Mohamed</em></strong> and <strong><em>Recep Tayyip Erdoğan</em></strong></p><p>I then followed one of the pages with the image. Check this out!!!!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97FGxHhUFfbPH-Wq2IwAew.png" /></figure><p>Here now we have other additional details</p><blockquote>Location : Ankara Presidential Complex</blockquote><blockquote>Date: 26 April 2017</blockquote><p>Remember that previously we only had a clue that the president of Somalia visited Türkiye <em>in April 2017. </em>Now we’ve got the specific date.</p><p>Now let’s find the GPS Coordinates where the Ankara Presidential Complex. Just use any map tool of your choice. I’ll use Google maps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TjgaM48pp6OjIKmpbUganQ.png" /></figure><p>We now have the longitude and latitudes for the GPS location.</p><blockquote>Latitude: 39.9308873,</blockquote><blockquote>Longitude: 32.7965016</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=814ea5336be3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSINT E02 — Sofia Santos | OSINT Analysis & Exercises]]></title>
            <link>https://medium.com/@oldpranks/osint-e02-sofia-santos-osint-analysis-exercises-623349f434da?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/623349f434da</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 07:15:21 GMT</pubDate>
            <atom:updated>2024-09-10T07:15:21.123Z</atom:updated>
            <content:encoded><![CDATA[<h3>OSINT E02 — Sofia Santos | OSINT Analysis &amp; Exercises</h3><p>Challenge link: [OSINT Exercise #002 — Sofia Santos | OSINT Analysis &amp; Exercises (gralhix.com)](<a href="https://gralhix.com/list-of-osint-exercises/osint-exercise-002/">https://gralhix.com/list-of-osint-exercises/osint-exercise-002/</a>)</p><p><strong>Task briefing:</strong><br>The photo below was shared on social media. It clearly depicts a train station. <br>Please answer the following questions: <br> <br>a) What is the name of the train station seen in the photo? <br>b) What is the name and height of the tallest structure seen in the photo?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*wJJrZTE1ec-LDzEPCMTjZA.png" /></figure><p><strong>Exercise level:</strong><br>For beginners: a) Easy, b) Hard <br>For experts: a) Easy, b) Medium</p><p><strong>NAME OF THE TRAIN STATION</strong><br>Observing the train station, we see that it has banners named as <strong><em>“FLINDERS STREET”</em></strong></p><p>On the background we have high buildings, where on top of them has identification symbols and marks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*mg2X7nH0KxbVYdFvW17tYg.png" /></figure><p>So, I searched for the street name to find out where is it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a7obkgKOJBk3Tk53G1bMJw.png" /></figure><p>Let’s minimize the search scope to get satisfying results. So, I viewed inside the platform in the Flinders Street railway station how it looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5BcHZ1d1KHbM-DTccf37w.png" /></figure><p>We can see the image that may resemble to the given image describing the platform view. Therefore, I can conclude that the Name of the Train Station is <strong>”FLINDERS STREET RAILWAY STATION”</strong> located in <em>Melbourne, Australia</em>.</p><blockquote>FLINDERS STREET RAILWAY STATION</blockquote><p><strong>NAME AND HEIGHT OF THE TALLEST STRUCTURE</strong><br>Search for exact location, using maps. To solve the challenge, i used google maps. Use street view to extract different information on the map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3sL1QNp2nusJ7uk7sZWHdg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chc_8BOTjjubxGoZVdz2PQ.png" /></figure><p>We now see the tallest building. Let’s find out the name and the height of the building.</p><p>THERE IT IS!! The building we finding for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ev5sIuSY1jX93ZPNuAoixg.png" /></figure><p>Using street view, the nearest buildings near the street is the <em>PWC</em> office building in Melbourne. I then changed to previous map view. I searched for <em>PWC Melbourne</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jEmeW9zT0l_h2lceMKUM_g.png" /></figure><p>HERE WE GO!! The name of the building is <strong><em>Eureka Skydeck</em></strong></p><p>Now let’s find out the height. GOOGLE IS YOUR FRIEND, RIGHT?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KNheBk9MUBupyzrD7QCvqA.png" /></figure><blockquote>Name of the tallest building: Eureka Skydeck<br>Height of the building: 285 meters (935 feet)</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=623349f434da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kenobi — TryHackMe WriteUp]]></title>
            <link>https://medium.com/@oldpranks/kenobi-tryhackme-writeup-4f839b4f742b?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f839b4f742b</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Sat, 08 Jun 2024 14:56:12 GMT</pubDate>
            <atom:updated>2024-06-08T14:56:12.351Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kenobi — TryHackMe WriteUp</h3><p>A writeup on exploiting a Linux machine. Enumerating Samba for shares, manipulate a vulnerable version of <em>proftpd</em> and escalate the privileges with path variable manipulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*jDUcqRtYrDdrHF2e9EBS-A.png" /></figure><p><strong>THIS WRITEUP IS NOT YET COMPLETE. IT WILL BE COMPLETED SOON</strong></p><h3>Task 1: Deploy the machine</h3><p>Make sure you are connected with the TryHackMe network via openvpn or using the Attackbox.</p><p>When we want to perform an attack on a machine the following steps are “<em>mainly considered” </em>as a path to complete a successful attack.</p><ol><li>Identify the target</li><li>Reconnaissance &amp; Scanning</li><li>Gaining access</li><li>Maintaining access</li><li>Covering tracks</li></ol><p>We now have the target IP address of the machine. So let’s perform reconnaissance and identify other valuable information from the machine.</p><p>Identifying possible open ports and service scanning, we can use the <em>nmap </em>tool.</p><blockquote>nmap -sC -sV -v &lt;Target IP Address&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*2BgHKwVtEmDqESWID-jVvw.png" /></figure><h3>Task 2: Enumerating Samba for shares</h3><p>Check into the details of the service scan we performed on the last task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*OHcAI5XWlTkPqzX6PMYdiA.png" /></figure><p>Now we know that port 21 is open and provides ftp service using ftp version <em>ProFTPD 1.3.5</em>. We also know that port 139 and 445 are open and that both provides <em>smb </em>service to the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*12TGQ40wsUL69zMhZ79pkg.png" /></figure><p>This means that port 21 (ftp), port 22(ssh) and port 139&amp;445(smb) can be used to exploit the machine.</p><p>But with this kenobi challenge machine, we will try to enumerate the smb services.</p><p>So, before starting to exploit the smb, let’s identify how many shares we have from the machine.</p><blockquote>nmap -p 445 — script=smb-enum-shares.nse,smb-enum-users.nse &lt;Target IP Adddress&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*GZ1xwDnVt8ddSDBzIXRJ1A.png" /></figure><p>Using the nmap script scanning, two smb-scripts (<em>smb-enum-shares.nse </em>and <em>smb-enum-users.nse</em>) were used to obtain the results.</p><p>So now we can see three smb-enum-shares were found from the guest account of the machine.</p><p>Interesting point of view, we can have a feeling that the &lt;Target IP Address\anonymous&gt; we can have something to look into. The reason is that, it has anonymous access to <em>read </em>and <em>write. </em>Also, the current user access is READ/WRITE.</p><p>So, let’s now try to connect to the machines network share.</p><blockquote>smbclient //&lt;Target IP Address&gt;/anonymous</blockquote><p>If you are asked for password, just press ENTER key to continue..</p><p>After a successful login, list the files on the share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*Dmz6qiVuSIGmzNnF1c0Gwg.png" /></figure><p>Okay!!!!</p><p>Do you remember that port 111 <em>rpcbind</em>. Let’s check it again. Here I have provided a screenshot from the service scan we did last time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*A2hf57cqyykmabT0VEsI6A.png" /></figure><p>This server simply changes program numbers for remote procedure calls (RPCs) into universal addresses. An RPC service notifies rpcbind of the address it is listening at and the RPC program number it is ready to serve when it is executed.</p><p>So, let’s enumerate RPC using nfs scripts.</p><blockquote>nmap -p 111 — script=nfs-ls,nfs-statfs,nfs-showmount &lt;Target IP Address&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*Bl4_z-mojJRmSGU8EgCk0w.png" /></figure><p>We now have the nfs details from the machine as executed from the scripts we used.</p><h3>Task 3: Gaining Initial access with ProFTPD</h3><p>Let’s rewind back when we performed reconnaissance on port and service scanning we had an open port 21 which provides ftp service. Okay, so let’s check the version for the proftpd.</p><p>This version is outdated. This means that, it may be exploited and we can gain access to the ftp and access file information present there. But, for easy exploitation, let’s first identify the exploits that have been around running on the 1.3.5 proftpd</p><p>To find that, let’s use the <a href="https://www.exploit-db.com/">exploit-db</a> and search for the proftpd version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFqkBL1Wq472yzHUWkv5CA.png" /></figure><p>We know that the FTP service is running as the Kenobi user (from the file on the share) and an ssh key is generated for that user.</p><p>Let’s perform netcat to the target and port 21</p><blockquote>nc &lt;Target IP Address&gt; 21</blockquote><p>From the netcat, we’ll then use the SITE CPFR and SITE CPTO commands.</p><p>This SITE command specifies the source file/directory to use for copying from one place to another directly on the server.</p><blockquote>SITE CPFR source-path</blockquote><blockquote>SITE CPTO destination-path</blockquote><p>We’re now going to copy Kenobi’s private key using SITE CPFR and SITE CPTO commands.</p><blockquote>SITE CPFR /home/kenobi/.ssh/id_rsa</blockquote><blockquote>SITE CPTO /var/tmp/id_rsa</blockquote><p>We remember that the /var directory was a mount according to our previous tasks. So we have now moved Kenobi’s private key to the /var/tmp/ directory.</p><p>Now, let’s mount the /var/tmp directory to our machine</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f839b4f742b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber Threat Intelligence]]></title>
            <link>https://medium.com/@oldpranks/cyber-threat-intelligence-36dd296d971e?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/36dd296d971e</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Wed, 29 May 2024 16:44:48 GMT</pubDate>
            <atom:updated>2024-05-29T16:44:48.991Z</atom:updated>
            <content:encoded><![CDATA[<p>Threat Intelligence is the analysis of data using tools and techniques to generate meaningful information about existing and emerging threats targeting the organizations that helps mitigate risks.</p><p>Threat intelligence makes organizations make faster, more informed security decisions and change their behavior from reactive to proactive to combat the attacks.</p><h3>Reasons for the need of threat intelligence</h3><ol><li>Identify, prepare and prevent attacks by providing information on attackers, motives, and capabilities.</li><li>Prepares organizations to be proactive with predictive capabilities instead of reactive for future cyber attacks.</li><li>Threat Intelligence analysts can prevent and contains attack faster, potentially saving the cost of cyber-attacks.</li><li>Elevate security enterprise at every level, including network and cloud security.</li></ol><h3>What does threat intelligence do</h3><p>Threat intelligence helps organizations with valuable knowledge about these threats, build effective defense mechanisms, and mitigate the risks that could cause financial and reputational damage.</p><p>Threat intelligence is the predictive capability to defend the future attacks that the organization is exposed to so they can proactively tailor their defenses and preempt future attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*ka7yggSx0HvtHwwNfqZs1g.png" /></figure><h3>Threat Intelligence Analyst</h3><p>Threat intelligence analyst is an expert who monitors and analyzes external cyber threat data to provide actionable intelligence.</p><p>These experts triage data security incidents collected from different threat intelligence sources and study pattern of attacks, their methodology, motive, severity, and threat landscape.</p><p>The data is then analyzed and filtered to produce threat intelligence feeds and report that help management (security officer) in making decisions concerning organizational security.</p><h3>Threat Intelligence Feeds</h3><p>Threat Intelligence feeds and sources are continuous streams of actionable information on threats and bad actors. <br>Threat intelligence analysts collect security data on IoCs such as uncommon activity and malicious domains and IPs from various sources.<br>Feeds are just raw data on threats; an analyst extracts intelligence from them for creating resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*UF0746RNPQeolV9EIBNTsA.png" /></figure><h3>TTP (Threats, Techniques, Procedures) for Threat Data Collection</h3><p><strong>Data Collection through Open Source Intelligence (OSINT)</strong></p><p>This includes data collection through open sources such as;<br>i) Search engines (google, duckduckgo, bing, dogpile, webopedia, yahoo, the internet archive)</p><p>ii) Web services (Apache web service, Amazon web service, Microsoft IIS)</p><p>iii) Website footprintings (Sam Spade, Spider Foot, HTTP header grabber, honeypot detector)</p><p>iv) emails,</p><p>v) Whois lookup (WHOIS, nslookup, nmap, nessus, port scan, tcpview, my ip suite, )</p><p>vi) DNS interrogation (Zone transfer, DNS enumerator) and</p><p>vii) automating OSINT tools/frameworks/scripts</p><p><strong>Data Collection through Human Intelligence (HUMINT)</strong></p><p>This process involves data collection through Human-based Social engineering techniques, interviewing, interrogation, and social engineering tools.<br>Other social engineering tools;<br>i) Phishing (WifiPhisher, GoPhish)<br>ii) Maltego<br>iii) Social engineering toolkit (SET)<br>iv) Scareware ( )</p><p><strong>Data Collection through Cyber Counterintelligence (CCI)</strong></p><p>This process involves threat data collected through honeypots, passive DNS monitoring, malware sinkholes, YARA rules<br>i) Honeypots (honeypot detector, Send-sage honeypot hunter, kippo detect, Cowrie, Chekpot, /proc/mount, /proc/interrupts, /proc/cmdline)- tools to detect honeypot<br>ii) Passive DNS monitoring ( dns monster, dig, DNSPERF, Vinyl DNS)</p><p><strong>Data Collection through Indicators of Compromise (IoC)</strong></p><p>Collecting digital evidence data from internal sources, external sources and creating custom threats IoCs. Indicators of Compromise (IoCs) include;<br>i) Unusual DNS requests and registry configurations<br>ii) Large amount of compressed files or data bundles in incorrect or unexplained locations<br>iii) Unauthorized setting changes, including, mobile device profiles<br>iv) Large number of request for the same file<br>v) Geographical irregularities such as traffic from countries or locations where the organization does not have a presence<br>vi) Unusual activity from administrator or privileged accounts<br>vi) An uptick in incorrect logins, or access requests that may indicate brute force attacks<br>vii) Suspicious registry or system file changes</p><p><strong>Data Collection through Malware Analysis</strong></p><p>Malware analysis is the process of analyzing and understanding the origin and impact of a malware sample and how it functions by deploying analysis tools. Malware functions in multiple ways and gathers information about unsecured devices without the knowledge of the user<br>Tools for performing malware analysis;<br>i) A virtual machine<br>ii) A sandbox environment ( Cuckoo sandbox)<br>iii) Wireshark<br>iv) IDA Pro, OllyDbg, WinDbg, x64dbg<br>v) Process Monitor, Resource Hacker<br>vi) Crowdstrike, VirusTotal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*fPWD8kTHDETqlrRRZxWlEQ.png" /></figure><h3>Use of Threat Intelligence</h3><p>i) Inform the security, professionals about malicious actors, potential threats, their methods, motive and vulnerabilities the organization are posed to.<br>ii) Help security professionals to be proactive about future cyber attacks<br>iii) Inform the organization about latest threat and their impact on their business<br>iv) Help security operations team to triage cyber-attacks, risk analysis, vulnerability management and wide-scope decision making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*ziFp3phyOLqEuFQL1Jm7iQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36dd296d971e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Content Discovery — TryHackMe WriteUp]]></title>
            <link>https://medium.com/@oldpranks/content-discovery-tryhackme-writeup-a395090a9aa9?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a395090a9aa9</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Thu, 18 Apr 2024 00:05:51 GMT</pubDate>
            <atom:updated>2024-04-18T11:30:41.841Z</atom:updated>
            <content:encoded><![CDATA[<h3>Content Discovery — TryHackMe WriteUp</h3><blockquote>Discovering hidden or private content on a web-server that could lead to new vulnerabilities.</blockquote><h3>Task 1: What is Content Discovery?</h3><p>To answer these questions in this task, read and understand the details on this section.</p><h3>Task 2: Manual Discovery — Robots.txt</h3><p>The <em>robots.txt</em> file may be a document that tells search engines which pages they are and aren’t permitted to appear on their search engine comes about or ban particular search engines from crawling the site inside and out. It can be common practice to limit certain site areas so they aren’t shown in search engine results.</p><p>These pages may be areas such as administration portals or files implied for the website’s clients. This record gives us a incredible list of areas on the site that the owners do not need us to find as penetration testers.</p><p>Now, let’s visit the URL with a <em>robots.txt</em> directory. <strong><em>http://&lt;IP MACHINE target&gt;/robots.txt</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*A70TOenKLZ-CKPIgLZcB6A.png" /></figure><h3>Task 3: Manual Discovery — Favicon</h3><p>The favicon is a small icon displayed in the browser’s address bar or tab used for branding a website. Open your web browser and open the given challenge link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdkObItb-aqP1cLrDEZD3A.png" /></figure><p>We just have the “Website coming soon…” webpage. Let’s try to view the page source and see if we can obtain anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fp4zLm8q4PHduRD0Up1c-Q.png" /></figure><p>It seems we have something identified as a jpeg image. Let’s follow the <em>href </em>data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LqljL4uo0RiK4gj76Zg5FA.png" /></figure><p>We have something here, but we can not see it clearly. Let’s try to download the ico file and have a well examination on it.</p><p>After download, let’s check the <em>md5sum</em> of the<em> favicon.ico</em> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*6x5rLkpkvokC56P1SJS74A.png" /></figure><p>From the OWASP favicon database, now let’s try to check the hash of the file and find the framework which it belonged to</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aoy-nbHlpZIG8_ii6ryvIw.png" /></figure><p>There it is!!!</p><h3>Task 4: Manual Discovery — Sitemap.xml</h3><p>Unlike the <em>robots.txt</em> file, which restricts what search engine crawlers can look at, the <em>sitemap.xml </em>file gives a list of every file the website owner wishes to be listed on a search engine. These can sometimes contain areas of the website that are a bit more difficult to navigate to or even list some old webpages that the current site no longer uses but are still working behind the scenes.</p><p>Let’s take a look at the Acme IT Support website to see if there’s anything we can discover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FMKD7sZKI0EySK235f4JBg.png" /></figure><p>Yeahhhp, you have it now!</p><h3>Task 5: Manual Discovery — HTTP Headers</h3><p>When we make requests to the web server, the server returns various HTTP headers. These headers can sometimes contain useful information such as the web-server software and possibly the programming/scripting language in use. In the below example, we can see the web-server is <strong>NGINX</strong> version 1.18.0 and runs <strong>PHP</strong> version 7.4.3. Using this information, we could find vulnerable versions of software being used.</p><p>Let’s run the curl command with the -v flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GWIvFyLBDhIqt8USOMQ3g.png" /></figure><h3>Task 6: Manual Discovery — Framework Stack</h3><p>Visit the given <em>ip address</em>. The website will appear as this one below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OtUDAvUsGySr7FynZudveQ.png" /></figure><p>Let’s view the page source if we can have any clues hidden there. Viewing the page source <strong><em>CTRL + U</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQydPuBl_8ECTKHfMsDy7Q.png" /></figure><p>At the bottom of the page, we have a URL given on a comment section. Let’s check it out, and find if we can have any other clues for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FXtwwiGvwec_Wec0PrnUyQ.png" /></figure><p>On the documentation page, we have other clues. As been directed, let’s find them. Login and obtain the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*oYmppaDWaLzWLgb0BQGrDQ.png" /></figure><h3>Task 7: OSINT — Google Hacking / Dorking</h3><p>Read and understand the details in there</p><h3>Task 8: OSINT — Wappalyzer</h3><p>“<em>Wappalyzer</em> is an online tool and browser extension that helps identify what technologies a website uses, such as frameworks, Content Management Systems (CMS), payment processors and much more, and it can even find version numbers as well.”</p><h3>Task 9: OSINT — Wayback Machine</h3><p>The Wayback Machine is a cool tool from the Internet Archive that lets you travel back in time and see how websites looked in the past! Think of it as a giant archive of the internet.</p><h3>Task 10: OSINT — Github</h3><p>Git is a <strong><em>version control system</em></strong> that tracks changes to files in a project. It can be used to delve into code hosted on GitHub. This can reveal details about projects, technologies used, and potential vulnerabilities (especially if the code is for internal systems). GitHub profiles and repositories often contain a wealth of information. Look for bios, links to other social media, affiliations, and even email addresses (be mindful, some might be accidental). Utilize GitHub’s built-in search to find repositories, users, and code snippets based on relevant keywords or phrases. Refine your search using filters like programming language, popularity (stars/forks), and more.</p><p>NB: Always be ethical and respectful of privacy when using GitHub for OSINT.</p><h3>Task 11: OSINT — S3 Buckets</h3><p>Read about Amazon AWS S3 buckets</p><h3>Task 12: Automated Discovery</h3><p>Let’s perform directory brute-forcing using the <em>gobuster </em>tool. You can use the tool as follows;</p><blockquote>gobuster dir &lt;IP MACHINE target&gt; -u &lt;/path/to/wordlist&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*MPaoHHDUk4s7ovFkndCSRw.png" /></figure><p>At last!! We have found all the details, first the hidden directory (starting with <em>mo</em>) and the <em>.log </em>file.</p><blockquote>IF YOU ARE PRACTICING ON CYBER SECURITY, REMEMBER THAT EVERYONE STARTS SOMEWHERE, AND I HOPE THIS WILL HELP</blockquote><blockquote>@oldpranks</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a395090a9aa9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walking an Application — TryHackMe WriteUp]]></title>
            <link>https://medium.com/@oldpranks/walking-an-application-tryhackme-writeup-36e296b4b781?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/36e296b4b781</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Wed, 17 Apr 2024 17:58:10 GMT</pubDate>
            <atom:updated>2024-04-17T17:58:10.668Z</atom:updated>
            <content:encoded><![CDATA[<h3>Walking an Application — TryHackMe WriteUp</h3><blockquote>IF YOU ARE PRACTICING ON CYBER SECURITY, REMEMBER THAT EVERYONE STARTS SOMEWHERE, AND I HOPE THIS WILL HELP.</blockquote><blockquote>@oldpranks</blockquote><p>This writeup will demonstrate to you how to manually examine a web application for security flaws using your browser’s built-in features only. Automated security tools and scripts frequently overlook important information and several possible vulnerabilities.</p><p>You can practice this room <a href="https://tryhackme.com/r/room/walkinganapplication">https://tryhackme.com/r/room/walkinganapplication</a></p><h3>Task 1: Walking an Application</h3><p>Deploy the virtual machine and wait for it to start. Take note on the IP address of the machine if your connected via the TryHackMe VPN.</p><p>After the machine has deployed, we’ve been directed to visit the URL. Now, let’s visit it and check what we can find there!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SjH0usPnU1mxqvD_G1undg.png" /></figure><p>Confirm that you have deployed the virtual machine and opened the website.</p><h3><strong>Task 2: Exploring the Website</strong></h3><p>Read and understand the descriptions on the challenge.</p><p><em>We will start taking a deeper look into some of the pages we have discovered in the next task.</em></p><h3><strong>Task 3: Viewing the Page Source</strong></h3><p>For our purposes, viewing the page source can help us discover more information about the web application. The following describes how viewing the page source can be helpful</p><p>-&gt; The page source can often provide us with hints as to whether a framework is being used, and if so, what framework and even which version.</p><p>How do we view the Page Source?</p><p>We can view the page source of the website by <strong><em>CTRL + U </em></strong>or right-click then click <em>“View Page Source”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9fvW7Eeb4O_W4jQfAgo1rQ.png" /></figure><p><strong>What is the flag from the HTML comment?</strong></p><p>Understanding the framework and the version can be very useful as there might be public vulnerabilities within the framework and the website may not be using the latest version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8J_CGybrDNC4YNWNm8-bw.png" /></figure><p>On the comment section we have something like the directory enlisted there. So, let’s try to have it to the our IP address <em>/new-home-beta</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XsFe1nyHI9mrBJvz3CQjEQ.png" /></figure><p>WHOOHH!! Here’s our flag!!!!!!!!!!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*ZpMfBZnnywBp7G9UKp1dtQ.png" /></figure><p><strong>What is the flag from the secret link?</strong></p><p>On the source code, there’s a welcome message which has a <strong><em>href</em></strong> link on it. Follow that link and there it is!! We’ve now obtain our first flag from the HTML document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*OJSNYDcs1izKIfRmeZyleA.png" /></figure><p><strong>What is the directory listing flag?</strong></p><p>I performed directory brute-forcing using the <strong><em>dirsearch</em></strong> tool so as to identify the hidden directories on our web application. Here is what I found out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WDJGrswARl4Kuvytt3S3g.png" /></figure><p>I found the directory <em>/assets</em> and now let’s visit the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*91gzkLx5ivKcLWqS-KZlsw.png" /></figure><p>And now let’s view the <em>flag.txt</em> file;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*dn-qQB6gRsVlLSGC-qvj9A.png" /></figure><p><strong>What is the framework flag?</strong></p><p>We have been given a hint: <em>Find the file on the framework changelog page. </em>Now visiting the changelog page it gives us another clue on solving the task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*Q93NnDBaDdOUtw2ToGLvDg.png" /></figure><p>From the URL bar, add the IP address the directory <em>/tmp.zip </em>The zip file will be downloaded and now let’s check it out. Unzip the file and use the cat command to unveil what’s in the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*Z2QKM-HM_HUBcBbD9R15cQ.png" /></figure><h3>Task 4: Developer Tools — Inspector</h3><p>Click the ‘View Site’ Button and then understand the details there. Then, visit URL on news article which has id=3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYvCd3ZNaoGA7xtZOSxWuw.png" /></figure><h3>Task 5: Developer tools — Debugger</h3><p>Go to the contact webpage, each time we refresh the webpage, we see like a fast red flash. That’s really captured my attention. Let’s check it out if it has anything interesting we can have.</p><p>Inspect the page, then navigate to sources and then then debugger. Do you remember we have our hidden directories when we did directory brute-forcing? Let’s check on one of the directories we have called <em>‘assets/flash.min.js’. </em>Open the min.js file, and establish breakpoints. Breakpoints are points in the code that we can force the browser to stop processing the JavaScript and pause the current execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nE1OdRwBeukR6dTalChYDw.png" /></figure><p>Now, let’s refresh our contact webpage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UASW4vZ4NQFyTZXkvQdYg.png" /></figure><p>There it is!!!!!!!!!</p><h3>Task 6: Developer tools — Network</h3><p>On the contact page, you can delete the list by pressing the trash can icon. Open the network tab and fill in the contact form. Press the Send Message button on the contact page. You will see an event on the network tab. This is the form being sent in the background using the AJAX method. AJAX is a way to send and receive network data in the web application background without affecting the current web page.</p><p>In the contact form, let’s fill some details and submit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HgtRciyVhOviV6Zp3XoJNA.png" /></figure><p>We had an alert that the contact form has been sent. The data we filled out, and now our network bar has changed. <em>I hid the ip addresses.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CkmGSjBUih8cSj2Ue1qiig.png" /></figure><p>Let’s move around the tabs to find the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CjmbZNP95fnu6YheJizt_A.png" /></figure><p>Yes, there it is!!</p><blockquote>IF YOU ARE PRACTICING ON CYBER SECURITY, REMEMBER THAT EVERYONE STARTS SOMEWHERE, AND I HOPE THIS WILL HELP.</blockquote><blockquote>@oldpranks</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36e296b4b781" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bee — Hackviser Writeup]]></title>
            <link>https://medium.com/@oldpranks/bee-hackviser-writeup-305628615e0a?source=rss-671b06461b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/305628615e0a</guid>
            <dc:creator><![CDATA[Daniel Swai]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 09:59:06 GMT</pubDate>
            <atom:updated>2024-03-11T09:59:06.648Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bee — Hackviser Writeup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*kkyRRcF0k8xrI69gAsjyYg.png" /></figure><p>It would be best to use this warmup machine to practice identifying and exploiting vulnerabilities related to SQL Injection and File Upload. This first vulnerability leads to database exploits, while the other one allows malicious files to be uploaded to the server.</p><p>Start the machine. Once the machine has started, you’ll be given the IP address of the target machine.</p><p><strong>Which port(s) are open?</strong></p><p>Perform initial port scanning to the target machine. You can use the nmap tool to perform port scanning.</p><p><em>nmap -sC -sV -v &lt;IP TARGET MACHINE&gt; -Pn</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*2xdvQD7LQdW9yzXBmRCthA.png" /></figure><p><strong>Which domain did you add to the hosts file to login to the site?</strong></p><p>Results from port scanning shows that port 80 is open. Port 80 provides HTTP service, Apache version 2.4.56 (Debian). Now, let’s try to copy the IP address of the target machine and view the as to the Apache web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RxDsGW83rsCqP8J_8RpvlQ.png" /></figure><p>Navigate and open the login page. The page will show the domain host URL on the URL bar. The page’s view as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bga7b0_tX6J7qTtEnHm-kg.png" /></figure><p>However, the website gives an error and won’t open. There is no way to perform DNS name resolution is the source of this issue. For this domain, a DNS record needs to be added in order to execute DNS resolution.</p><p>Therefore the following command may be used to add the IP and DNS name to the file <strong>/etc/hosts </strong>file.</p><p><em>echo “&lt;IP TARGET&gt; &lt;LOGIN URL&gt;” &gt;&gt; /etc/hosts</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*xlh0KfpzGAhnbnOfPkoBsw.png" /></figure><p>Now, let’s refresh the page and view the page once again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shlBobp8uYnJ-zSrBv2v2Q.png" /></figure><p>There it is!!!</p><p><strong>With which vulnerability did you bypass the login panel?</strong></p><p>Connect to the web page, and to the login inputs, try to enter any SQL injection command (I tried to inject SQl commands since port 3306 mysql port was open)</p><p>But the email field only accepts email inputs. So, let’s change the email input and be username to accept any input character.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IBk1VKXZu2jyxb9fQwH4wg.png" /></figure><p><em>The change field inputs, delete the type-attribute in the email field</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cLuGrrZ4Kww-IMCGBK0cA.png" /></figure><p>Then, try to execute the SQL injection payload in the username field. There it is! Now, we have obtained a successful bypass to the dashboard.</p><p><strong>What is the name and extension of the page containing user settings in the panel that you accessed by bypassing login?</strong></p><p>To view for name and extension of the page containing user settings in the panel, let’s navigate to the settings page. View carefully the details on the page. There it is!</p><blockquote>settings.php</blockquote><p><strong>What is the id of the user you get shell on the machine with file upload vulnerability?</strong></p><p>On the upload file page, below shows the details of user including the name “Jack Sparrow”. Now, find the user id, that’s a simple task, right??</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=305628615e0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>