A somewhat curated list of links to various topics in application security.


Master Python ComprehensionsOne of the most significant advantages of Python is that it’s a highly expressive language. Without much boilerplate, developers can come up with elegant solutions that, if well structured, read like a story. Here lies the beauty of the language, well presented in the Zen of Python.
TryHackMe | Python BasicsIn this story I will be sharing my process of completing the “Python Basics” Room in TryHackMe. Tasks 1–5 include some basic steps such as printing “Hello World” and I’m sure you all will get through it easily. Lets start from task 6:
Setup a Ready-For-Production Python ProjectPython is one of the most used programming languages nowadays. It is very simple to set up, its syntax is quite user-friendly compared with Java, and has a lot of pre-built modules that can help to create machine learning algorithms. With Python, it’s very easy to build something that works.
Python Useful Regex Quick ReferenceMore content at Sign up for our free weekly newsletter here.
An Intro To HTTPXHttpx is a web client for Python that makes it easy to communicate with web servers. It supports multiple protocols, including HTTP, HTTPS, and FTP. It also supports authentication, including Basic and Digest authentication.
5 More Python One-liners You Should UseIn this installment, we’ll be exploring some really cool sections of Python code. These short one-liners solve a wide range of problems and can get you out of a jam if you’ve managed to program yourself into a corner.
Built-in Python functions map( ), filter( ) & reduce( ) , you should literally learn right now.These functions are commonly used in functional-style python programming. These functions are most often used in conjunction with the anonymous ( lambda ) function, but you can use it with a normal function which defines by ( def ) key word.
Python CybersecurityLearn how to build a simple Python script that can be used to scan for open ports on a network. This tutorial covers the implementation steps needed to build the script using Python Programming.
Logging in PythonThis article aims to outline the basics of logging and create a simple project that documents every event into a log file and later use this log file to analyze the errors.
10 Advanced Automation Scripts for Your Python ProjectsThis cool automation script will compress your images into lower sizes without changing their Quality. The script uses the Pillow module and its built-in ANTIALIAS function. This automation script will help you to download and view Instagram DP.
Hacking and Securing Python ApplicationsSecuring applications is not the easiest thing to do. An application has many components: server-side logic, client-side logic, data storage, data transportation, API, and more. With all these components to secure, building a secure application can seem really daunting.
PythonJonas A. In this tutorial, I’ll talk about how to send push notifications to yourself using Python and myNotifier.
5 Python Libraries That Will Help Automate Your LifeThink of all the repetitive tasks you do at work. You send emails, create Excel reportings, extract data from PDFs, and (if you’re a data scientist like me) do tons of data analysis. Nobody wants to do that, but in the end, someone has to do it.
Automate Your Life Using PythonThere is a common trope in software that you have to be an expert to be able to write programs and this is just not true. In 2022, Software has become an integral part of life and everyone can get a piece of the pie.
Malware extraction in Python with ScapyNetwork captures are common among security events. Malware present in any network communication can be easily extracted with tools like Wireshark. If you have many pcap files, how would you extract them all? Let’s walk through a script to extract PE Files from pcaps using Python and Scapy.
Async IO in Python: A Complete WalkthroughWatch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Hands-On Python 3 Concurrency With the asyncio Module
Context Managers and Python's with StatementThe with statement in Python is a quite useful tool for properly managing external resources in your programs.
6 Python Libraries For Cyber Security Professionals and Ethical HackersThe Python libraries ethical hackers swear by.Python is one of the most growing computer languages in recent times due to its easiness and demand. But Python also plays a very crucial role in Cyber Security. In this article, I will mention 6 libraries which can give you a brief idea about same.
How to Convert a String into a List in PythonWorking with a list in Python can be one of the most common tasks. However, not everything comes to you in the form of a list as input.
3 Awesome Python Libraries That You Should Know AboutA few days ago, I published a blog on 5 Python Libraries That You Don’t Know About, But Should. That blog had dozens of thousands of views in less than a week. Thus, I decided to write a part two with other cool libraries that you should try out.
7 Python Libraries to Make Automation EasyOften it’s hard to find inspiration to automate using Python. I think knowing packages might give you an idea of what to automate. In this article, I’ll talk about 7 Python packages that can inspire your next automation. Usually, when you want to automate something, you might come across APIs.
Understanding the Python GILDave Beazley's presentation from PyCon'2010 in Atlanta Georgia. This is a mirror of the original presentation hosted at David Beazley teaches intense in-person Python Programming and Computer Science
Brython: Python in Your BrowserIf you’re a web developer who prefers writing Python over JavaScript, then Brython, a Python implementation that runs in the browser, may be an appealing option. JavaScript is the de facto language of front-end web development.
Creating the Perfect Python DockerfileIncrease your python code performance and security without changing the project source code. Having a reliable Dockerfile as your base can save you hours of headaches and bigger problems down the road.
CPython InternalsIf you haven’t heard of before, it’s a “guided tour” to the internals of the Python 3 interpreter. You’ll pick up the concepts, ideas, and technicalities of CPython in an approachable and hands-on fashion:
Python monkey-patching like a bossIf you work in a big project, most likely you will meet situations, when you would like to change/improve used third-party library behaviour, and you try to modify it from your project. This is called monkey-patching and it is usually associated with something not obvious, which would like to avoid.
Replacing an imported module dependencyIs it possible to make CustomModule replace its use of somemodule for somefakemodule without changing its code? That is, from ClientCode. Python will find somemodule in sys.modules and return the cached module, somefakemodule.
Python sys.meta_path() ExamplesThe following are 30 code examples for showing how to use sys.meta_path(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.
How to use sys.meta_path with Python 3.x?given is the one of the code snippet/ sample which we are using in my old application, I have to migrate this code from python2.7 to python3.7. If we run on python3 getting error as "KeyError: 'my_virtual_module'" but on python2 its giving an o/p "hello world".
100 Helpful Python Tips You Can Learn Before Finishing Your Morning CoffeePython is quite popular nowadays, mainly due to its simplicity, and easiness to learn. You can use it for a wide range of tasks like data science and machine learning, web development, scripting, automation, etc.
Python 201: An Intro to importlibPython provides the importlib package as part of its standard library of modules. Its purpose is to provide the implementation to Python’s import statement (and the __import__() function).
An Intro to Threading in PythonWatch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Threading in Python Python threading allows you to have different parts of your program run concurrently and can simplify your design.
Get into PythonWhat is Python? Python is a common language for programming. Created by Guido van Rossum, it was released in 1991. What do you use Python for? web development (server-side), software development, mathematics, system scripting.
The Best VS Code Extensions for Python Developers for 2021We listed the best VS extensions for JS developers. Now, it’s time we do so for the Python community. Same as before: I’m a PyCharm user, I love PyCharm, and I won’t probably be changing editors anytime soon.
Turn Photos into Cartoons Using PythonAs you might know, sketching or creating a cartoon doesn’t always need to be done manually. Nowadays, many apps can turn your photos into cartoons. But what if I tell you, that you can create your own effect with few lines of code?
21 Python Mini Projects With CodeI have been using python for the last 1 and a half year, and the things that I most like about python is its one-liners and packages. One thing that I realize that the best way to learn a programming language is to build projects in it. In this blog, we will see 21 python projects with code.
NumPy Illustrated: The Visual Guide to NumPyNumPy is a fundamental library that most of the widely used Python data processing libraries are built upon (pandas, OpenCV), inspired by (PyTorch), or can efficiently share data with (TensorFlow, Keras, etc). Understanding how NumPy works gives a boost to your skills in those libraries as well.
Welcome to Pyramid, a Python Web FrameworkPyramid makes it easy to write web applications. You can start small with this "hello world" minimal request/response web app. This may take you far, especially while learning. As your application grows, Pyramid offers many features that make writing complex software take less effort.
10 Surprisingly Useful Base Python FunctionsThose that work in Python often consider that maybe Python isn’t the star of the show here — but instead its brilliant ecosystem. Often whenever we are working with Python applications, we are working with a lot of dependencies.
5 Python Tricks You Should Start Using in 2021Start the New Year with one of the best New Year’s resolutions: Learn more Python. You can start with this article in which I present 5 Python tricks that will make your life easier.
Three Functions to Know in PythonThere are three functions in python that provide vast practicality and usefulness when programming. These three functions, which provide a functional programming style within the object-oriented python language, are the map(), filter(), and reduce() functions.
Accessing the Dark Web with PythonHello, Reader! In this article, you will learn how to install Tor and configure it in a way that will allow us to make requests with Python to the dark web via Tor’s SOCKS proxy (oooh).
Pocket-APIThis package provides a wrapper class around GetPocket V3 APIs. First, you have to Create your consumer key from getpocket's developer console. To get the access token, you have to authorize the app on your own account.
Python One-Liner →List ComprehensionIf you are using Python language, you should seriously look in to ways for writing efficient code by frequently using List Comprehension instead of for loops wherever applicable.
Everything Is an Object in Python — Learn to Use Functions as ObjectsYou’ve probably heard the saying that everything is an object in Python — one of the most popular object-oriented languages.
5 Python Tricks You Should KnowPython has such an amazing support network it can almost seem like there is too much to take in all at once. This is normal and should be recognised. It can be confusing for those starting out.
How to Write Pythonic LoopsOne of the easiest ways to spot a developer who has a background in C-style languages and only recently picked up Python is to look at how they loop through a list.
Introduction to Python SQL LibrariesAll software applications interact with data, most commonly through a database management system (DBMS). Some programming languages come with modules that you can use to interact with a DBMS, while others require the use of third-party packages.
How to Create a Reverse Shell in PythonThere are many ways to gain control over a compromised system, a common way is to gain interactive shell access, which enables you to try to gain full control of the operating system. However, most basic firewalls blocks direct remote connections.
3 Python list comprehension tricks you might not know yetIf you’ve used Python you’re probably familiar with the list comprehension syntax. Compare that to appending items to an empty list.
Python Descriptors: An IntroductionDescriptors are a specific Python feature that power a lot of the magic hidden under the language’s hood. If you’ve ever thought that Python descriptors are an advanced topic with few practical applications, then this tutorial is the perfect tool to help you understand this powerful feature.
A Python prompt into a running process: debugging with ManholeSometimes your Python process will behave strangely, run slowly, or give you the wrong answers. And while hopefully you have logging, the logging isn’t always enough. So how do you debug this process?
Python Flask Basics Part 1 - Static Home Page#python #flask #webdevelopment #coding #okaydexterPython Flask Basics Part 1 - Static Home Page In this series of videos i'll be showing you how can you start web development in python using flask library. In this video i'll get you through the basics of flask from installation to making a static ho
Remote Procedural Call via XML-RPC in 5 minutesOver the next 5 minutes, we'll bring you up to speed with how to implement XML-Remote Procedural Calls (XML-RPC) in Python 3 with the use of the built-in modules xmlrpc.server and xmlrpc.client.Make sure you don't stop watching until you've considered the security implications as well.Contents:0:00
Top 15 Python Web Development Frameworks to Use in 2019Python is now a mainstream programming language thanks to emerging technologies using Python heavily. Python web development requires the support of a framework to be quick, precise, and cost-effective. Let’s learn which top 15 Python frameworks are trendy in 2019.
Top 10 Best Python IDEs Used By Python Developers in 2019There are many online python IDE that supports easy-to-use, debug mode, code refactoring, graphical debugging, code analysis and many more features. Some of those are free python ide, python ide in mac, python ide on windows. IDE is known as Integrated Development Environment.
Vim Config Update: 2019 EditionI like to update my Vim configuration every 2-5 years just to make sure I am working with the latest and greatest version of Vim and that I’m doing things efficiently. Check out my full Vim Tutorial The last few upgrades I’ve been focused on one thing: simplicity.
What’s in your Pocket? Visualizing your Reading List with PythonLevel up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now BLOG Build the future of communications. Start building for free Build the future of communications. Start today with Twilio's APIs and services.
Has the Python GIL been slain?In early 2003, Intel launched the new Pentium 4 “HT” processor. This processor was clocked at 3 GHz and had “Hyper-Threading” Technology.
How to Extract Words from PDFs with PythonAs I mentioned in my previous article: How to Connect to Google Sheets with Python, I’ve been working with a client to help them parse through hundreds of PDF files to extract keywords in order to make them searchable.
The easy way to work with CSV, JSON, and XML in PythonI recently started a book-focused educational newsletter. Book Dives is a bi-weekly newsletter where for each new issue we dive into a non-fiction book. You’ll learn about the book’s core lessons and how to apply them in real life. You can subscribe for it here.
The definitive guide to setup my Python workspaceHave you ever focused on a task, but then needed to execute some quick command to move on and it didn’t work because your workspace was a mess? When this happens you lose your flow and must first solve your tools’ problem, to then work on your original problem.
SQLAlchemyWe often encounter data as Relational Databases. To work with them we generally would need to write raw SQL queries, pass them to the database engine and parse the returned results as a normal array of records. SQLAlchemy provides a nice “Pythonic” way of interacting with databases.
Building Minimal Docker Containers for Python ApplicationsThis post was last updated September 19th, 2019. A best practice when creating Docker containers is keeping the image size to a minimum. The fewer bytes you have to shunt over the network or store on disk, the better.
The Why, When, and How of Using Python Multi-threading and Multi-ProcessingA wise and powerful wizard lives in a small village in the middle of nowhere. Let’s call him Dumbledalf. Not only is he wise and powerful, but he’s also happy to help anyone who asks and this means that people come from far and wide to ask the wizard for aid.
JSON — The Python WayJavaScript Object Notation (JSON) is a lightweight data-interchange format based on the syntax of JavaScript objects. It is a text-based, human-readable, language-independent format for representing structured object data for easy transmission or saving.
Create a Twitter Bot in Python Using TweepyWith about 15% of Twitter being composed of bots, I wanted to try my hand at it. I googled how to create a Twitter bot and was brought to a cleanly laid out web app. It allowed you to create a bot that would like, follow, or retweet a tweet based on a keyword.
Python List Comprehensions in 5-minutesPython List Comprehensions in 5-minutesA visual introduction to those tricky Pythonic one-linersDaniel BourkeFeb 9, 20195 min read·Just show me the code! Quick link: Jupyter Notebook on GitHubWhy would you want to do a Python list comprehension?To save lines of code.
Build Simple Restful Api With Python and Flask Part 2In this article I will show you how to build simple restful api with flask and SQLite that have capabilities to create, read, update, and delete data from database. Similar with my article on part 1(https://medium.
How I used Python to analyze Game of ThronesI wanted to learn Python for a long time, but I could never find a reason. When my company had a bunch of daily reports that needed to be generated, I realized I had an opportunity to explore Python to cut out all the repetition.
Write Better Python FunctionsIn Python, like most modern programming languages, the function is a primary method of abstraction and encapsulation. You’ve probably written hundreds of functions in your time as a developer. But not all functions are created equal.
An Introduction to Clustering Algorithms in PythonIn data science, we often think about how to use data to make predictions on new data points. This is called “supervised learning.” Sometimes, however, rather than ‘making predictions’, we instead want to categorize data into buckets. This is termed “unsupervised learning.”
Python Virtual Environments made easyI was starting a project where I had to quickly check if a package, Flask, worked with the Python installed on my machine. As I ran the command to install Flask, it alerted me that the package was already installed as I had Anaconda on my machine.
Understanding self in PythonOnce you start using Python, there is no escaping from this word “self”. It is seen in method definitions and in variable initialization. But getting the idea behind it seems somewhat troublesome.
Understanding the asterisk(*) of PythonI’m not a native speaker. Please understand. Python has plentiful types of operations compared to other languages.
How to Web Scrape with Python in 4 MinutesWeb scraping is a technique to automatically access and extract large amounts of information from a website, which can save a huge amount of time and effort. In this article, we will go through an easy example of how to automate downloading hundreds of files from the New York MTA.
Python List Comprehensions VS Generator ExpressionsThe article is written by Mariia Yakimova (MARIIA YAKIMOVA) — an backend engineer at Django Stars. This python list comprehensions is originally posted on Django Stars. Specially shared with freeCodeCamp community.
Why you should use pyenv + Pipenv for your Python projectsThis is an opinionated way of developing with Python locally. You’ve probably discovered that it’s a pain in the ass to manage different projects with dependencies targeting different Python versions on your local machine.
Writing your own programming language and compiler with PythonAfter studying compilers and programming languages, I felt like internet tutorials and guides are way too complex for beginners or are missing some important parts about these topics.
What’s in a (Python’s) __name__?You’ve most likely seen the __name__ variable when you’ve gone through Python code. Below you see an example code snippet of how it may look: In this article, I want to show you how you can make use of this variable to create modules in Python.
Another Twitter sentiment analysis with PythonIt has been a while since my last post. During my absence in Medium, a lot happened in my life. I finally gathered my courage to quit my job, and joined Data Science Immersive course in General Assembly London. It was a big decision in my life, but I don’t regret it.
A tour of the top 5 sorting algorithms with Python codeI recently started a book-focused educational newsletter. Book Dives is a bi-weekly newsletter where for each new issue we dive into a non-fiction book. You’ll learn about the book’s core lessons and how to apply them in real life. You can subscribe for it here.
Dismissing Python Garbage Collection at InstagramBy dismissing the Python garbage collection (GC) mechanism, which reclaims memory by collecting and freeing unused data, Instagram can run 10% more efficiently. Yes, you heard it right! By disabling GC, we can reduce the memory footprint and improve the CPU LLC cache hit ratio.
HowGenerators have been an important part of Python ever since they were introduced with PEP 255. Generator functions allow you to declare a function that behaves like an iterator.
5 Advanced Features of Python and How to Use ThemI recently started a book-focused educational newsletter. Book Dives is a bi-weekly newsletter where for each new issue we dive into a non-fiction book. You’ll learn about the book’s core lessons and how to apply them in real life. You can subscribe for it here. Python is a beautiful language.
Build Simple Restful Api With Python and Flask Part 1I’m going to divide this series into 3 or 4 articles. At the end of the series you would understand how easy to build restful API with flask. In this article we’ll setting our environment and create endpoint that will show “Hello World”. Flask is microframework for python.
Building Beautiful Command Line Interfaces with PythonBefore we dive in building the command line application, lets take a quick peek at Command Line. Command Line programs has been with us since the creation of computer programs and are built on commands. A command line program is a program that operates from the command line or from a shell.
10 common security gotchas in Python and how to avoid themWriting secure code is hard. When you learn a language, a module or a framework, you learn how it supposed to be used. When thinking about security, you need to think about how it can be misused.
10 Python File System Methods You Should KnowYou can write Python programs to interact with the file system to do cool stuff. How to do so isn’t always super clear. This article is a guide for current and aspiring developers and data scientists.
Lambda, Map, and Filter in PythonToday’s piece covers using lambda, map, and filter functions in Python. We’ll be covering the basic syntax of each and walking through some examples to familiarize yourself with using them. Let’s get started! A lambda operator can have any number of arguments but can have only one expression.
Intro to Threads and Processes in PythonCompeting in Kaggle’s Understanding the Amazon from Space competition, I started timing various parts of my code to see if I could speed things up. Speed is critical in Kaggle. Ranking well often requires trying hundreds of architectural and hyper-parameter combinations.
Understanding the underscore( _ ) of PythonI’m not a native speaker. Sorry for my english. Please understand. The underscore (_) is special in Python.
I Wrote a Script to WhatsApp My Parents Every Morning in Just 20 Lines of Python CodeIn our busy work lives, we often forget to WhatsApp our loved ones. Looking at how regular my parents are in messaging me with inspirational quotes and health tips first thing in the morning, it was time to reciprocate.
How I used Python to find interesting people to follow on MediumMedium has a large amount of content, a large number of users, and an almost overwhelming number of posts. When you try to find interesting users to interact with, you’re flooded with visual noise. The process was tedious.