Skip to content

Instantly share code, notes, and snippets.

@JeremyT2002
JeremyT2002 / qrcode_generator.cpp
Last active May 25, 2026 20:49
QR Code Generator C+
/*
* ÜBERBLICK:
* ---------
* Dieses Programm erzeugt QR-Codes gemäß ISO/IEC 18004 (Thonky-Tutorial).
* Link zum Thonky-Tutorial : https://www.thonky.com/qr-code-tutorial/
* Ablauf: 1) Text im Byte-Mode encodieren
* 2) Reed-Solomon-Fehlerkorrektur anwenden
* 3) QR-Matrix mit Finder Patterns, Timing, Format aufbauen
* 4) Datenbits im Zickzack eintragen
* 5) Maske 0 anwenden
#include <stdio.h>
#include <windows.h>
#include <winternl.h>
#pragma comment(lib, "bcrypt.lib")
#pragma comment(lib, "ntdll.lib")
typedef struct _FEISTEL64_ROUND_DATA {
DWORD FunctionID;
DWORD Rand0;
@gekka
gekka / test.cpp
Created December 19, 2025 12:38
IMFMediaEngine::TransferVideoFrameのテスト
// TransferVideoFrameの第1引数で可能な引数の型
// {C40A00F2-B93A-4D80-AE8C-5A1C634F58E4} IID_IMFSample
// {6F15AAF2-D208-4E89-9AB4-489535D34F9C} IID_ID3D11Texture2D
// {00000121-a8f2-4877-ba0a-fd2b6645fb94} IID_IWICBitmap
// {696442BE-A72E-4059-BC79-5B5C98040FAD} IID_ID3D12Resource
class NotifySink : public IMFMediaEngineNotify
{
public:
/*
TaskManagerSecret
Author: @splinter_code
This is a very ugly POC for a very unreliable UAC bypass through some UI hacks.
The core of this hack is stealing and using a token containing the UIAccess flag set.
A trick described by James Forshaw, so all credits to him --> https://www.tiraniddo.dev/2019/02/accessing-access-tokens-for-uiaccess.html
From there it uses a task manager "feature" to run a new High IL cmd.exe.
This has been developed only for fun and shouldn't be used due to its high unreliability.
#define _AFXDLL
#include <WinSock2.h> // MFC...
#include <windows.h>
#include <afxwin.h> // CBitmap
#include <atlbase.h>
#include <atlcom.h> // CComPtr
#include <d2d1.h>
#include <d2d1_3.h> // ID2D1DeviceContext5
#include <wincodec.h> // Wic
import zlib
import io
import sys
PNG_MAGIC = b"\x89PNG\r\n\x1a\n"
def parse_png_chunk(stream):
size = int.from_bytes(stream.read(4), "big")
ctype = stream.read(4)
body = stream.read(size)
@ManDeJan
ManDeJan / decompress.asm
Last active April 4, 2023 03:38
decompress.asm
.cpu cortex-m3
.syntax unified @ this is important, you won't get most of thumb-2 otherwise
.text
@ this file contains a assembly version of a lz decoder for cpse1 at the hogeschool utrecht
@ it's done in 15 instructions / 40 bytes, 20% less then what the best compiler did :)
@ compiler benchmarks
@ clang (trunk)
@ -O0 124 bytes
@aaaddress1
aaaddress1 / memBruteforce.cpp
Last active October 31, 2025 13:25
Windows 32-bit Shellcode Design without TEB & fs:30h
// memBruteforce.cpp by aaaddress1@chroot.org
// brute search loaded moudules in memory
// rewrite from https://www.exploit-db.com/exploits/45293
#include <Windows.h>
#include <iostream>
#pragma warning(disable:4996)
bool isMemExist(size_t addr) {
int retv;
__asm {
@EvanMcBroom
EvanMcBroom / no_strings.hpp
Last active March 11, 2026 12:19
Encrypt Strings at Compile Time
// Copyright (C) 2022 Evan McBroom
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in