Skip to content

Instantly share code, notes, and snippets.

View Expertcoderz's full-sized avatar
:octocat:
Meow.

Expertcoderz Expertcoderz

:octocat:
Meow.
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active September 11, 2025 08:38
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

@MaskRay
MaskRay / abis-for-mmu-less-systems
Created February 18, 2024 05:18
ABIs for MMU-less systems
## Linux binfmt loaders
`fs/Kconfig.binfmt` defines a few loaders.
* `BINFMT_ELF` defaults to y and depends on `MMU`.
* `BINFMT_ELF_FDPIC` defaults to y when `BINFMT_ELF` is not selected. A few architecture support `BINFMT_ELF_FDPIC` for NOMMU. ARM supports FDPIC even with a MMU.
* `BINFMT_FLAT` is provided for a few architectures.
`BINFMT_AOUT`, removed in 2022, had been supported for alpha/arm/x86-32.
@DevStefIt
DevStefIt / ffmpeg_dash.sh
Last active July 5, 2025 07:47
HLS and DASH guide on an Nginx server with RTMP mode enabled, with FFmpeg as support
ffmpeg -re -i INPUT -c:v libx264 -c:a aac -preset slower -f dash ARBITRARY_NAME.mpd
@jdmichaud
jdmichaud / 1-zig-cheatsheet
Last active September 14, 2025 15:13
Zig cheatsheet
https://ziglang.org/documentation/master/#Pointers
Local std lib docs:
```bash
$ zig std
```
Browse the std lib code
```bash
$ vi $(zig env | jq -r .std_dir)
@Rerumu
Rerumu / luau_in_luau.lua
Last active October 14, 2024 09:43
Luau translated to Luau, as a Studio compatible script
This file has been truncated, but you can view the full file.
-- Roblox's Luau as a Luau script
-- Translated using https://github.com/Rerumu/Wasynth
local luau_script = [[
print("Hello, World!")
]]
local Integer = (function()
local Numeric = {}
local NUM_ZERO, NUM_ONE, NUM_SIX_FOUR
@stravant
stravant / GoodSignal.lua
Last active September 7, 2025 15:23
Good Roblox Signal Implementation
--------------------------------------------------------------------------------
-- Batched Yield-Safe Signal Implementation --
-- This is a Signal class which has effectively identical behavior to a --
-- normal RBXScriptSignal, with the only difference being a couple extra --
-- stack frames at the bottom of the stack trace when an error is thrown. --
-- This implementation caches runner coroutines, so the ability to yield in --
-- the signal handlers comes at minimal extra cost over a naive signal --
-- implementation that either always or never spawns a thread. --
-- --
-- API: --
@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active September 19, 2025 10:04
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@andreykaipov
andreykaipov / uac-whitelist.ps1
Last active March 3, 2025 22:11
UAC Whitelist for Windows 10
# The following script (ab)uses the Windows 10 Task Scheduler to create a UAC
# whitelist for applications.
#
# Why? Because Windows does not let you fine-tune your UAC settings. It's
# either you turn off all dialogs and risk some app messing your shit up as it
# runs in a privileged context, or you turn on notifications for everything and
# risk your sanity and hearing loss from the loud bell that chimes through your
# ears every time you want to view your CPU temps or adjust your fan speeds.
#
# Any programs added to the whitelist below will not show a UAC prompt when
@linuxthor
linuxthor / randstruct-notes.txt
Last active June 9, 2025 15:53
Visualise the effect of the GCC randstruct plugin on some struct layout
The 'mizers dream
=================
The GCC randstruct plugin (randomize_layout_plugin.c) by Open Source Security, Inc., Brad Spengler and PaX Team
allows some sensitive structures in the Linux Kernel to have their layout shuffled. The aim is to obfuscate the
location of sensitive data (e.g some function pointers) and make certain types of exploitation more difficult.
It's explained in detail here: https://lwn.net/Articles/722293/
The randstruct plugin is built with a randomisation seed included (randomize_layout_seed.h) which is generated
at compile time by the gen-random-seed.sh script:
@valinet
valinet / README.md
Last active April 15, 2025 14:05
Get dark command windows all the time in Windows

Case study: Get dark command windows all the time in Windows

TL;DR

  1. Make a copy conhost.exe from System32.
  2. Open it with a hex editor (I use HxD).
  3. In HxD, go to Search - Find - Hex-values.
  4. Search for 881d9e530a004885c07477ff15b32e08009084c0.
  5. In Windows 10 version 2004, replace ff15b32e0800 with 909090909090. If using Windows 10 version 20H2, replace ff15b32e08009084 with 9090909090909090.
  6. Save file and copy it back to System32 (take ownership of original conhost.exe in order to replace it).
  7. Profit!