Python Articles, Tutorials & News

Parallelizing Python Code

This article reviews some common options for parallelizing Python code including process-based parallelism, specialized libraries, ipython parallel, and Ray.

Read more »

Python One Line Reverse Shell

https://youtu.be/ps00wDz6d-U This article will be fun! You’ll learn about an important concept in security: reverse shells. You’ll also learn how to create reverse shells in Python in a single line of code. So, let’s start with the big question: What is a…

Read more »

Python in 2021: The Good, the Bad, and the Ugly

IntroductionIn this post, I want to look at the biggest strengths and weaknesses of Python, with more emphasis on the weaknesses, just because these problems have been there for years now and some of the rough edges bleed a lot. The Good – Where Python Sh…

Read more »

Python Anti-Pattern

I was writing a lambda function which, among other things, was supposed to read a csv file from S3, perform some validation on every row, then use boto3 to perform an S3 multipart upload. I created a wrapper class around the multipart upload functionality…

Read more »

OpenBSD’s Pledge and Unveil from Python

Years ago, OpenBSD gained two new security system calls, pledge(2) (originally tame(2)) and unveil. In both, an application surrenders capabilities at run-time. The idea is to perform initialization like usual, then drop capabilities before handling untru…

Read more »

Python Anti-Pattern

I was writing a lambda function which, among other things, was supposed to read a csv file from S3, perform some validation on every row, then use boto3 to perform an S3 multipart upload. I created a wrapper class around the multipart upload functionality…

Read more »