<?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 Vrishabh Bhavsar on Medium]]></title>
        <description><![CDATA[Stories by Vrishabh Bhavsar on Medium]]></description>
        <link>https://medium.com/@vrishabhbhavsar?source=rss-d78787e88f08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*HKSFjtmKShdhT2A7</url>
            <title>Stories by Vrishabh Bhavsar on Medium</title>
            <link>https://medium.com/@vrishabhbhavsar?source=rss-d78787e88f08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:42:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vrishabhbhavsar/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[The Part of Alert Automation Nobody Talks About: Making It Behave When Things Go Wrong]]></title>
            <link>https://medium.com/@vrishabhbhavsar/the-part-of-alert-automation-nobody-talks-about-making-it-behave-when-things-go-wrong-788650070669?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/788650070669</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[log-monitoring]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[n8n]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Mon, 06 Jul 2026 16:33:38 GMT</pubDate>
            <atom:updated>2026-07-06T16:33:38.069Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been building an automation layer on top of a SIEM for the last few days, and somewhere around the third night of debugging the same symptom over and over, I realized the actual project wasn’t what I thought I’d signed up for.</p><p>The pitch, on paper, was simple: alerts come out of the SIEM as a flat, undifferentiated dump — a Critical event and a Minor one show up in the same format, same urgency, same everything. Nothing distinguishes “glance at this eventually” from “someone needs to look at this in the next ten minutes.” And nothing tracks how long something’s been sitting there unacknowledged. So I set out to fix that: pull the alerts, sort them by how serious they actually are, and put a real clock on the ones nobody’s touched, escalating them up the chain if they go too long.</p><p>That part took an afternoon.</p><p>What took the rest of the week was making it not lie to me.</p><h3>The failure mode nobody designs for on day one</h3><p>Here’s what actually happened, more than once: I’d fix something, watch it work correctly for one full run, feel good about it, and then come back later to find duplicate notifications sitting in my inbox — sometimes three or four of the exact same escalation email, timestamped minutes apart.</p><p>The business logic was never wrong. Every individual rule I’d written was correct in isolation. The problem was that the system had no concept of “have I already done this.” Every time it ran, it was answering the question fresh, without checking whether it had answered the same question five minutes earlier.</p><p>That’s an easy trap to fall into, because it doesn’t show up in testing if you only ever run something once, in a clean environment, in order. It only shows up once a schedule is involved — once the thing can run late, run twice, get interrupted, or overlap with itself. Which, if you’re building something meant to run unattended, is exactly the situation it needs to survive.</p><h3>Two workflows that don’t talk to each other</h3><p>The system ended up split into two independent pieces, and I didn’t plan that split up front — it emerged out of trying to fix the duplication problem.</p><p>One piece is responsible for noticing new alerts and getting the right notification to the right place, sorted by severity. The other piece is responsible for tracking how long something’s gone unacknowledged and escalating it through a few tiers — a first reminder, then a manager-level nudge, then something more serious — if nobody deals with it in time.</p><p>Neither one calls the other. Neither one knows the other exists, really. They just both read from and write to the same shared data, and that shared data is the only thing either of them trusts. If I ever wanted to swap out how alerts get pulled from the SIEM, or change what “escalated” means, I could do it to one side without the other side ever knowing anything changed.</p><p>I didn’t love this design at first — it felt like more moving parts than the problem needed. It turned out to be the reason the duplication bugs were fixable at all. Once I stopped trying to have the workflows coordinate directly and made them agree on a shared source of truth instead, most of the weird timing bugs stopped being possible by construction, rather than something I had to keep patching one at a time.</p><h3>The fix that mattered wasn’t clever</h3><p>The actual insight that ended the duplicate-email problem was almost anticlimactic: every decision the system makes has to be re-derivable from scratch, using nothing but a timestamp and whatever’s currently recorded as done. Not “did this run three times,” not “is this the fourth check today” — just, given how much real time has passed and what’s already been handled, is there anything new to do right now?</p><p>If the answer is no, it does nothing. If the answer is yes, it does the one thing, and it records that it did it. That’s the whole trick. It sounds almost too simple to be the thing that took days to arrive at, but I’d guess that’s true of most reliability fixes — they’re rarely clever in the moment, they’re just the one detail you didn’t get right the first four times.</p><p>I also learned, somewhat embarrassingly, that “the node executed successfully” and “the node did the thing I meant” are two completely different claims. I had at least one bug where a step ran, reported success, produced no error — and had simply written the old value back over itself instead of the new one. Nothing about that shows up as a failure. It just quietly does nothing, forever, until you go looking at the actual data and notice it never changed.</p><h3>What I’d tell someone starting this from scratch</h3><p>If you’re building something similar — anything that has to run repeatedly, unattended, against a system you don’t fully control — the advice I’d actually give isn’t about the specific logic. The logic is the easy 20%.</p><p>The hard 80% is assuming, from the very first version, that your automation will get re-run at the wrong time, skipped entirely once, and executed twice in a row by accident. If your design only produces the right answer when everything runs exactly on schedule, it will eventually produce the wrong one — probably at 2am, probably right when you’re not watching.</p><p>Design for the version where it doesn’t run on time. Everything else follows from that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=788650070669" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLMNR Poisoning using Kali Linux]]></title>
            <link>https://medium.com/@vrishabhbhavsar/llmnr-poisoning-using-kali-linux-ecad1d4934bf?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecad1d4934bf</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[llmnr-poisoning]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[redteam-tool]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 18:37:50 GMT</pubDate>
            <atom:updated>2025-08-18T18:37:50.962Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog I will be writing about what is LLMNR Poisoning Attack and how we can perform it using Kali Linux Responder. Kindly, do not use this in any unethical manner and use it for educational purposes only.</p><p><strong>What is LLMNR?</strong></p><p><strong>LLMNR</strong> is like a friendly shout-out on your local network. When a device (like your computer) can’t find another device’s name through a DNS server, it asks everyone nearby, “Hey, does anyone know this name?” It works for both IPv4 and IPv6 devices and doesn’t need a DNS server to be set up.</p><p><strong>NetBIOS (NBT-NS)</strong> is an older version of this idea, used mostly in early Windows networks. It does the same thing — when DNS fails, it sends a message to the local network to find a device’s name.</p><p>In short:</p><ul><li>Both LLMNR and NetBIOS are like backup plans for finding devices on your network when DNS doesn’t know the answer.</li><li>LLMNR is newer and works with modern networks, while NetBIOS is older, mainly for legacy Windows systems.</li></ul><p><strong>How is Active Directory Vulnerable to LLMNR?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6i9Nk5I0PJmiFiZq3n4lw.png" /></figure><p><strong>Exploiting LLMNR in Active Directory:</strong></p><p>1. Open Responder on Kali Machine.</p><pre>sudo responder -I eth0</pre><p>For some, you can even use -dwP and it might even work without sudo command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*zxMz3RdC-bFxkLolCUyung.png" /><figcaption>Responder</figcaption></figure><p>2. Go to your windows active directory to generate some connections between two systems.</p><blockquote>P.S.: Don’t forget to enable LLMNR in the windows system, it is simple, you have to press Win+R and type regedit, then go to <em>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient, if you don’t see any LLMNR key, right click DNSClient and create a new key named EnableMultiCast. Also, double click the key and if the value is 0, it is disabled and if the value is 1, it is enabled.</em></blockquote><p>Now, simply go to file explorer and click on network, go click on the search bar and search “\\target\Administrator”. This will open a UAC for password, enter your password and check on the Kali Responder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*qgDM1zp2SnwkYLOysRRuSQ.png" /><figcaption>Windows Network</figcaption></figure><p>Simply, check the NTLM hash generated due to the activity. Copy, the entire NTLMv2-SSP Hash and make a new text file using vim or nono, whichever you prefer, and past the entire thing over there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*slnbjnQP2UtuuCeg4UckKg.png" /><figcaption>Responder</figcaption></figure><p>For this example I created a short text file with 5 to 10 passwords out of which one password is correct, but you can also get a bigger list of words from github.</p><p>3. Crack the hash using kali tools like john-the-ripper, or hashcat. I used john-the-ripper in my case. Simply type</p><pre>john hash_victim.txt --wordlist=wordlist.txt<br>## john &lt;hash_file.txt&gt; --wordlist=&lt;word_list.txt&gt;</pre><p>Run this command and you will get the password of the windows system easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*k0p1f7phNanceFff-v_LSg.png" /><figcaption>Password Retrieved</figcaption></figure><p>LLMNR and NBT-NS are protocols that help devices find each other on a local network when DNS fails. They’re convenient but have a big flaw: they don’t verify responses. This makes it easy for attackers to trick devices with fake replies, leading to spoofing or man-in-the-middle attacks. In today’s connected world, these risks can’t be ignored.</p><p>To keep your network safe, consider disabling LLMNR and NBT-NS, keeping systems updated with patches, and building a strong cybersecurity mindset in your team. These steps are key to locking down vulnerabilities.</p><p>I will be writing few more blogs on different AD DC attacks and also start writing about how to investigate these attacks using SIEM or the Windows Event Viewer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecad1d4934bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brute Forcing Wifi Password]]></title>
            <link>https://medium.com/@vrishabhbhavsar/brute-forcing-wifi-password-651ef1f10835?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/651ef1f10835</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bruteforce-attack]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 20:12:15 GMT</pubDate>
            <atom:updated>2025-08-07T20:12:15.165Z</atom:updated>
            <content:encoded><![CDATA[<p>Wifi Cracking is illegal to perform in multiple countries and this blog is only for educational purposes so do not mis-use this knowledge (however, I don’t think anyone uses brute force to crack wifi password anymore but be careful).</p><p>We will be using kali machine in this blog and learn how to crack wifi password. We will need kali vm (*obviously), a network adapter with monitor mode capability(*I have used alpha network adapter), wireshark on kali machine, and loads of time to wait till the password is cracked.</p><p>It is very time taking to crack a wifi password using brute-force as it is a trial and error method. Nowadays hackers have other methods to crack the wifi password like packet sniffing, phishing attacks, man-in-the-middle(MITM) attack, evil twin attack, etc.</p><p>In the last blog I wrote on how to connect your alfa adapter to kali virtual machine, if you have not read that do it now. <a href="https://medium.com/@vrishabhbhavsar/how-to-connect-alfa-adapter-to-kali-virtual-machine-c77033a953ec">Link</a>.</p><p><strong>Step 1: Kill the unnecessary processes</strong></p><p>For this command to run you need to switch to super user using “sudo su” or “sudo -i” or however you like it or know it and check the process running which can be a problem for the aircrack commands to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*L626uNU3JbeILKi90DoyEg.png" /><figcaption>airmon-ng check</figcaption></figure><p>We need to kill these processes to go forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*CY8MBifb8tai2N_Qo7ONpA.png" /><figcaption>airmon-ng check kill</figcaption></figure><p>Once, it is done we move to our next step.</p><p><strong>Step 2: Turn Network Adapter to “Monitor Mode” from “Managed Mode”:</strong></p><pre>airmon-ng start wlan0<br>iwconfig wlan0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DX8RAOWtTwHtthJ47XuNjA.png" /><figcaption>Start Monitor Mode</figcaption></figure><p><strong>Step 3: Now we start the reconnaissance by scanning the nearby networks:<br></strong>Remember this is for educational purpose only so do not try to attempt it on an unknown network as it is a punishable crime. So try it only on your home network. I my case I will be using my phone’s hotspot and crack it’s password.</p><pre>airodump-ng &lt;interface&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*PdX_cddXD4oSUQX4HA59UQ.png" /><figcaption>airodump-ng wlan0</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KkJs9-Q7abxt9DBHi47brQ.png" /><figcaption>Result</figcaption></figure><p>Keep a copy of the <strong>BSSID</strong>(<strong>Basic Service Set Identifier, in simple words Mac Address of the router</strong>), <strong>CH</strong>(<strong>Channel on which the network operates on</strong>), <strong>ESSID</strong>(<strong>Name of the Network</strong>) in the notepad and then exit the process. In the next command exchange the values as per your own.</p><p><strong>Step 4: Capture Network Packets.</strong></p><p>We are gonna check the clients connecting to the network. Run the command:</p><pre>airodump-ng wlan0 -d &lt;BSSID&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*A-SeV8PKpfOgFzElAUk4ow.png" /></figure><p>We can see the devices being connected to our selected wifi.</p><p>Now run the command:</p><pre>airodump-ng -w &lt;wifi&gt; -c &lt;ch&gt; --bssid &lt;bssid&gt; wlan0</pre><p>Here “wifi” is the name of the network capture file. Which in my case will be saved as wifi.cap, and later we will open it up on wireshark and use to crack the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*BRV4FrksKu5ZLuEz97qb9A.png" /></figure><p>In one window terminal let this run and open a new window where we will deauthenticate the client devices connected to the network.</p><pre>sudo aireplay-ng --deauth 0 -a &lt;BSSID&gt; wlan0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*FVP7R0jEpLabybZwSKoKEw.png" /><figcaption>deauth</figcaption></figure><p>We have captured the network packets, which will be saved in the same directory with the extension of “.cap”. Next we just gotta do is take a wordlist and run brute force on the captured network packet file. For this example I have created a small wordlist named “wordlist.txt” of 5 to 10 possible passwords.</p><p><strong>Step 5: Start the Attack.</strong></p><p>It is very simple but time taking process. The longer the wordlist is, the more time it takes to find the password.</p><pre>aircrack-ng -w wordlist.txt &lt;.cap_file&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*ag1zVJi3in-A_6OJdmChxg.png" /><figcaption>KEY FOUND!</figcaption></figure><p>So, we found the password for our wifi. Next, I might write an article on Evil-Twin attack so stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=651ef1f10835" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect Alfa adapter to Kali Virtual Machine]]></title>
            <link>https://medium.com/@vrishabhbhavsar/how-to-connect-alfa-adapter-to-kali-virtual-machine-c77033a953ec?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/c77033a953ec</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 18:59:08 GMT</pubDate>
            <atom:updated>2025-08-07T18:59:08.646Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog I will writing a short process on how to connect Alfa Network Adapter with Monitor Mode capabilities to your Kali Linux Virtual Machine. I have seen it on the youtube video of “David Bomal”, so if you wanna watch the video. Here is the <a href="https://www.youtube.com/watch?v=hEXwOkyYNL0&amp;ab_channel=DavidBombal">Link</a>.</p><p>First we check a few things</p><pre>iwconfig</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*8ABtZEYKFUo_JHm3P8TvKQ.png" /></figure><p>We can see that the network adapter is not being shown to the system due to which we still need to install the drivers to make it work on our linux machine. Let’s check the release version of our kali machine.</p><pre>lsb_release -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*2Zkp0NokgULOEZfQ_91_tA.png" /></figure><p>So, our linux version is 2025.2, and now we need to install the correct versions of driver. Firstly, update and upgrade your kali VM. And at the end reboot your machine.</p><pre>sudo apt update -y<br>sudo apt upgrade -y<br>sudo apt dist-upgrade -y<br>sudo reboot now</pre><p>Now we check whether our device is connected or not.</p><pre>lsusb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*zUsgcw50Ja2HPp_NtOKIqQ.png" /></figure><p>From here we take the adapter version, which in my case is rtl8812au, so there are two ways to install the version either using apt or cloning the directory from github. We will try both.</p><pre>sudo apt install rtl88xxau-dkms<br>sudo apt install dkms</pre><p>And then we wait. When we check the drivers again iwconfig, we still cannot see the adapter being connected. So let’s go through the github way.</p><p>git clone the directory for <a href="https://github.com/aircrack-ng/rtl8812au">RTL8812au</a>.</p><pre>git clone https://github.com/aircrack-ng/rtl8812au<br>cd rtl8812au<br>ls<br>make<br>sudo make install</pre><p>Some people might need to use root privileges for make command to install. Also, you might get errors during the “make” command. You can either google or chatgpt it. Or else if it shows a error like:</p><pre>make[1]: Entering directory &#39;/home/kali/rtl8812au&#39;<br>make[1]: * /lib/modules/6.12.25-amd64/build: No such file or directory.  Stop.<br>make[1]: Leaving directory &#39;/home/kali/rtl8812au&#39;</pre><p>It means you need to install the module manually by typing the command:</p><pre>sudo apt install linux-headers-$(uname -r)</pre><p>This will install the header and the output should be something like ‘6.12.25-amd64’. Then go back to the rtl8812au directory and run the command ‘make clean’ and redo the make and make install process.</p><p>Once the make install command successfully runs check the iwconfig again. If it does not show the first time, remove the adapter and reconnect and then check. If it still does not show, go to settings of the VM -&gt; USB, and make sure the USB2.0 (OHCI + EHCI) Controller is selected and in USB Devices Filter you have the Realteck 802.11n NIC added, and then check whether the adapter is showing up or not on your kali linux virtual machine.</p><p>The output should be something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*f-a27T2sB6KQKx1s_xJ6-A.png" /></figure><p>To check whether it is properly functioning or not and the adapter has monitor mode on it.</p><pre>sudo wifite</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*KpX02_RmqG4nfR5gM4YKtw.png" /></figure><p>So, now the adapter is connected to your machine and you can enable the monitor mode on it using commands. Make sure to disable the monitor mode after you have completed your work. This article is just for educational purposes and should not be used otherwise. Soon I will be posting a similar article on wifi hacking via brute force using this same adapter which should not be used for unethical hacking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c77033a953ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Atomic Red Team]]></title>
            <link>https://medium.com/@vrishabhbhavsar/installing-atomic-red-team-4cf4169a4d27?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cf4169a4d27</guid>
            <category><![CDATA[atomic-red-team]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Thu, 26 Jun 2025 23:42:59 GMT</pubDate>
            <atom:updated>2025-06-26T23:42:59.018Z</atom:updated>
            <content:encoded><![CDATA[<p>Atomic Red Team is a “RedCanaryCo” Product which is a set or library of tests mapped to <a href="https://attack.mitre.org/">Mitre Att&amp;ck</a> Framework. The security teams can use Atomic Red Team to quickly test their environment for any security flaws and vulnerabilities.</p><p>In this blog I will tell the basics on how to install “Atomic Red Team” on your windows virtual machine.</p><p>First turn down your defenders and firewalls, as this is a red teaming tool we need to turn them off. Then go to the <a href="https://github.com/redcanaryco/atomic-red-team">Atomic Red Teams Github</a>, and download the zip. Afterwards, scroll down and go to the <a href="https://github.com/redcanaryco/invoke-atomicredteam">Invoke-Atomic</a>, and also download it’s zip file. Now create a new folder named AtomicRedTeam in the C Drive and paste the unzipped folders into it.</p><p>Before we move forward, remove the “-master” from both the folders, for easy installation as the commands given on the installation page do not contain “-master” in them. Also, move the folder named “atomics” from “atomic-red-team-master” to “AtomicRedTeam”.</p><p>Now, simply go to the “Installation and Usage Instructions”, on the right side click on <a href="https://github.com/redcanaryco/invoke-atomicredteam/wiki/Installing-Invoke-AtomicRedTeam">Import the Module</a>.</p><p>Then, write these three commands on your powershell. (I prefered using Administrative Powershell, you can use any)</p><pre>powershell -exec bypass<br>Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUser<br>Import-Module &quot;C:\AtomicRedTeam\invoke-atomicredteam\Invoke-AtomicRedTeam.psd1&quot; -Force</pre><p>It should look something like this on your powershell and on your C Drive folders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*7SxIjS6yL8a8w00bIrTiCA.png" /><figcaption>Powershell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*6APSYI_55nE5qlYcewWQKA.png" /><figcaption>Folder</figcaption></figure><p>Now, if you execute the command “get-module”, you can clearly see that the Invoke-AtomicRedTeam has been installed in your windows machine. So, we can now test whether it works properly or not. For this we can simply go to “<a href="https://github.com/redcanaryco/invoke-atomicredteam/wiki/List-Atomic-Tests">List Atomic Tests</a>” on the right panel of the page where we got the installation commands and check what commands work with Invoke Atomic Red Team.</p><p>Let’s work on T1016 i.e., System Network Configuration Discovery from Mitre Att&amp;ck Framework.</p><pre>Invoke-AtomicTest T1016 -ShowDetailsBrief<br>Invoke-AtomicTest T1016 -ShowDetails<br>Invoke-AtomicTest T1016 -CheckPrereqs</pre><p>In the -ShowDetialsBrief command, the output will be majorly the heading of different steps of the attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*_cW8n_jttG7Vs4jimVt5aQ.png" /><figcaption>-ShowDetailsBrief</figcaption></figure><p>If you want to know deeper into each topic then run -ShowDetails, the command will print all the exact commands like in T1016–1, it will show the commands like “ifconfig /all”, “netstat”, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*5BZOmZJOWm-Ml5NKeSIN1w.png" /><figcaption>-ShowDetails</figcaption></figure><p>Similarly, we can even check the prerequisites for a attack to be successfully executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*wlK_xNnCWFoyWth3V_iuVQ.png" /><figcaption>-CheckPrereqs</figcaption></figure><p>As per the prerequisites, there is only one command that cannot be ran as the system is not vulnerable to it, rest all is ok.</p><p>Then to practically run the test, remove everything from behind and simply run Invoke-Atomictest, and start looking into your SIEM tool for the logs.</p><p>It will take some time but will be completed soon and you can easily see what all has been successfully executed and which all processes have failed.</p><p>I will soon write up more on red teaming lab setups.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cf4169a4d27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementation of Static Routing in Cisco using 2 Routers, 2 Switches and PCs]]></title>
            <link>https://medium.com/@vrishabhbhavsar/implementation-of-static-routing-in-cisco-using-2-routers-2-switches-and-pcs-c046ebf992be?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/c046ebf992be</guid>
            <category><![CDATA[network-protocols]]></category>
            <category><![CDATA[cisco]]></category>
            <category><![CDATA[router]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Mon, 31 Mar 2025 18:01:03 GMT</pubDate>
            <atom:updated>2025-03-31T18:34:41.631Z</atom:updated>
            <content:encoded><![CDATA[<p>Static Routing in Networking is like a traffic cop that keeps your network organized and running smoothly. It assigns a specific path to each part of the network and keeps track of any changes. This makes sure your network stays stable and consistent, and it also adds an extra layer of security because only one person can change the routing rules.</p><p>Obviously, you will be required to install cisco packet tracer to complete this Routing Practical, and if you have not yet installed it or don’t know anything about it go read my previous blogs <a href="https://medium.com/@vrishabhbhavsar/basic-switch-setup-in-cisco-packet-tracer-using-a-console-wire-ccf1b04ed4e0">here</a> or via my profile&gt;Lists&gt;Cisco.</p><p>Devices we will need: 4 PCs, 2 PT-Switch, and 2 PT-Router.</p><p>We first create the network topology, you may use automatic cables to connect them to ports easily or else you can also connect them using cross-over or straight through copper cables. Cross-over cables are used to connect devices of different types(Like PC and a switch) whereas a Straight Thorugh cable is used to connect two devices of same type(Like two Routers). It should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q9dtaugxvL4Yli2Db3-jrQ.png" /><figcaption>Topology</figcaption></figure><p>Don’t worry, it will show Red Arrows for now as we have not yet configured any router and its ports. Once we do so they will turn green.</p><p>Step 1: Configure the PCs<br>IP Addressing Table for PCs:<br>Device → IP Address → Subnet Mask → Default Gateway<br>PC0 → 192.168.1.2 → 255.255.255.0 → 192.168.1.1<br>PC1 → 192.168.1.3 → 255.255.255.0 → 192.168.1.1<br>PC2 → 192.168.2.2 → 255.255.255.0 → 192.168.2.1<br>PC3 → 192.168.2.3 → 255.255.255.0 → 192.168.2.1</p><p>Give IP Address to the PCs as per the above table. Click on PC&gt;Desktop&gt;IP Configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujeg_cRaKAiGZf13d8YixA.png" /></figure><p>Do the same on each PC. We can also assign static IP Address using commands “ipconfig &lt;ip address&gt; &lt;subnet mask&gt; &lt;default gateway&gt;”.</p><p>Configure the Routers one-by-one now. Using the following configuration:<br>Router0 → F0/0 → 192.168.1.1 → 255.255.255.0<br>Router0 → S2/0 → 11.0.0.1 → 255.255.255.0<br>Router1 → F0/0 → 192.168.2.1 → 255.255.255.0<br>Router1 → S2/0 → 11.0.0.2 → 255.255.255.0</p><p>I have given a syntax below, which you will need to configure for all four ports on the router.</p><pre>Router&gt;en<br>Router#conf t<br>Enter configuration commands, one per line.  End with CNTL/Z.<br>Router(config)#int S2/0<br>Router(config-if)#ip address 11.0.0.1 255.255.255.0<br>Router(config-if)#no shut</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*0VnfAjfVdLg9B5UVi5WIkw.png" /><figcaption>Routers Physical Connection</figcaption></figure><p>After Configuration, you will see that the wire between routers have turned Green, which means that both the Serial Ports are switched on but it is not yet configured to transfer packet from one Router to another. For tranversing the packets we will need to use the command “ip route”.</p><p>Router0:</p><pre>Router(config)#ip route 192.168.2.0 255.255.255.0 11.0.0.2</pre><p>Router1:</p><pre>Router(config)#ip route 192.168.1.0 255.255.255.0 11.0.0.1</pre><p>Verify the connection between the Routers by pinging them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*vRLGrbnjnBebez-1JOtPog.png" /><figcaption>Router Ping</figcaption></figure><p>As per the previous blog configure the switches and set the default gateway of Switch0 and Switch1 as 192.168.1.1 and 192.168.2.1 respectively.</p><p>To verify the connection, go to any PC and try and ping the PC on another router(network).</p><p>I will be uploading more articles on cisco packet tracer and sooner I will be posting things about wifi password cracking and evil-twin attack using kali linux only for educational purposes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c046ebf992be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Switch Setup in Cisco Packet Tracer without using Console Cable]]></title>
            <link>https://medium.com/@vrishabhbhavsar/basic-switch-setup-in-cisco-packet-tracer-without-using-console-cable-7a4e39d327fc?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a4e39d327fc</guid>
            <category><![CDATA[routing-and-switching]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cisco]]></category>
            <category><![CDATA[cisco-packet-tracer]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 02:32:40 GMT</pubDate>
            <atom:updated>2025-02-21T02:32:40.328Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, I am going to do a simple configuration of a Cisco Switch to a PC using a copper straight-through cable.</p><p><strong>Step 1 Setup the Topology:<br></strong>First open the Cisco Packet Tracer and add 1 Cisco 2960 Switch and 1 PC. The nodes can be found on the bottom corner of the screen (p.s., just hover over them if you can’t recognise the symbols and the name will pop on the screen and then slowly you will learn each and every name).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/0*xvXVBl_cAGf-Nw8P.png" /><figcaption>Different nodes available in cisco packet tracer</figcaption></figure><p>The top row is components like “Network Devices”, “End Devices”, “Components”, “Connections”, “Misc”, and “Multiuser Connection”. The bottom row is the sub-components like “PC”, “Switches”, “Routers” and so more.</p><p>Now add <strong>1 Cisco 2960 Switch</strong> and <strong>1 PC</strong> on the screen by dragging and dropping it on the screen.<br>Connect the PC and the switch using <strong>console cable</strong>, using <strong>port RS232 on PC </strong>and <strong>Console port on the switch</strong>. Then connect it via a <strong>Copper Straight-through Cable</strong>, using port <strong>FastEthernet0</strong> on PC and <strong>FastEthernet0/1</strong> on the switch. It should seem something like the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/0*sa4hARmmsFc8RGEh.png" /><figcaption>Packet Tracer</figcaption></figure><p><strong>Step 2: Configure the Switch :</strong></p><p>Access the Switch CLI by double clicking the switch icon and then select the CLI tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*KJBJaXUeQ1Mskh46f2BO-Q.png" /><figcaption>CLI of the Switch</figcaption></figure><p>The CLI of the Switch would look something like above. Now enter the following commands to configure its IP Address and Default Gateway.<br>It should seem something like this. Press Enter and start typing the following commands:<br>a. enable<br>b. conf t<br>c. hostname S1<br>d. no ip-domain-lookup<br>e. enable secret cisco123</p><p>Now assign an IP Address to VLAN 1<br>a. interface vlan 1<br>b. ip address 192.168.1.1 255.255.255.0<br>c. no shutdown<br>d. exit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhz24fqgMqx70I9OrwW7WQ.png" /></figure><p><strong>Configure a Default Gateway<br></strong>S1(config)# ip default-gateway 192.168.1.254</p><p><strong>PC Configuration</strong></p><p>Press OK and then Click Enter. Then, type the following commands on the terminal:<br>a. enable<br>b. configure terminal<br>c. hostname S1<br>d. no ip domain-lookup<br>e. enable secret cisco123</p><p>Now, assign an IP Address to VLAN 1 using the PC’s Terminal:<br>a. interface vlan 1<br>b. ip address 192.168.1.1 255.255.255.0<br>c. no shutdown<br>d. exit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1LsryMo6ZXSRdYXY.png" /><figcaption>Terminal on PC</figcaption></figure><p>Now Enable Remote Access (<strong>SSH &amp; Telnet</strong>)</p><p>Write the following commands:<br>a. line vty 0 4<br>b. password cisco<br>c. login<br>d. transport input ssh<br>e. transport input telnet<br>f. exit</p><p><strong>Step 3: Configure the PC:</strong></p><p>Exit the Terminal and then go to <strong>Desktop</strong> and select <strong>IP Configuration</strong>.<br>Set the Following(that’s what I kept, yo may keep your ):<br>• <strong>IP Address</strong>: 192.168.1.10<br>• <strong>Subnet Mask</strong>: 255.255.255.0<br>• <strong>Default Gateway</strong>: 192.168.1.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MwCZg2YYZtLHLPht.png" /><figcaption>PC Configuration</figcaption></figure><p><strong>Step 4: Verify Connectivity:<br></strong>Open Command Prompt on PC and ping the switch:<br><strong>ping 192.168.1.1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QdaDMq6inQz_ToO9.png" /><figcaption>Ping on PC Terminal</figcaption></figure><p>If the ping is successful that means that the connection is successfully created. You can try to add another PC or 10 more PCs to the same switch and try and ping any PC with any other to cross verify the connectivity of the systems with each other. If the ping results are “request time out”, then cross check the switch and PC configuration or retry the whole thing.</p><p>I will be posting a few more articles on Cisco Packet Tracer and different Routing Techniques soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a4e39d327fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Switch Setup in Cisco Packet Tracer using a Console Wire]]></title>
            <link>https://medium.com/@vrishabhbhavsar/basic-switch-setup-in-cisco-packet-tracer-using-a-console-wire-ccf1b04ed4e0?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccf1b04ed4e0</guid>
            <category><![CDATA[cisco]]></category>
            <category><![CDATA[cisco-packet-tracer]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 02:12:28 GMT</pubDate>
            <atom:updated>2025-02-21T02:12:28.025Z</atom:updated>
            <content:encoded><![CDATA[<p>Cisco Packet Tracer is a free, interactive network simulation tool that helps users learn how to design and manage computer networks. It’s available for multiple operating systems, including Windows, Mac OS, and Linux.</p><p><strong>Features</strong></p><ul><li><strong>Simulation</strong>: Create virtual network topologies using simulated networking devices</li><li><strong>Visualisation</strong>: See how data travels across a network</li><li><strong>Collaboration</strong>: Work with others to solve problems and learn networking concepts</li><li><strong>Assessment</strong>: Author activities and assess user performance</li><li><strong>Physical mode</strong>: Practice setting up device racks and cables</li><li><strong>Simulation mode</strong>: Watch how data travels across a network</li></ul><p><strong>Cisco Packet Tracer</strong> is used by Network Engineers to test their production environment’s network configuration before physical setup to ensure the security and proper functioning of each and every node of their network. Cisco also has some free and paid courses for one to learn more about networking which can be found <a href="https://www.netacad.com/cisco-packet-tracer">here</a>.</p><p>In this blog, I am going to do a simple configuration of a Cisco Switch to a PC using a copper straight-through cable and a console wire.</p><p><strong>Step 1 Setup the Topology:</strong></p><p>First open the Cisco Packet Tracer and add 1 Cisco 2960 Switch and 1 PC. The nodes can be found on the bottom corner of the screen (p.s., just hover over them if you can’t recognise the symbols and the name will pop on the screen and then slowly you will learn each and every name).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*XbTyWEYMBUvCzpnOw7Atuw.png" /><figcaption>different nodes available in cisco packet tracer</figcaption></figure><p>The top row is components like “Network Devices”, “End Devices”, “Components”, “Connections”, “Misc”, and “Multiuser Connection”. The bottom row is the sub-components like “PC”, “Switches”, “Routers” and so more.</p><p>Now add <strong>1 Cisco 2960 Switch</strong> and <strong>1 PC</strong> on the screen by dragging and dropping it on the screen.<br>Connect the PC and the switch using <strong>console cable</strong>, using <strong>port RS232 on PC </strong>and <strong>Console port on the switch</strong>. Then connect it via a <strong>Copper Straight-through Cable</strong>, using port <strong>FastEthernet0</strong> on PC and <strong>FastEthernet0/1</strong> on the switch. It should seem something like the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*yKwCXXlAiCIw_z8yw5YvYg.png" /><figcaption>Packet Tracer</figcaption></figure><p><strong>Step 2: Configure the Switch via Console:</strong></p><p>Access the CLI of PC, go to Desktop then on Terminal. Let the default settings be kept.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbfVkVaD-7-QZKymn38NOg.png" /><figcaption>PC Configuration</figcaption></figure><p>Press OK and then Click Enter. Then, type the following commands on the terminal:<br>a. enable<br>b. configure terminal<br>c. hostname S1<br>d. no ip domain-lookup<br>e. enable secret cisco123</p><p>Now, assign an IP Address to VLAN 1 using the PC’s Terminal:<br>a. interface vlan 1<br>b. ip address 192.168.1.1 255.255.255.0<br>c. no shutdown<br>d. exit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u_f8HAoklKRIM8VPVk6Lfg.png" /><figcaption>Terminal on the PC</figcaption></figure><p>Now Enable Remote Access (SSH &amp; Telnet)</p><p>Write the following commands:<br>a. line vty 0 4<br>b. password cisco<br>c. login<br>d. transport input ssh<br>e. transport input telnet<br>f. exit</p><p><strong>Step 3: Configure the PC:</strong></p><p>Exit the Terminal and then go to <strong>Desktop</strong> and select <strong>IP Configuration</strong>.<br>Set the Following(that’s what I kept, yo may keep your ):<br>• <strong>IP Address</strong>: 192.168.1.10<br>• <strong>Subnet Mask</strong>: 255.255.255.0<br>• <strong>Default Gateway</strong>: 192.168.1.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zb3aDfXO5nLw4Y1uflBjKA.png" /><figcaption>PC Configuration</figcaption></figure><p><strong>Step 4: Verify Connectivity:<br></strong>Open Command Prompt on PC and ping the switch:<br><strong>ping 192.168.1.1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0X_mC173Ueacdw3wLQj3eQ.png" /><figcaption>Ping on PC Terminal</figcaption></figure><p>If the ping is successful that means that the connection is successfully created. You can try to add another PC or 10 more PCs to the same switch and try and ping any PC with any other to cross verify the connectivity of the systems with each other. If the ping results are “request time out”, then cross check the switch and PC configuration or retry the whole thing.</p><p>I will be posting a few more articles on Cisco Packet Tracer and different Routing Techniques soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccf1b04ed4e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Wazuh in your Linux environment]]></title>
            <link>https://medium.com/@vrishabhbhavsar/how-to-install-wazuh-in-your-linux-environment-e154c63fd3a2?source=rss-d78787e88f08------2</link>
            <guid isPermaLink="false">https://medium.com/p/e154c63fd3a2</guid>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[wazuh]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Vrishabh Bhavsar]]></dc:creator>
            <pubDate>Mon, 20 Jan 2025 17:36:25 GMT</pubDate>
            <atom:updated>2025-01-20T17:53:22.019Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous blog I gave some basic information on Wazuh as a SIEM tool. In this blog I will cover how to install it on your desired linux machine.</p><p>First of all install the linux machine, for this article I will be using Ubuntu 24.04.1. As Cent OS 7and 8 have reached there End-Of-Life and Cent OS 9 is not a supported Operating System, so you might need to go through some extra efforts to do so. If you are unable to do so in your environment, do not worry. You can also install in on other supported OS like RHEL, or AWS. For students, you need not to buy a RHEL machine or AWS, simply take the free trial and keep using temporary mail ids or keep extending it as long as you need it. (p.s.: As a student I generally prefer using temporary mail every time my free trial ends)</p><p>In this installation, we will be doing all-in-one, as a student we only need it for our home environment and need not to know every node of Wazuh individually. But you can go through each node individually for deeper understanding.<br>Step 1: Run the following command:</p><pre>curl -sO https://packages.wazuh.com/4.10/wazuh-install.sh &amp;&amp; sudo bash ./wazuh-install.sh -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KvgxjM6Kjt7zu-JCFjXPPw.png" /></figure><p>This command will take some time, depending upon the specification of your virtual machine and will download all three nodes on the same machine, hassle-free. Once the installation is complete, the prompt will show the username and password for the dashboard. As you can see in the below image that all three nodes were installed separating creating three different processes but were installed using only one command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CrtnOsZtCxI7b9RygS_AAQ.png" /><figcaption>After completion</figcaption></figure><p>At the end you can clearly see the username and password for the GUI is given.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*RlE9PtT1pCbnm-c0rRKKgQ.png" /><figcaption>Username &amp;Password</figcaption></figure><p>Step 2: Access the dashboard:</p><p>Access your Wazuh Dashboard on “https://&lt;wazuh-dashboard-ip&gt;”. You could also specify the port number on which you want to access the dashboard for your Wazuh SIEM. And if you are using the Ubuntu machine itself you can also access it simply by “https://127.0.0.1:443” or “https://localhost:443”(localhost = 127.0.0.1, 0.0.0.0).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5Zz8zds2-iYAZMyM-NVyg.png" /><figcaption>Initiating Wazuh Dashboard</figcaption></figure><p>When you access the Wazuh dashboard for the first time, the browser shows a warning message stating that the certificate was not issued by a trusted authority. This is expected and the user has the option to accept the certificate as an exception or, alternatively, configure the system to use a certificate from a trusted authority.</p><p>Don’t worry if you forget the password for the GUI. You can always find it in the file “wazuh-install-files.tar” inside the “wazuh-passwords.txt” by running a simple command:</p><pre>sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt</pre><p>Step 3: Install the agent on your end-point system.</p><p>The agent installation depends from endpoint to endpoint, whether it is a Windows OS, Linus OS or MacOS. Wazuh supports 6 Operating Systems naming: Linux, MacOS, Windows, Solaris, AIX and HP-UX.</p><p>In this article I am going to install it on WindowsOS and Linux.</p><ol><li>Linux:</li></ol><p>One can install and deploy agent on linux using three modes, yum, apt, or ZYapp.</p><p>a. yum:</p><pre>WAZUH_MANAGER=&quot;10.0.0.2&quot; yum install wazuh-agent</pre><p>b. apt:</p><pre>WAZUH_MANAGER=&quot;10.0.0.2&quot; apt-get install wazuh-agent</pre><p>c. ZYapp:</p><pre>WAZUH_MANAGER=&quot;10.0.0.2&quot; zypper install wazuh-agent</pre><p>After installing and deploying the agent, we need to make sure that it automatically enables whenever a system is rebooted, if we don’t do the next step, you need to start the agent everytime your system starts or else the agent will stop sending the logs to the central component.</p><p>a. systemd:</p><pre>systemctl daemon-reload<br>systemctl enable wazuh-agent<br>systemctl start wazuh-agent</pre><p>b. SysV init</p><pre>#for rpm based OS:<br>chkconfig --add wazuh-agent<br>service wazuh-agent start<br><br>#for debian based OS:<br>update-rc.d wazuh-agent defaults 95 10<br>service wazuh-agent start</pre><p>c. With No Service Manager<br>For some machine you might need to always start it manually</p><pre>/var/ossec/bin/wazuh-control start</pre><p>This process ends here. Now, go to your dashboard and cross-check whether your endpoint is visible on your SIEM Tool or not. If not you might wanna troubleshoot the problem by brainstorming on internet for sometime and if you still not get the answer why not restart the endpoint and the server. And if you still not see it, try and reinstall it because maybe in the installation process there might have been some error that you missed (this is called human-error at the place from where I come from).</p><p>2. Windows:</p><p>Although when on GUI, while adding an agent it will direct you how to integrate but this is also one of the process.<br>Open Powershell as Administrator on your windows endpoint and write the following command to install Wazuh agent on your endpoint and then attach it to your Wazuh Server:</p><pre>.\wazuh-agent-4.10.1-1.msi /q WAZUH_MANAGER=&quot;&lt;wazuh_manager_ip&gt;&quot;<br>NET START Wazuh</pre><p>I used the default method i.e.,</p><pre>Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.10.1-1.msi -OutFile $env:tmp\wazuh-agent; msiexe.exe /i $env:tmp\wazuh-agent /q WAZUH_MANAGER=&#39;&lt;wazuh_manager_ip&gt;&#39; WAZUH_AGENT_NAME=&#39;MainSystem&#39;<br>NET START Wazuh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNB3-IXVDHOfpV83ZpqiKA.png" /></figure><p>Wait and refresh the GUI Dashboard of your Wazuh and you will see that the Windows agent has been added to the dashboard showing your active devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CONJdx-j7zjq9g1SUVOu6Q.png" /><figcaption>Wazuh Dashboard</figcaption></figure><p>You can also integrate Elastic Stack, Splunk, Opensearch and Amazon Security Lake.</p><p>This is how to install wazuh and integrate your endpoint to it. In the future blogs I will be writing about on how to collect logs and make different alerts on Wazuh Dashboard. Also, on how to make an effective dashboard for your Wazuh to easily manage and analyse threats and alerts. I will also be writing on how to integrate ELK Stack into Wazuh and on how to install ELK separately without integrating to wazuh in home-lab environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e154c63fd3a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>