Skip to content

Instantly share code, notes, and snippets.

@fsLeg
fsLeg / get-crates.py
Last active July 19, 2026 16:41
This is a helper script for packaging Rust programs using SlackBuilds. It can generate links to crates, their MD5 hashes, fill a template .info file with crates' links and checksums and vendor pre-downloaded crates for offline building with Cargo
#!/usr/bin/env python3
# Funny enough, this script does everything but actually get crates :D
import json
import requests
import tarfile
import re
from sys import exit, stderr
from hashlib import md5, sha256
@Homer28
Homer28 / test_dll.c
Last active June 29, 2025 09:52
DLL code for testing CVE-2024-21378 in MS Outlook
/**
* This DLL is designed for use in conjunction with the Ruler tool for
* security testing related to the CVE-2024-21378 vulnerability,
* specifically targeting MS Outlook.
*
* It can be used with the following command line syntax:
* ruler [auth-params] form add-com [attack-params] --dll ./test.dll
* Ruler repository: https://github.com/NetSPI/ruler/tree/com-forms (com-forms branch).
*
* After being loaded into MS Outlook, it sends the PC's hostname and
@thesamesam
thesamesam / xz-backdoor.md
Last active July 17, 2026 18:23
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@emmett1
emmett1 / slack-revdep.sh
Last active September 19, 2024 18:38
script to find broken package for Slackware Linux
#!/bin/sh
#
# script to find broken package for Slackware Linux
#
SEARCH_DIRS="/bin /usr/bin /sbin /usr/sbin /lib /usr/lib /lib64 /usr/lib64 /usr/libexec"
TMPFILE=$(mktemp)
trap 'rm -f $TMPFILE; printf "\033[0K"; exit 1' 1 2 3 15
@bierbo
bierbo / ublock-ms-attack-domains.txt
Created April 13, 2023 06:46
Microsoft attack simulation domains
# Title: Microsoft attack simulation domains
# Blocked: 130 domains
# Updated: 13 Apr 2023
# home: https://gist.github.com/bierbo/726dc65c940d26ec2dc47b0fa1acb472
# Size: 0.02 MB
# see https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/attack-simulation-training-get-started?view=o365-worldwide#simulations
# ------------------------------------------------------------------------
bankmenia.com
bankmenia.de
@EvanMcBroom
EvanMcBroom / pic-and-string-literals-2.md
Last active May 17, 2026 19:06
Pic and String Literals Part 2

PIC and String Literals Part 2

I previously wrote about how to use macro metaprogramming to simplify using string literals in position independent code (PIC). The results are summarized in the below code snippet and the article can be read on GitHub.

void f() {
    // Example 1: The Pic idiom for instantiating a string
    char picString1[]{ 'a', 'b', 'c' };
@claustromaniac
claustromaniac / .Compare-UserJS.md
Last active August 13, 2018 18:24
PowerShell script for comparing user.js (or prefs.js) files.
@ageis
ageis / systemd_service_hardening.md
Last active July 16, 2026 10:00
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@epixoip
epixoip / 8x1080.md
Last active May 5, 2026 12:16
8x Nvidia GTX 1080 Hashcat Benchmarks
@bnagy
bnagy / gpgmutt.md
Last active December 1, 2025 23:19
Mutt, Gmail and GPG

GPG / Mutt / Gmail

About

This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.

Here is an incomplete list of things that are different from other approaches:

  • I don't use keyservers. Ever.
  • Yes, I use Gmail instead of some bespoke hipster freedom service