Skip to content

Instantly share code, notes, and snippets.

View vagueanxiety's full-sized avatar
🍨

Zhihang Zhang vagueanxiety

🍨
  • 03:26 (UTC -08:00)
View GitHub Profile
@vagueanxiety
vagueanxiety / xz-backdoor.md
Created March 29, 2024 22:21 — forked from thesamesam/xz-backdoor.md
xz-utils backdoor situation

FAQ on the xz-utils backdoor

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that gives developers lossless compression. This package is commonly used for compressing release tarballs, software packages, kernel images, and initramfs images. It is very widely distributed, statistically your average Linux or macOS system will have it installed for

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@vagueanxiety
vagueanxiety / c_nostd.txt
Created June 9, 2023 06:33 — forked from tcoppex/c_nostd.txt
Writing C software without the standard library [Linux Edition] - Franc[e]sco's Gopherspace
###################################################################
Writing C software without the standard library
Linux Edition
###################################################################
There are many tutorials on the web that explain how to build a
simple hello world in C without the libc on AMD64, but most of them
stop there.
I will provide a more complete explanation that will allow you to
build yourself a little framework to write more complex programs.