<?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 Arth Awasthi on Medium]]></title>
        <description><![CDATA[Stories by Arth Awasthi on Medium]]></description>
        <link>https://medium.com/@arththeanalyst?source=rss-a26bb5f25058------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lRjwwagcgXtgTa42uwQ0gw.jpeg</url>
            <title>Stories by Arth Awasthi on Medium</title>
            <link>https://medium.com/@arththeanalyst?source=rss-a26bb5f25058------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:27:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arththeanalyst/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[Are Bug Bounties Exploitative? The Dark Reality of Crowdsourcing Security]]></title>
            <link>https://medium.com/@arththeanalyst/are-bug-bounties-exploitative-the-dark-reality-of-crowdsourcing-security-039f1de23876?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/039f1de23876</guid>
            <category><![CDATA[bug-hunter]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Mon, 10 Jun 2024 07:34:48 GMT</pubDate>
            <atom:updated>2024-06-10T07:34:48.101Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Imagine devoting hundreds of hours to a complex problem, risking your legal standing, and potentially jeopardizing your professional reputation — all for a chance at a modest reward.</p><p>Now, consider that this is the reality faced by many ethical hackers participating in bug bounty programs. While these programs are often hailed as a win-win for companies and hackers alike, a closer look reveals a far more sinister reality.</p><p>I can tell you that bug bounty programs, in their current form, are a corporate exploitation scheme masquerading as an opportunity.</p><h3>The Alluring Façade of Bug Bounty Programs</h3><p>Bug bounty programs entice hackers with promises of lucrative payouts for finding vulnerabilities in software, websites, or applications. Major corporations like Google, Facebook, and Microsoft have embraced this model, presenting it as a mutually beneficial arrangement. Google’s Vulnerability Reward Program (VRP), for instance, has dished out over $20 million since its inception in 2010.</p><p>But let’s not kid ourselves. These companies are saving billions by outsourcing their security testing to a global pool of independent researchers, paying only for successful bug discoveries. They’ve found a way to transform their cybersecurity expenditure from a predictable overhead into a volatile, performance-based cost, offloading the financial risks onto the hackers. If you think this is fair, think again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTgF8i7250ShBS6WX8liUA.png" /></figure><h3>The Grim Economics of Bug Bounty Programs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDqAvoyjxMWShon-DxvJ-Q.png" /></figure><p>The average payout for a critical vulnerability reported through a bug bounty program is around $3,650, according to HackerOne’s 2021 report. On the surface, this might seem generous. But consider the hundreds, sometimes thousands, of hours spent by hackers who uncover nothing or, worse, are beaten to the punch by competitors. This isn’t just about earning money; it’s about survival in a cutthroat environment where success is fleeting and uncertainty is the norm.</p><p>In reality, only a fraction of participants earn enough to justify the effort. Most hackers, even skilled ones, struggle to make a living wage from bug bounties. The HackerOne report also highlights that a significant portion of hackers earn less than $20,000 annually from these programs. For the amount of skill, time, and risk involved, this is a pittance.</p><h3>The Legal and Ethical Quagmire</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*rY50Gx4qzVuaBg_g6-Tsng.jpeg" /></figure><p>When you delve into the murky world of bug bounty programs, you encounter a labyrinth of legal and ethical pitfalls. Ethical hackers face the constant threat of legal action, even when acting in good faith. One misstep, one overzealous lawyer, and you could be facing a lawsuit or even criminal charges.</p><p>Katie Moussouris, a pioneer in the field of vulnerability disclosure and CEO of Luta Security, succinctly captures the precarious nature of bug bounty work: “Bug bounty programs are not a substitute for a robust security program. They can create a false sense of security and exploit researchers who often work for far less than their time and expertise are worth.” The companies get to flaunt their commitment to security without actually investing in it, and hackers bear the brunt of the legal and ethical risks.</p><h3>The Exploitation Paradigm</h3><p>The notion that bug bounty programs are a noble pursuit is a dangerous myth. The reality is stark: these programs are a corporate strategy to exploit highly skilled labor at bargain-basement prices. Companies get away with paying less for vulnerabilities discovered through bug bounties than they would for traditional security testing. This isn’t just cost-saving; it’s exploitation, plain and simple.</p><p>Ethical hackers are effectively treated as disposable resources. The gig economy of bug bounty hunting is fraught with instability, offering no job security, benefits, or consistent income. It’s a precarious existence where only a few manage to succeed while the majority toil away in obscurity. Sam Curry, a hacker who famously earned $1 million in a year through various bug bounty programs, is an outlier, not the norm. His success is often paraded as proof of the system’s merit, conveniently ignoring the countless others who struggle to make ends meet.</p><h3>The Corporate Shell Game</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*ayiHPC_wUWg__QMxkyhDAQ.jpeg" /></figure><p>For corporations, bug bounty programs are a clever shell game. They present these programs as corporate responsibility and community engagement, but the reality is far less benevolent. By leveraging the talents of ethical hackers at minimal cost, they avoid the expenses associated with maintaining a dedicated, in-house security team. This shift of responsibility is not only financially advantageous for companies but also deeply cynical.</p><p>Jesse Kinser, a cybersecurity expert and ethical hacker, emphasizes the imbalance: “We need to ensure that ethical hackers are valued for their time and expertise. This means fair compensation, legal protection, and a collaborative approach that benefits both parties.” However, such changes would require companies to sacrifice their profit margins for the sake of fairness — a prospect that seems unlikely in the current climate of corporate greed.</p><h3>Conclusion: The Call for Fairness</h3><p>Bug bounty programs, as they stand today, are a sophisticated exploitation mechanism disguised as a fair game. They prey on the hopes of ethical hackers, dangling the carrot of potential riches while offering no guarantees, no stability, and scant protection. The onus is on the industry to reform these practices, ensuring fair compensation and legal safeguards for those who protect our digital world.</p><p>It’s time for companies to stop hiding behind the façade of bug bounty programs and take genuine responsibility for their cybersecurity. Until then, ethical hackers will continue to be the unsung, underpaid heroes of the digital age, fighting an uphill battle in a system rigged against them. The next time you hear about the latest corporate bug bounty success story, remember the countless hackers working tirelessly in the shadows, and ask yourself: is this really fair?</p><p>Follow me on Instagram @arththeanalyst to stay engaged in the ongoing dialogue on ethics and justice in the digital world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=039f1de23876" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Modeling Demystified: A Guide to Better Understanding]]></title>
            <link>https://towardsdev.com/data-modeling-demystified-a-guide-to-better-understanding-9bb793c54ab7?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bb793c54ab7</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-guide]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[demystifying]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Tue, 07 Feb 2023 17:12:35 GMT</pubDate>
            <atom:updated>2023-02-17T12:35:12.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*36B8L7R7q3A0CtPE" /></figure><p>Data Modeling, a term that often sends shivers down the spine of data professionals and enthusiasts alike. But why should a concept so integral to data management and analysis be so intimidating? Well, fear not, as I am here to demystify the world of Data Modeling and make it accessible to everyone!</p><p>Data Modeling, at its core, is the process of creating a visual representation of data, its relationships, and the rules that govern it. This representation, also known as a Data Model, serves as a blueprint for organizing and managing data within an organization. It’s like building a house, where the Data Model is the blueprint and the data is the house. The better the blueprint, the better the house, and the same goes for Data Models.</p><p>A well-designed Data Model is essential for ensuring data consistency, accuracy, and efficiency. It helps organizations make informed decisions by providing a clear understanding of the data they have, the relationships between different data elements, and the rules that govern it.</p><p>But why should you care about Data Modeling? Well, consider this — when you go to a library, you don’t just grab a bunch of books and throw them on a table, right? You categorize and organize the books, making it easier to find the information you need. Data Modeling does the same thing, but for data. It organizes and categorizes data in a way that makes it easier to access, understand, and analyze.</p><p>So, how do you go about Data Modeling? There are several techniques, but the most common one is Entity-Relationship Modeling. This technique involves identifying entities (such as customers, products, and orders) and the relationships between them (such as a customer placing an order for a product). The resulting Data Model is a graphical representation of these entities and relationships, making it easier to understand the data and its relationships.</p><p>In conclusion, Data Modeling may seem intimidating, but it doesn’t have to be. With a better understanding of what it is and why it’s important, anyone can create effective Data Models that help organizations make informed decisions and maximize the value of their data. So, the next time someone mentions Data Modeling, don’t run in the opposite direction! Embrace it, and see how it can transform the way you think about data.</p><p>Now that you have a basic understanding of Data Modeling, it’s time to take your skills to the next level. Here are a few tips to help you become a Data Modeling pro:</p><ol><li>Start with a clear understanding of your data requirements — Before you start building your Data Model, it’s important to understand what data you need to capture, how it will be used, and who will be using it. This information will help you make informed decisions about the structure and design of your Data Model.</li><li>Keep it simple — Data Models can quickly become complex, but it’s important to keep it simple and easy to understand. The goal is to make it easier for users to understand the data and relationships, not to confuse them.</li><li>Validate your Data Model — Once you’ve created your Data Model, it’s important to validate it to ensure it meets your data requirements and is free of errors. This can be done through testing and validation techniques such as data normalization and data integrity checks.</li><li>Iterate and improve — Data Models are not set in stone. As new data requirements emerge and business needs change, it’s important to iterate and improve your Data Model to ensure it continues to meet the needs of your organization.</li></ol><p>If you have any further questions or comments, please feel free to reach out to us. Your feedback is always appreciated. Thank you for your continued support.</p><h3>Here are My Socials:</h3><p>Instagram: <a href="https://www.instagram.com/coder_kumar">https://www.instagram.com/coder_kumar</a></p><p>Github: <a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bb793c54ab7" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/data-modeling-demystified-a-guide-to-better-understanding-9bb793c54ab7">Data Modeling Demystified: A Guide to Better Understanding</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hydration Reminder App in Python for Windows.]]></title>
            <link>https://towardsdev.com/hydration-reminder-app-in-python-for-windows-baada9bc9f29?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/baada9bc9f29</guid>
            <category><![CDATA[python-projects]]></category>
            <category><![CDATA[tkinter]]></category>
            <category><![CDATA[python-app-development]]></category>
            <category><![CDATA[hydration]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 16:56:56 GMT</pubDate>
            <atom:updated>2023-02-09T13:12:12.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*lDk1HA_Jw1dFSEqX" /></figure><p>Water is an essential nutrient that helps keep our bodies healthy and hydrated. Despite its importance, many of us forget to drink enough water throughout the day, leading to dehydration and various health problems. To solve this problem, it’s essential to have a water drinking reminder to remind us to drink water regularly. In this article, we will look at how to create a water drinking reminder popup app in Python for Windows.</p><p>Python is a versatile programming language that can be used to create a wide range of applications, including desktop applications. In this tutorial, we will use the tkinter library, a popular GUI toolkit for Python, to create the water drinking reminder popup app. The tkinter library provides a simple and easy-to-use interface for creating GUI applications in Python.</p><p>Here is the code for the water drinking reminder popup app in Python for Windows:</p><pre>import tkinter as tk<br>import time<br>import winsound</pre><pre>def show_reminder():<br>    reminder = tk.Tk()<br>    reminder.title(&quot;Water Drinking Reminder&quot;)<br>    reminder.geometry(&quot;200x100&quot;)<br>    tk.Label(reminder, text=&quot;Time to drink some water!&quot;).pack()<br>    tk.Button(reminder, text=&quot;OK&quot;, command=reminder.destroy).pack()<br>    winsound.Beep(1000, 500)<br>    reminder.mainloop()<br>def main():<br>    while True:<br>        time.sleep(60 * 60) # Wait for 1 hour<br>        show_reminder()<br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><p>In this code, we first import the required libraries, tkinter, time, and winsound. The tkinter library is used to create the GUI, while the time library is used to wait for a specified amount of time. The winsound library is used to play a beep sound when the reminder popup is displayed.</p><p>Next, we define the show_reminder function, which creates the reminder popup. The function creates a new window using the tk.Tk class, sets the title of the window to &quot;Water Drinking Reminder,&quot; and sets its size to 200x100. The reminder message, &quot;Time to drink some water!&quot; is displayed using the tk.Label class, and a button with the text &quot;OK&quot; is added to the window to close the reminder. The winsound.Beep function is used to play a beep sound to grab the user&#39;s attention.</p><p>Finally, we define the main function, which is the main loop of the application. The function uses the time.sleep function to wait for 1 hour, and then calls the show_reminder function to display the reminder popup. The main function runs in an infinite loop, so the reminder popup will be displayed repeatedly every hour.</p><p>To run the water drinking reminder popup app, simply run the code in your Python environment, and the reminder popup will be displayed every hour.</p><p>In conclusion, creating a water drinking reminder popup app in Python for Windows is easy and straightforward using the tkinter library. This app can be customized to suit your specific needs and requirements, such as changing the reminder interval or adding more functionality.</p><p>So, the next time you forget to drink enough water, don’t worry! Just run this app, and it will remind you to drink water regularly, keeping you hydrated and healthy.</p><p>I hope the article and the code examples provided were clear and helpful. Remember that this is just a basic example and you can always add more features or improve the calculator as per your need.</p><p>If you have any further questions or comments, please feel free to reach out to us. Your feedback is always appreciated. Thank you for your continued support.</p><h3>Here are My Socials:</h3><p>Instagram: <a href="https://www.instagram.com/coder_kumar">https://www.instagram.com/coder_kumar</a></p><p>Github: <a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=baada9bc9f29" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/hydration-reminder-app-in-python-for-windows-baada9bc9f29">Hydration Reminder App in Python for Windows.</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predictive Analytics for Better Business Decisions.]]></title>
            <link>https://medium.com/@arththeanalyst/predictive-analytics-for-better-business-decisions-11667b89e443?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/11667b89e443</guid>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[predictive-data-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[predictive-analytics]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Fri, 03 Feb 2023 16:52:27 GMT</pubDate>
            <atom:updated>2023-02-10T13:01:30.611Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*Mz1p2VrOZO7XhfEV.png" /></figure><p>Data, data, everywhere! But what do we do with it all? Enter predictive analytics — the superhero of the business world. This powerful tool can help you make sense of the mountains of data your company collects, and use it to drive better decision making. Let’s dive into how predictive analytics can be the Robin to your Batman and save the day.</p><p>Think of predictive analytics as a crystal ball for your business. It takes data from past performance and uses statistical models and algorithms to predict future outcomes. This allows businesses to make proactive decisions instead of reactive ones, reducing the chance of unexpected surprises and increasing the likelihood of success.</p><p>Picture this — you’re a retailer trying to decide which products to stock for the upcoming holiday season. Traditionally, you might rely on intuition and sales from past years to guide your decision. But what if there’s a hot new product that your customers are sure to love? Predictive analytics can help you identify trends and patterns in customer behavior that you might not have otherwise noticed.</p><p>Or let’s say you’re a manufacturer trying to determine the best time to schedule maintenance on your machines. Predictive analytics can analyze data on machine performance, usage, and wear and tear to predict when a breakdown is likely to occur. This means you can schedule maintenance proactively and avoid costly downtime.</p><p>Predictive analytics can also be used in HR to predict employee turnover, and in finance to predict loan default rates. The possibilities are endless!</p><p>But how do you get started with predictive analytics? First, identify the problem you want to solve and the data you have available to solve it. Next, choose a predictive analytics tool that fits your needs — there are many available, from basic Excel templates to advanced machine learning platforms. Finally, collaborate with your team to create and implement a predictive analytics strategy.</p><p>Don’t let data overwhelm you — harness the power of predictive analytics to drive better decision making and steer your business towards success. With predictive analytics in your arsenal, you’ll be ready to take on any challenge and save the day.</p><p>With this article, I hope to illustrate how businesses can use predictive analytics to drive better decision making in a fun and approachable way.</p><p>If you have any further questions or comments, please feel free to reach out to us. Your feedback is always appreciated. Thank you for your continued support.</p><h3>Here are My Socials:</h3><p>Instagram: <a href="https://www.instagram.com/coder_kumar">https://www.instagram.com/coder_kumar</a></p><p>Github: <a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*scVzV-Ky6qcl9iHK.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11667b89e443" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering the Basics: A Comprehensive Guide on Understanding and Utilizing MS Excel]]></title>
            <link>https://faun.pub/mastering-the-basics-a-comprehensive-guide-on-understanding-and-utilizing-ms-excel-8b04f2e6f588?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b04f2e6f588</guid>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 17:27:01 GMT</pubDate>
            <atom:updated>2023-02-03T17:20:55.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F_loyCufi2FBC4qP" /></figure><p>Microsoft Excel is a spreadsheet software program developed by Microsoft. It is primarily used for organizing, analyzing and manipulating data in a tabular format. It allows users to input, edit, and calculate data using a variety of tools and functions, including basic mathematical operations, charting, and statistical analysis.</p><p>Excel also supports integration with other Microsoft Office applications, such as Word and PowerPoint, as well as the ability to import and export data from a wide variety of sources.</p><p>Excel is widely used in business, finance, and other industries for tasks such as budgeting, forecasting, and data visualization. It’s available for Windows, macOS, and mobile platforms.</p><h3><strong>The Functionalities of MS Excel</strong></h3><p>Microsoft Excel is a powerful spreadsheet software that offers a wide range of functionalities to help users organize, analyze, and manipulate data. Some of the key functionalities of Excel include:</p><ol><li><strong>Data entry and editing:</strong> Excel allows users to input and edit data in a tabular format, including text, numbers, and dates. It also supports a variety of data formats, such as currency, percentages, and scientific notation.</li><li><strong>Calculation and formulas:</strong> Excel includes a wide range of mathematical and statistical functions, such as SUM, AVERAGE, COUNT, and MAX, that can be used to perform calculations on the data. Users can also create their own custom formulas using a built-in formula language called “Excel Formula Language”</li><li><strong>Formatting and layout:</strong> Excel provides a variety of tools to format and layout data, including cell formatting, conditional formatting, and data validation. This allows users to create professional-looking reports and charts.</li><li><strong>Charting and visualization:</strong> Excel includes a variety of charting options, such as bar charts, line charts, and pie charts, that can be used to visualize data in a variety of ways.</li><li><strong>Data filtering and sorting:</strong> Excel allows users to filter and sort data based on specific criteria, making it easy to find and organize specific information.</li><li><strong>Data analysis:</strong> Excel includes a wide range of data analysis tools, such as PivotTables and Goal Seek, that can be used to analyze data and discover trends and patterns.</li><li><strong>Collaboration:</strong> Excel supports real-time collaboration, allowing multiple users to edit and work on a spreadsheet at the same time.</li><li><strong>Automation: </strong>Excel supports macros and VBA(Visual Basic for Applications) which enables users to automate repetitive tasks, like generating reports or data entry.</li></ol><h3><strong>How much time will it take you to learn the basic ms excel skills?</strong></h3><p>The amount of time it takes to learn basic Microsoft Excel skills can vary depending on an individual’s prior experience with the program and their aptitude for learning new software. Generally, someone who has never used Excel before might take between a few hours to a few days to learn the basic skills.</p><p>A beginner can start with learning how to navigate the interface, creating and saving a new workbook, entering and editing data, basic formulas, formatting and styling cells, creating and formatting charts, and how to print and share the workbook.</p><p>However, it’s important to note that Excel is a very powerful program with a wide range of features and capabilities. To become proficient in Excel, it might take a few weeks or even months of practice and continued learning.</p><p>There are various online tutorials and courses available which can help you to learn Excel quickly. Furthermore, you can also practice on your own with sample data and exercises.</p><p>In summary, learning the basics of Excel can take anywhere from a few hours to a few days, but becoming proficient in the program may take longer.</p><p>Thank you for taking the time to read this article. I hope that you found the information provided to be helpful and informative.</p><p>If you have any further questions or comments, please feel free to reach out to us. Your feedback is always appreciated. Thank you for your continued support.</p><h3>Here are My Socials:</h3><p><strong>Instagram:</strong> <a href="https://www.instagram.com/coder_kumar">https://www.instagram.com/coder_kumar</a></p><p><strong>Github:</strong> <a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*sH9hmHxszXkt3-8w.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b04f2e6f588" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/mastering-the-basics-a-comprehensive-guide-on-understanding-and-utilizing-ms-excel-8b04f2e6f588">Mastering the Basics: A Comprehensive Guide on Understanding and Utilizing MS Excel</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Step-by-Step Guide on How to Build a Calorie Intake Calculator in Python]]></title>
            <link>https://faun.pub/a-step-by-step-guide-on-how-to-build-a-calorie-intake-calculator-in-python-12ea72ec9e8c?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/12ea72ec9e8c</guid>
            <category><![CDATA[calorie-counting]]></category>
            <category><![CDATA[healthy]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[step-by-step-guide]]></category>
            <category><![CDATA[calculator]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 09:29:05 GMT</pubDate>
            <atom:updated>2023-02-03T17:22:18.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TAQLAkEnBAeG4EmT.jpg" /></figure><p>Calorie tracking is a great way to ensure that you are meeting your daily nutritional needs and staying on track with your health and fitness goals. Whether you’re trying to lose weight, gain weight, or simply maintain your current weight, a calorie intake calculator can help you stay on top of your diet by providing you with a clear picture of how many calories you are consuming each day.</p><p>In this article, I will walk you through the process of creating a calorie intake calculator in Python, step by step.</p><p>I will provide sample code and explain the different components of the calculator so that you can create your own version to suit your needs.</p><h4><strong>Step 1: Gather User Information</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*aCO_LUinPWO8dZXq" /></figure><p>Before you can calculate a user’s daily caloric needs, you’ll need to gather some basic information about them. This includes their age, sex, weight, height, and activity level.</p><p>You can gather this information by prompting the user to input their data or by using pre-existing data stored in a database.</p><pre>weight = float(input(&quot;Enter your weight in pounds: &quot;))<br>height = float(input(&quot;Enter your height in inches: &quot;))<br>age = int(input(&quot;Enter your age: &quot;))<br>sex = input(&quot;Enter your sex (male or female): &quot;)<br>activity_level = input(&quot;Enter your activity level (sedentary, lightly active, moderately active, very active): &quot;)</pre><h4>Step 2: Calculate Basal Metabolic Rate (BMR)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*4dFacuz9aatr-k4g" /></figure><p>Basal Metabolic Rate (BMR) is the number of calories a person burns while at rest. To calculate BMR, you can use an equation such as the Harris-Benedict equation. This equation takes into account the user’s sex, weight, height, and age to determine their BMR.</p><pre>def calculate_bmr(weight, height, age, sex):<br>    if sex == &quot;male&quot;:<br>        bmr = 66 + (6.3 * weight) + (12.9 * height) - (6.8 * age)<br>    else:<br>        bmr = 655 + (4.3 * weight) + (4.7 * height) - (4.7 * age)<br>    return bmr</pre><h4>Step 3: Determine Daily Caloric Needs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*d4wtrTGqhMI7V_ah" /></figure><p>Once you have calculated the user’s BMR, you can use it to determine their daily caloric needs. This can be done by multiplying their BMR by their activity level, which can be sedentary, lightly active, moderately active, or very active.</p><pre>def calculate_daily_calories(bmr, activity_level):<br>    if activity_level == &quot;sedentary&quot;:<br>        calories = bmr * 1.2<br>    elif activity_level == &quot;lightly active&quot;:<br>        calories = bmr * 1.375<br>    elif activity_level == &quot;moderately active&quot;:<br>        calories = bmr * 1.55<br>    else:<br>        calories = bmr * 1.725<br>    return calories</pre><h4>Step 4: Create a User Interface</h4><p>With the user’s daily caloric needs calculated, you can create a user interface that allows the user to input their information and displays their daily caloric needs. This interface can be as simple or as complex as you like, depending on the needs of your project.</p><pre>bmr = calculate_bmr(weight, height, age, sex)<br>calories = calculate_daily_calories(bmr, activity_level)<br><br>print(&quot;Your daily calorie needs are: &quot;, calories)</pre><p>I hope the article and the code examples provided were clear and helpful. Remember that this is just a basic example and you can always add more features or improve the calculator as per your need.</p><p>You can find the source code here:-</p><p><a href="https://github.com/KoderKumar/Calorie-Intake-Calculator">https://github.com/KoderKumar/Calorie-Intake-Calculator</a></p><p>If you have any further questions or need more assistance, please feel free to ask.</p><h3>Here are My Socials:</h3><p><strong>Instagram: </strong><a href="https://www.instagram.com/coder_kumar">https://www.instagram.com/coder_kumar</a></p><p><strong>Github: </strong><a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*LNuVf6QVNoRY-qwn.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*sH9hmHxszXkt3-8w.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12ea72ec9e8c" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/a-step-by-step-guide-on-how-to-build-a-calorie-intake-calculator-in-python-12ea72ec9e8c">A Step-by-Step Guide on How to Build a Calorie Intake Calculator in Python</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is SQL?]]></title>
            <link>https://faun.pub/what-is-sql-60b89632b56a?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/60b89632b56a</guid>
            <category><![CDATA[structured-data]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[mssql]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[explaining]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Sat, 28 Jan 2023 06:58:32 GMT</pubDate>
            <atom:updated>2023-02-03T17:22:44.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*-2fJ7QpbggMxJS35.png" /></figure><p>One of the most powerful tools a data analyst / scientist / engineers or anybody can have is learning the language of SQL. Now this is not a SQL tutorial, but more so an understanding of what SQL can be used for as well as the value that this language has in the real world.</p><p>First off, let’s define SQL, so let’s look at this definition that I copied straight from Wikipedia:</p><p>“<strong>Structured Query Language</strong>)<a href="https://en.wikipedia.org/wiki/SQL#cite_note-chamberlin2001-5">[5]</a> is a <a href="https://en.wikipedia.org/wiki/Domain-specific_language">domain-specific language</a> used in programming and designed for managing data held in a <a href="https://en.wikipedia.org/wiki/Relational_database_management_system">relational database management system</a> (RDBMS), or for stream processing in a <a href="https://en.wikipedia.org/wiki/Relational_data_stream_management_system">relational data stream management system</a> (RDSMS). It is particularly useful in handling <a href="https://en.wikipedia.org/wiki/Data_model">structured data</a>, i.e. data incorporating relations among entities and variables.”</p><p>This language allows you to pretty much programmatically handle large amounts of data, what does this mean? Well let’s imagine for your job you had to handle large amounts of excel files, sometimes you had to download them from one website, or maybe get them from your boss, and maybe some files were different formats, before you know it you have many different files housing similar data that maybe important to the project, now imagine if you had a centralized location of all of your data in any order you choose it to be in, this helps manage your data much better and essentially saves you precious time of having many scattered data sets and improve data accuracy, this in a way is one huge advantage of using SQL in the real world.</p><h3>Databases</h3><p>Now the core reason to use SQL is to create a database that holds information, imagine a database as a centralized warehouse that holds all of your data, in this warehouse you can put any data you want (as long as there’s enough space) and allows you to extract any data at anytime (as long as the database is properly running).</p><p>Now as mentioned above, SQL’s true gift is relational database development, this essentially means that the data held within the database is related and can be uploaded or essentially downloaded from the database.</p><p>Imagine opening an Excel file and seeing all of the column &amp; row headers, this is essentially what the data inside of a database looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*yN7O69wt8U6Wd2T0.jpeg" /></figure><h3>Database Software</h3><p>Now there are many different softwares that allow you to actually run SQL queries in, here are some of the most popular softwares as well as the company images, it honestly helped me alot to match up the name with the images:</p><p><strong>MySQL</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/0*dDUxLjoKMysAiU-o.png" /></figure><p><strong>PostgresSQL</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/0*MWRHx8MVQJpq-Lzk.png" /></figure><p><strong>MongoDB</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/0*psu7rJWF3lXbumIp.png" /></figure><p><strong>Microsoft SQL Server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*Gj8ytIx52SSLumU8.png" /></figure><p><strong>Oracle DB</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/0*FmnWX7F8S5QMO6Lf.png" /></figure><p>These softwares essentially do the same thing, but they all have their advantages and disadvatnages. It would be super useful to go through each of these softwares separately and understand their specific syntax, even though they all pretty much use SQL, the specific commands can be a little bit different on each one of these.</p><p>Now, believe it or not you have a very brief understanding of what SQL is as well as some software that could help you manage your data, as stated before this isn’t a tutorial, but more so a way to get your feet wet with this specific language.</p><p>I hope the article and the code examples provided were clear and helpful. Remember that this is just a basic example and you can always add more features or improve the calculator as per your need. If you have any further questions or need more assistance, please feel free to ask.</p><p>My Socials:</p><p>Instagram: <a href="https://www.instagram.com/lolcoderkumar/">https://www.instagram.com/lolcoderkumar/</a></p><p>Github: <a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*sH9hmHxszXkt3-8w.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60b89632b56a" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/what-is-sql-60b89632b56a">What Is SQL?</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explaining File Upload Vulnerabilities]]></title>
            <link>https://faun.pub/explaining-file-upload-vulnerabilities-34ca48b992c1?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/34ca48b992c1</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[file-sharing]]></category>
            <category><![CDATA[file-upload-vulnerability]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Wed, 03 Aug 2022 10:36:08 GMT</pubDate>
            <atom:updated>2023-01-28T06:07:48.359Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*8Jj-9rRN0Vjz5VEq.jpg" /></figure><p>Uploaded files represent a significant risk to applications. The first step in many attacks is to get some code to the system to be attacked. Then the attack only needs to find a way to get the code executed. Using a file upload helps the attacker accomplish the first step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*lWXTk2nLvq8nY1Nl.gif" /></figure><p>The consequences of unrestricted file upload can vary, including complete system takeover, an overloaded file system or database, forwarding attacks to back-end systems, client-side attacks, or simple defacement. It depends on what the application does with the uploaded file and especially where it is stored. (src: <a href="https://owasp.org/www-community/vulnerabilities/Unrestricted_File_Upload"><em>OWASP</em></a>)</p><p>Let’s have a look at an example. You are browsing your favorite image-sharing platform. All your friends share their favorite holiday pictures there. You go to the upload screen and find a view similar to the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/0*GbJKO5DihGOi4sja" /></figure><p>An attacker could now try to upload a malicious file instead of a benign image file (such as a .png or a .jpg). If the target application is e.g. running on PHP, an attacker could try to upload a file with a .php file ending.</p><p>If the application is not performing any validation of the uploaded file, the file will most likely get stored on the file system.</p><p>An image-sharing platform usually has the functionality to view images. An example HTTP request to retrieve the file could look like this:</p><p>GET /view/images?imageName=new_york_2021–12–24.png HTTP/1.1</p><p>Host: example.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*wqp-N0QlqmXN_t90.jpg" /></figure><p>In the example above, the regular user would see a beautiful picture of New York City. If the attacker however tries to open his malicious image, he would end up querying this:</p><p>GET /view/images?imageName=evil.php HTTP/1.1</p><p>Host: example.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*0d-JYo9US79hZid-" /></figure><p>In case the target’s web server is configured to execute .php files, the attacker would now run PHP code on the server. An example attack could e.g. be to read out the password file on a Linux server (by running &lt;?php echo file_get_contents(&#39;/etc/passwd&#39;); ?&gt;).</p><h3>The impact of file upload vulnerabilities!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/0*webwPCQvA3UroFk9.gif" /></figure><p>As with many other vulnerability classes, there is no single answer to what file upload vulnerabilities can do to a target system. It heavily depends on the web application code written by developers, the web server configuration, as well on the operating system running the web server.</p><p>We will therefore go ahead and have a look at some typical exploit scenarios (while also listing the prerequisites for those):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*Y9m4Z8NV-HzmWt0w.gif" /></figure><ul><li>Remote Code Execution: The most harmful outcome. If the web server configuration allows, an attacker can try to e.g. upload a web shell which enables him to pass on terminal commands to the server running the application. These commands can then be easily sent to the server via the browser.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*YZ0-A5dyw2CJH0jM.gif" /></figure><ul><li>Denial of Service: If the application code is not validating file size or the number of files uploaded, an attacker could try to fill up the server’s storage capacity until a point is reached, where the application cannot be used anymore.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*Q332K8w6VMAT00ri.gif" /></figure><ul><li>Web Defacement: If the web root is not configured properly (allowing an attacker to overwrite existing files), an attacker could substitute existing web pages with his content (potentially showing imagery which is conflicting with the original purpose of the application)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/0*6XAvfWUDsxUgZF_G.gif" /></figure><ul><li>Phishing Page: Similar to the example before, an attacker could also go ahead only slightly manipulate an existing page to e.g. extract sensitive data, sending it to a destination controlled by himself.</li></ul><p>File upload vulnerabilities often go hand-in-hand with directory traversal vulnerabilities.</p><h3>How to prevent file upload vulnerabilities?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*BBJqJypAALuK6sXO.gif" /></figure><p>Various techniques exist to prevent file upload vulnerabilities from causing harm to your system. Typically, it is recommended to use a defense-in-depth approach utilizing multiple of the prevention strategies below:</p><ul><li>Implement an allow-list containing only the file types which are necessary for the proper functioning of the web app</li><li>Restrict file size to a certain limit</li><li>Create new file names for all uploaded files or remove all potentially dangerous characters (such as control characters, special characters, and Unicode characters)</li><li>Use existing well-tested validation frameworks for file uploads</li><li>Remove EXIF data from uploaded files</li><li>Host uploaded files on a separate domain from the main application (to obtain protection through the same-origin-policy during potential Javascript execution)</li></ul><p>Also, make sure to check out this <a href="https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html">cheat sheet by OWASP</a>!</p><p>My socials:</p><p>Instagram: <a href="https://www.instagram.com/coder_kumar/">https://www.instagram.com/lolcoderkumar/</a></p><p>Github: <a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*dLveSTjERPtGKRAk.png" /></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀Developers: Learn and grow by keeping up with what matters, <a href="https://faun.to/8zxxd">JOIN FAUN.</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34ca48b992c1" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/explaining-file-upload-vulnerabilities-34ca48b992c1">Explaining File Upload Vulnerabilities</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explaining SSRF]]></title>
            <link>https://faun.pub/explaining-ssrf-bbc5ce5fac9c?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbc5ce5fac9c</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[ssrf]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Tue, 02 Aug 2022 18:21:56 GMT</pubDate>
            <atom:updated>2022-08-03T03:29:41.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*O6jPVNcHcQ0EKOmo.jpg" /></figure><p>In a Server-Side Request Forgery (SSRF) attack, the attacker can abuse functionality on the server to read or update internal resources. The attacker can supply or modify a URL, which the code running on the server will read or submit data.</p><p>By carefully selecting the URLs, the attacker may be able to read server configuration such as AWS metadata, connect to internal services like HTTP-enabled databases or perform POST requests towards internal services that are not intended to be exposed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*zJk8dpim6iKyDxlU.png" /></figure><p>The target application may have functionality for importing data from a URL, publishing data to a URL, or otherwise reading data from a URL that can be tampered with. The attacker modifies the calls to this functionality by supplying a completely different URL or by manipulating how URLs are built (like path traversal, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*9GoGeTSga1BNaMfE.gif" /></figure><p>When the manipulated request goes to the server, the server-side code picks up the manipulated URL and tries to read data to the manipulated URL. By selecting target URLs, the attacker may be able to read data from services that are not directly exposed on the internet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*k68Vgcm0JgWqyZzC.gif" /></figure><ul><li><strong>Cloud server meta-data</strong> — Cloud services such as AWS provide a REST interface on <a href="http://169.254.169.254/">http://169.254.169.254/</a> where important configuration and sometimes even authentication keys can be extracted</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*rrI1Nti9Kn4KFp2e.gif" /></figure><ul><li><strong>Database HTTP interfaces</strong> — NoSQL databases such as MongoDB provide REST interfaces on HTTP ports. If the database is expected to only be available internally, authentication may be disabled and the attacker can extract data from internal REST interfaces</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*adSSJ-VVHr2Zg0j7.gif" /></figure><ul><li><strong>Files</strong> — The attacker may be able to read files using file:// URIs. The attacker may also use this functionality to import untrusted data into code that expects to only read data from trusted sources, and as such circumvent input validation.</li></ul><h3>What is its impact?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/0*_eG7w4wNs_cS2i3l.gif" /></figure><p>A malicious actor can retrieve the content of arbitrary files on the system, which leads to sensitive information exposure(passwords, source code, confidential data, etc.).</p><h3>How do I prevent SSRF vulnerability?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*WT5rbyUVio80dF5Y.gif" /></figure><p>It is also recommended to restrict using network calls if it’s not required since it can lead to sensitive information exposure as well — or at least limit the ability to perform network calls to the internal network or critical resources.</p><p>For more information on SSRF, please check the following links:</p><ul><li><a href="https://www.owasp.org/index.php/Server_Side_Request_Forgery">OWASP: Server Side Request Forgery</a></li><li><a href="https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html">OWASP: Cheat Sheet Series Server Side Request Forgery Prevention Cheat Sheet</a></li></ul><p>Thank you for reading my article</p><p>My socials:</p><p>Instagram: <a href="https://www.instagram.com/lolcoderkumar/">https://www.instagram.com/lolcoderkumar/</a></p><p>Github: <a href="https://github.com/KoderKumar">https://github.com/KoderKumar</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*9PRcqSF9PHChKDQW.png" /></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀Developers: Learn and grow by keeping up with what matters, <a href="https://faun.to/8zxxd">JOIN FAUN.</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbc5ce5fac9c" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/explaining-ssrf-bbc5ce5fac9c">Explaining SSRF</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making a Password Generator In Python]]></title>
            <link>https://faun.pub/making-a-password-generator-in-python-1a969a09d06d?source=rss-a26bb5f25058------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a969a09d06d</guid>
            <category><![CDATA[making]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[generator]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Arth Awasthi]]></dc:creator>
            <pubDate>Mon, 01 Aug 2022 13:28:38 GMT</pubDate>
            <atom:updated>2022-08-03T03:41:02.104Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*Lzfh-vdoezg1mk80.gif" /></figure><p>Password generators are tools that allow the user to create random and customized strong passwords based on preferences.</p><p>In this tutorial, we will make a command-line tool in Python for generating passwords. We will use the <a href="https://docs.python.org/3/library/argparse.html">argparse</a> module to make it easier to parse the command line arguments the user has provided. Let us get started.</p><h3>Imports</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Fw4XVYrZVhCL_15.jpg" /></figure><p>Let us import some modules. For this program, we just need the ArgumentParser class from argparse and the <a href="https://docs.python.org/3/library/random.html">random</a> and <a href="https://docs.python.org/3/library/secrets.html">secrets</a> modules. We also get the string the module which just has some collections of letters and numbers. We don&#39;t have to install any of these because they come with Python:</p><pre>from argparse import ArgumentParser<br>import secrets<br>import random<br>import string</pre><h3>Setting up the Argument Parser</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Eg4_oaYQ8T9GmYc6.gif" /></figure><p>Now we continue with setting up the argument parser. To do this, we create a new instance of the ArgumentParser class to our parser variable. We give the parser a name and a description. This information will appear if the user provides the -h argument when running our program, it will also tell them the available arguments:</p><pre># Setting up the Argument Parser<br>parser = ArgumentParser(<br>    prog=&#39;Password Generator.&#39;,<br>    description=&#39;Generate any number of passwords with this tool.&#39;<br>)</pre><p>We continue by adding arguments to the parser. The first four will be the number of each character type; numbers, lowercase, uppercase, and special characters, we also set the type of these arguments as int:</p><pre># Adding the arguments to the parser<br>parser.add_argument(&quot;-n&quot;, &quot;--numbers&quot;, default=0, help=&quot;Number of digits in the PW&quot;, type=int)<br>parser.add_argument(&quot;-l&quot;, &quot;--lowercase&quot;, default=0, help=&quot;Number of lowercase chars in the PW&quot;, type=int)<br>parser.add_argument(&quot;-u&quot;, &quot;--uppercase&quot;, default=0, help=&quot;Number of uppercase chars in the PW&quot;, type=int)<br>parser.add_argument(&quot;-s&quot;, &quot;--special-chars&quot;, default=0, help=&quot;Number of special chars in the PW&quot;, type=int)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*7FR7fhX3IrSNHzFz.gif" /></figure><p>Next, if the user wants to instead pass the total number of characters of the password, and doesn’t want to specify the exact number of each character type, then the -t or --total-length argument handles that:</p><pre># add total pw length argument<br>parser.add_argument(&quot;-t&quot;, &quot;--total-length&quot;, type=int, <br>                    help=&quot;The total password length. If passed, it will ignore -n, -l, -u and -s, &quot; \<br>                    &quot;and generate completely random passwords with the specified length&quot;)</pre><p>The next two arguments are the output file where we store the passwords, and the number of passwords to generate. The amount will be an integer and the output file is a string (default):</p><pre># The amount is a number so we check it to be of type int.<br>parser.add_argument(&quot;-a&quot;, &quot;--amount&quot;, default=1, type=int)<br>parser.add_argument(&quot;-o&quot;, &quot;--output-file&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*wiVp2VvdIjWK4CTy.gif" /></figure><p>Last but not least, we parse the command line for these arguments with the parse_args() method of the ArgumentParser class. If we don&#39;t call this method the parser won&#39;t check for anything and won&#39;t raise any exceptions:</p><pre># Parsing the command line arguments.<br>args = parser.parse_args()</pre><h3>The Password Loop</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*P5ED7UHS3gUdYwwT.gif" /></figure><p>We continue with the main part of the program: the password loop. Here we generate the number of passwords specified by the user.</p><p>We need to define the passwords the list that will hold all the generated passwords:</p><pre># list of passwords<br>passwords = []<br># Looping through the amount of passwords.<br>for _ in range(args.amount):</pre><p>In the for loop, we first check whether total_length is passed. If so, then we directly generate the random password using the length specified:</p><pre>if args.total_length:<br>        # generate random password with the length<br>        # of total_length based on all available characters<br>        passwords.append(&quot;&quot;.join(<br>            [secrets.choice(string.digits + string.ascii_letters + string.punctuation) \<br>                for _ in range(args.total_length)]))</pre><p>We use the secrets module instead of the random so we can generate cryptographically strong random passwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*Aq8p2oxsqASSSeS2.gif" /></figure><p>Otherwise, we make a list that will first hold all the possible letters and then the password string:</p><pre>else:<br>        password = []</pre><p>Now we add the possible letters, numbers, and special characters to the password list. For each of the types, we check if it&#39;s passed to the parser. We get the respective letters from the string module:</p><pre># If / how many numbers the password should contain  <br>        for _ in range(args.numbers):<br>            password.append(secrets.choice(string.digits))</pre><pre>        # If / how many uppercase characters the password should contain   <br>        for _ in range(args.uppercase):<br>            password.append(secrets.choice(string.ascii_uppercase))<br>        <br>        # If / how many lowercase characters the password should contain   <br>        for _ in range(args.lowercase):<br>            password.append(secrets.choice(string.ascii_lowercase))</pre><pre>        # If / how many special characters the password should contain   <br>        for _ in range(args.special_chars):<br>            password.append(secrets.choice(string.punctuation))</pre><p>Then we use the random.shuffle() function to mix up the list. This is done in place:</p><pre># Shuffle the list with all the possible letters, numbers and symbols.<br>        random.shuffle(password)</pre><p>After this, we join the resulting characters with an empty string &quot;&quot; so we have the string version of it:</p><pre># Get the letters of the string up to the length argument and then join them.<br>        password = &#39;&#39;.join(password)</pre><p>Last but not least, we append this password to the passwords list.</p><pre># append this password to the overall list of password.<br>        passwords.append(password)</pre><h3>Saving the Passwords</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/0*XFo7s59NTE0a0KRn.gif" /></figure><p>After the password loop, we check if the user specified the output file. If that is the case, we simply open the file (which will be made if it doesn’t exist) and write the list of passwords:</p><pre># Store the password to a .txt file.<br>if args.output_file:<br>    with open(args.output_file, &#39;w&#39;) as f:<br>        f.write(&#39;\n&#39;.join(passwords))</pre><p>In all cases, we print out the passwords.</p><pre>print(&#39;\n&#39;.join(passwords))</pre><h3>Examples</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*uO4d8AA47pQdUROH.gif" /></figure><p>Now let’s use the script for generating different password combinations. First, let’s print the help:</p><pre>$ python password_generator.py --help<br>usage: Password Generator. [-h] [-n NUMBERS] [-l LOWERCASE] [-u UPPERCASE] [-s SPECIAL_CHARS] [-t TOTAL_LENGTH]<br>                           [-a AMOUNT] [-o OUTPUT_FILE]</pre><pre>Generate any number of passwords with this tool.</pre><pre>optional arguments:<br>  -h, --help            show this help message and exit<br>  -n NUMBERS, --numbers NUMBERS<br>                        Number of digits in the PW<br>  -l LOWERCASE, --lowercase LOWERCASE<br>                        Number of lowercase chars in the PW<br>  -u UPPERCASE, --uppercase UPPERCASE<br>                        Number of uppercase chars in the PW<br>  -s SPECIAL_CHARS, --special-chars SPECIAL_CHARS<br>                        Number of special chars in the PW<br>  -t TOTAL_LENGTH, --total-length TOTAL_LENGTH<br>                        The total password length. If passed, it will ignore -n, -l, -u and -s, and generate completely   <br>                        random passwords with the specified length<br>  -a AMOUNT, --amount AMOUNT<br>  -o OUTPUT_FILE, --output-file OUTPUT_FILE</pre><p>A lot to cover, starting with the --total-length or -t parameter:</p><pre>$ python password_generator.py --total-length 12<br>uQPxL&#39;bkBV&gt;#</pre><p>This generated a password with a length of 12 and contains all the possible characters. Okay, let’s generate 10 different passwords like that:</p><pre>$ python password_generator.py --total-length 12 --amount 10<br>&amp;8I-%5r&gt;2&amp;W&amp;<br>k&amp;DW&lt;kC/obbr<br>=/&#39;e-I?M&amp;,Q!<br>YZF:Lt{*?m#.<br>VTJO%dKrb9w6<br>E7}D|IU}^{E~<br>b:|F%#iTxLsp<br>&amp;Yswgw&amp;|W*xp<br>$M`ui`&amp;v92cA<br>G3e9fXb3u&#39;lc</pre><p>Awesome! Let’s generate a password with 5 lowercase characters, 2 uppercase, 3 digits, and one special character, a total of 11 characters:</p><pre>$ python password_generator.py -l 5 -u 2 -n 3 -s 1<br>1&#39;n3GqxoiS3</pre><p>Okay, generating 5 different passwords based on the same rule:</p><pre>$ python password_generator.py -l 5 -u 2 -n 3 -s 1 -a 5<br>Xs7iM%x2ia2<br>ap6xTC0n3.c<br>]Rx2dDf78xx<br>c11=jozGsO5<br>Uxi^fG914gi</pre><p>That’s great! We can also generate random pins of 6 digits:</p><pre>$ python password_generator.py -n 6 -a 5 <br>743582<br>810063<br>627433<br>801039<br>118201</pre><p>Adding 4 uppercase characters and saving to a file named keys.txt:</p><pre>$ python password_generator.py -n 6 -u 4 -a 5 --output-file keys.txt<br>75A7K66G2H<br>H33DPK1658<br>7443ROVD92<br>8U2HS2R922<br>T0Q2ET2842</pre><p>A new keys.txt the file will appear in the current working directory that contains these passwords, you can generate as many passwords as you can:</p><pre>$ python password_generator.py -n 6 -u 4 -a 5000 --output-file keys.txt</pre><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*ObfZsx8QiIg6vHFm.gif" /></figure><p>Excellent! You have successfully created a password generator using Python code! See how you can add more features to this program!</p><p>For long lists, you may want to not print the results into the console, so you can omit the last line of the code that prints the generated passwords to the console.</p><p>Thank you for reading my article</p><p>Here is the Github repo: <a href="https://github.com/KoderKumar/Password-Generator">https://github.com/KoderKumar/Password-Generator</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6VnOl9mdqJi3sLaH.png" /></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀Developers: Learn and grow by keeping up with what matters, <a href="https://faun.to/8zxxd">JOIN FAUN.</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a969a09d06d" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/making-a-password-generator-in-python-1a969a09d06d">Making a Password Generator In Python</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>