Skip to content

Instantly share code, notes, and snippets.

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

Expertcoderz Expertcoderz

:octocat:
Meow.
View GitHub Profile
@mtds
mtds / lvn.md
Last active August 14, 2025 10:17
Linux Virtual Networking

Virtual Networking on Linux

In the Linux Kernel, support for networking hardware and the methods to interact with these devices is standardized by the socket API:

                +----------------+
                |   Socket API   |
                +-------+--------+
                        |
User space              |
@reillysiemens
reillysiemens / signing-vbox-kernel-modules.md
Last active September 3, 2025 08:55
Signing VirtualBox Kernel Modules

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@tcoppex
tcoppex / c_nostd.txt
Last active September 13, 2025 15:47
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.
@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!
@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:
@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
@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
@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: --
@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
@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)