SudoSecurity
  • Home
  • About
  • Topics
Python's async/await: How It Actually Works and Why You Need It
Programming

Python's async/await: How It Actually Works and Why You Need It

asyncio isn't magic. It's a while loop that checks a queue. Once you understand the event loop model, async/await stops being confusing and starts being the most useful tool in your Python kit. Here's the mental model, the real code, and the mistakes that will ruin your day.
29 May 2023 13 min read
Understanding Linux's True and False Commands
Linux

Understanding Linux's True and False Commands

True and False are the most common concepts in all forms of computing. They’re so highly critical to Boolean logic, but did you know that true and false are also even commands on Linux? There is a simple explanation. This is that the true command generates an exit code
25 May 2023 3 min read
Async Timeouts with CompletableFuture: Fixing Blocking Java Code the Right Way
Programming

Async Timeouts with CompletableFuture: Fixing Blocking Java Code the Right Way

1,000 threads. All of them blocked on future.get(). That's the production nightmare that forced a full rewrite — and the journey through reactive callbacks, exception swallowing pitfalls, and finally a clean within() utility that handles timeouts without giving up the async model.
21 May 2023 13 min read
Implementing Virtual Threads in Java Streams
Software Development

Implementing Virtual Threads in Java Streams

In the realm of software development, efficiently handling large datasets is crucial, especially with the proliferation of multicore processors. The Java Stream interface revolutionized the way collections are managed by supporting both sequential and parallel operations. However, harnessing the full potential of modern processors while maintaining the simplicity of the
19 May 2023 5 min read
Lets Build a Web Scraper in PHP and Python
Web Development

Lets Build a Web Scraper in PHP and Python

How many total websites do you think there is on the internet? According to recent estimates, there is around 1.10 billion websites. This is also with new websites being added and old websites being removed everyday all the time. I doubt any of us can consider how much data
03 May 2023 4 min read
Implementing Your Own Garbage Collector in Java: Memory Allocation, Reference Tracking, and GC Algorithms
Programming

Implementing Your Own Garbage Collector in Java: Memory Allocation, Reference Tracking, and GC Algorithms

This guide walks through designing a fixed-size memory pool, implementing reference counting with cycle detection, coding Mark & Sweep, Mark & Compact, and Copying GC algorithms, and wiring root object identification and sweeping into a working CustomGarbageCollector class.
29 Apr 2023 18 min read
Ask Java for AES and You Get ECB. Nobody Warns You.
Cryptography

Ask Java for AES and You Get ECB. Nobody Warns You.

Cipher.getInstance("AES") compiles, runs, encrypts, decrypts, and hands you the weakest mode in the box. Here is the OpenJDK source that makes that decision, and the line where ECB gets chosen for you.
29 Apr 2023 18 min read
Your Container Is Running SerialGC and Nobody Told You
Programming

Your Container Is Running SerialGC and Nobody Told You

You tuned G1 flags for a week. Your pod has one CPU, which means the JVM quietly picked a single-threaded collector at startup and ignored every flag you set. Here is the OpenJDK source that made that decision.
16 Apr 2023 17 min read
How to Make a Bitcoin Transaction in Go Lang
Software Development

How to Make a Bitcoin Transaction in Go Lang

Bitcoin is all the rage in recent years. So does Golang - a programming language developed by Google. Today I am going to instruct you how to make a simple Bitcoin transaction with Golang. Hopefully, you will be able to transfer Bitcoin without using any DApps after this tutorial. The tutorial
10 Apr 2023 4 min read
Rust Is Memory Safe. Somebody Still Does the Knife Work.
Programming

Rust Is Memory Safe. Somebody Still Does the Knife Work.

Every guarantee you have been sold about Rust is real. It is also propped up on raw pointer arithmetic sitting in the standard library, held together by comments that nothing verifies. Here is what is actually back there.
08 Apr 2023 18 min read
Building a Discord Bot in Node, TypeScript, and Eris
Software Development

Building a Discord Bot in Node, TypeScript, and Eris

Here's a simple and straightforward guide to creating your first Discord bot with Eris and TypeScript. This guide introduces you to the essentials of writing a modular Discord bot that supports slash commands. Prerequisites You'll need these few tools and skills in order to complete this
01 Apr 2023 5 min read
Intuitive Method of Finding the Inverse of a Matrix
Programming

Intuitive Method of Finding the Inverse of a Matrix

Finding a matrix inverse is very useful not only in Computer Science but when solving equations by hand. However, using the formula Adj(A) / det(A) can be quite tedious, especially if you don't know how exactly it works. In this article I will show how to intuitively
02 Feb 2023 3 min read
Getting started with Embedded C
Programming

Getting started with Embedded C

The Goal By the end of this tutorial, you will be able to compile a binary written for the avr instruction set targeting the AtMega328P microcontroller on an Arduino Nano or Arduino Uno R3 form factor. Needed Documentation * Arduino Nano PCB design * Atmega328P datasheet Materials used * Arduino Nano * Arduino Uno
15 Dec 2022 7 min read
Package Source (pkgsrc): An Introduction
Linux

Package Source (pkgsrc): An Introduction

Package source is an interesting project that is developed primarily by the NetBSD team. It is based on a ports tree system. If you are a Linux user, then know that Gentoo is based on the FreeBSD ports tree system. For the rest of you who are not Linux users
27 Oct 2022 3 min read
Introduction to the Awesome World of BSD Distros
Linux

Introduction to the Awesome World of BSD Distros

Almost everyone in the tech sector is familiar with Linux in some capacity. Their use of it may be on the server as a sysadmin, Android phone user, desktop experience, deploying a micro-service via the cloud or in the embedded space. In some way, shape, or form, everyone in
17 Aug 2022 4 min read
Hacktivism: Social Justice by Data Leaks and Defacements
Cybersecurity Featured

Hacktivism: Social Justice by Data Leaks and Defacements

A CEO bragged he'd unmasked Anonymous. Hours later, a SQL injection in his own CMS ended his career. The real attack chains behind hacktivism, tools included.
08 Jun 2022 12 min read
RSA in Python Part 3: Timing Attacks and Their Fixes
Cryptography

RSA in Python Part 3: Timing Attacks and Their Fixes

Learn how timing attacks extract RSA private keys from a working implementation, and how to defend against them with constant-time code and blinding in Python.
08 Apr 2022 17 min read
The PHP Community and Development Sucks
Web Development

The PHP Community and Development Sucks

The issues which I have had with the PHP for the last ten years is the community, tutorials and/or guides, and the development of web applications. Yet at the same time, the core of PHP is the amazing people which I have met so far with talent – they have
02 Jan 2022 4 min read
A Small Introduction to RSA Encryption & the Mathematics
Cryptography Featured

A Small Introduction to RSA Encryption & the Mathematics

RSA Encryption has always been amazing to me. It allows you to publish an encryption key – also known as e – without having to compromise your decryption key – known as d. One amazing feat that I find the most interesting is that generally in practice that e is usually always the
01 Nov 2021 5 min read
Simple Guide to Setting Up an NGINX Reserve Proxy
Systems Administration

Simple Guide to Setting Up an NGINX Reserve Proxy

I will first highly recommend to read Installing the NGINX Web Server on Debian & Ubuntu and Installing LetsEncrypt's CertBot Package on Debian & Ubuntu articles if you do not already have NGINX and using LetsEncrypt installed and configured. Creating the Configuration File First, we are going to
21 Oct 2021 4 min read
PHP MVC From Scratch: Routing, DI, and PDO Done Right
Web Development

PHP MVC From Scratch: Routing, DI, and PDO Done Right

Extend a bare PHP MVC skeleton into something real: dependency injection, PDO-backed models with prepared statements, route params, and view escaping.
21 Oct 2021 16 min read
Important NGINX Directories and Files for Referencing
Systems Administration

Important NGINX Directories and Files for Referencing

When it comes to running a web server for all of my online projects, NGINX is the first that comes to mind for me. By default, it follows my guidelines of running a piece of software – meaning that the software is security-minded, performance-driven, and honestly, really easy to
14 Oct 2021 3 min read
Installing LetsEncrypt's CertBot on Ubuntu 20.04+
Systems Administration

Installing LetsEncrypt's CertBot on Ubuntu 20.04+

LetsEncrypt is one of many Certificate Authorities (CAs) that provide genuine SSL/TLS Certificates to people who want to secure the connection to their website. This allows people to access a website via encrypted HTTPS traffic. The process to make a certificate with LetsEncrypt's CertBot is pretty simple
07 Oct 2021 3 min read
Installing the NGINX Web Server on Debian & Ubuntu
Systems Administration

Installing the NGINX Web Server on Debian & Ubuntu

When it comes to running a web server for all of my online projects, NGINX is the first that comes to mind for me. By default, it follows my guidelines of running a piece of software – meaning that the software is security-minded, performance-driven, and honestly, really easy to
01 Oct 2021 4 min read
RSA in Python Part 2: Prime Generation and Encryption
Cryptography

RSA in Python Part 2: Prime Generation and Encryption

Extend your Python RSA build with 1024-bit secure random prime generation and full plaintext encryption and decryption, with working, testable code.
21 Aug 2021 14 min read
← Newer Posts Page 7 of 8 Older Posts →
SudoSecurity © 2026
  • Topics
  • Meet the Team
  • Best Articles
  • Archives
Powered by Ghost