repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | samples/draw.c | null | null | null | null | null | null | C | 2026-05-04T18:39:37.825656 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#if defined( _MSC_VER ) && !defined( _CRT_SECURE_NO_WARNINGS )
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "draw.h"
#include "container.h"
#include "shader.h"
#include "box2d/math_functions.h"
#include <stdarg.h>
#include <stddef.h>
#in... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | samples/sample.h | null | null | null | null | null | null | C | 2026-05-04T18:39:37.834411 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/id.h"
#include "box2d/types.h"
#include "draw.h"
#define ARRAY_COUNT( A ) (int)( sizeof( A ) / sizeof( A[0] ) )
struct ImFont;
struct SampleContext
{
void Save();
void Load();
struct GLFWwindow* window = nul... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | samples/container.h | null | null | null | null | null | null | C | 2026-05-04T18:39:37.835923 | // SPDX-FileCopyrightText: 2025 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#define NULL_INDEX -1
// Array declaration. Works with forward declaration of TYPE.
#define ARRAY_DECLARE( TYPE ) \
typedef struc... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | samples/car.h | null | null | null | null | null | null | C | 2026-05-04T18:39:37.847993 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/types.h"
class Car
{
public:
Car();
void Spawn( b2WorldId worldId, b2Vec2 position, float scale, float hertz, float dampingRatio, float torque, void* userData );
void Despawn();
void SetSpeed( float speed );... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | samples/shader.h | null | null | null | null | null | null | C | 2026-05-04T18:39:37.854611 | // SPDX-FileCopyrightText: 2024 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
uint32_t CreateProgramFromFiles( const char* vertexPath, const char* fragmentPath );
uint32_t CreateProgramFromStrings( const char* vertexString, const char* fragmentStr... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | samples/doohickey.h | null | null | null | null | null | null | C | 2026-05-04T18:39:37.862123 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/types.h"
class Doohickey
{
public:
Doohickey();
void Spawn( b2WorldId worldId, b2Vec2 position, float scale );
void Despawn();
b2BodyId m_wheelId1;
b2BodyId m_wheelId2;
b2BodyId m_barId1;
b2BodyId m_barId... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/benchmarks.c | null | null | null | null | null | null | C | 2026-05-04T18:39:38.414269 | // SPDX-FileCopyrightText: 2022 Erin Catto
// SPDX-License-Identifier: MIT
#include "benchmarks.h"
#include "human.h"
#include "box2d/box2d.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#ifdef NDEBUG
#define BENCHMARK_DEBUG 0
#else
#define BENCHMARK_DEBUG 1
#endif
void CreateJointGrid( b2WorldId ... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | samples/stb_image_write.h | null | null | null | null | null | null | C | 2026-05-04T18:39:38.415672 | /* stb_image_write - v1.16 - public domain - http://nothings.org/stb
writes out PNG/BMP/TGA/JPEG/HDR images to C stdio - Sean Barrett 2010-2015
no warranty implied; use at your own risk
Before #including,
#define STB_IMAGE_WRITE_IMPLEMENTATION
in the file that you... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/utils.c | null | null | null | null | null | null | C | 2026-05-04T18:39:38.469917 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "utils.h"
#if defined( _WIN64 )
#include <Windows.h>
#elif defined( __APPLE__ )
#include <unistd.h>
#elif defined( __linux__ )
#include <unistd.h>
#elif defined( __EMSCRIPTEN__ )
#include <unistd.h>
#endif
uint32_t g_randomSeed = RAN... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/determinism.c | null | null | null | null | null | null | C | 2026-05-04T18:39:38.470478 | // SPDX-FileCopyrightText: 2022 Erin Catto
// SPDX-License-Identifier: MIT
#include "determinism.h"
#include "box2d/box2d.h"
#include <assert.h>
#include <stdlib.h>
FallingHingeData CreateFallingHinges( b2WorldId worldId )
{
{
b2BodyDef bodyDef = b2DefaultBodyDef();
bodyDef.position = (b2Vec2){ 0.0f, -1.0f };
... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/aabb.c | null | null | null | null | null | null | C | 2026-05-04T18:39:38.502260 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "aabb.h"
#include "box2d/math_functions.h"
#include <float.h>
bool b2IsValidAABB( b2AABB a )
{
b2Vec2 d = b2Sub( a.upperBound, a.lowerBound );
bool valid = d.x >= 0.0f && d.y >= 0.0f;
valid = valid && b2IsValidVec2( a.lowerBound ... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/human.c | null | null | null | null | null | null | C | 2026-05-04T18:39:38.518273 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "human.h"
#include "utils.h"
#include "box2d/box2d.h"
#include "box2d/math_functions.h"
#include <assert.h>
void CreateHuman( Human* human, b2WorldId worldId, b2Vec2 position, float scale, float frictionTorque, float hertz,
f... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/utils.h | null | null | null | null | null | null | C | 2026-05-04T18:39:38.550590 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/collision.h"
#include "box2d/math_functions.h"
#define RAND_LIMIT 32767
#define RAND_SEED 12345
// Global seed for simple random number generator.
#ifdef __cplusplus
extern "C"
{
#endif
extern uint32_t g_random... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/benchmarks.h | null | null | null | null | null | null | C | 2026-05-04T18:39:38.557962 | // SPDX-FileCopyrightText: 2022 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/id.h"
#include "box2d/types.h"
#include <stdbool.h>
// This allows benchmarks to be tested on the benchmark app and also visualized in the samples app
#ifdef __cplusplus
extern "C"
{
#endif
void CreateJointGrid(... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/human.h | null | null | null | null | null | null | C | 2026-05-04T18:39:38.559493 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/types.h"
typedef enum BoneId
{
bone_hip = 0,
bone_torso = 1,
bone_head = 2,
bone_upperLeftLeg = 3,
bone_lowerLeftLeg = 4,
bone_upperRightLeg = 5,
bone_lowerRightLeg = 6,
bone_upperLeftArm = 7,
bone_lowerL... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | shared/determinism.h | null | null | null | null | null | null | C | 2026-05-04T18:39:38.560473 | // SPDX-FileCopyrightText: 2025 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/id.h"
#include <stdbool.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct FallingHingeData
{
b2BodyId* bodyIds;
int bodyCount;
int stepCount;
int sleepStep;
uint32_t hash;
} FallingHingeData;
Falling... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/aabb.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.055636 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/types.h"
// Ray cast an AABB
b2CastOutput b2AABB_RayCast( b2AABB a, b2Vec2 p1, b2Vec2 p2 );
// Get surface area of an AABB (the perimeter length)
static inline float b2Perimeter( b2AABB a )
{
float wx = a.upperB... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/arena_allocator.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.056177 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "arena_allocator.h"
#include "core.h"
#include <stdbool.h>
#include <stddef.h>
b2Stack b2CreateStack( int capacity )
{
B2_ASSERT( capacity >= 0 );
b2Stack allocator = { 0 };
allocator.capacity = capacity;
allocator.data = b2Allo... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/arena_allocator.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.082858 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "container.h"
#include <stdbool.h>
b2DeclareArray( b2StackEntry );
typedef struct b2StackEntry
{
char* data;
const char* name;
int size;
bool usedMalloc;
} b2StackEntry;
// This is a stack-like arena allocator use... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/atomic.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.096120 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "core.h"
#include <stdbool.h>
#include <stdint.h>
#if defined( _MSC_VER )
#include <intrin.h>
#endif
static inline void b2AtomicStoreInt( b2AtomicInt* a, int value )
{
#if defined( _MSC_VER )
(void)_InterlockedExchang... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/bitset.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.097297 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "core.h"
#include <stdbool.h>
#include <stdint.h>
// Bit set provides fast operations on large arrays of bits.
typedef struct b2BitSet
{
uint64_t* bits;
uint32_t blockCapacity;
uint32_t blockCount;
} b2BitSet;
b2Bit... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/bitset.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.117653 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "bitset.h"
#include <string.h>
b2BitSet b2CreateBitSet( uint32_t bitCapacity )
{
b2BitSet bitSet = { 0 };
bitSet.blockCapacity = ( bitCapacity + sizeof( uint64_t ) * 8 - 1 ) / ( sizeof( uint64_t ) * 8 );
bitSet.blockCount = 0;
b... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/broad_phase.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.210698 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#if defined( _MSC_VER ) && !defined( _CRT_SECURE_NO_WARNINGS )
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "broad_phase.h"
#include "aabb.h"
#include "arena_allocator.h"
#include "atomic.h"
#include "body.h"
#include "contact.h"
#include ... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/broad_phase.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.228856 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "container.h"
#include "table.h"
#include "box2d/collision.h"
#include "box2d/types.h"
typedef struct b2Shape b2Shape;
typedef struct b2MovePair b2MovePair;
typedef struct b2MoveResult b2MoveResult;
typedef struct b2Sta... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/body.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.247756 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "body.h"
#include "aabb.h"
#include "contact.h"
#include "core.h"
#include "id_pool.h"
#include "island.h"
#include "joint.h"
#include "physics_world.h"
#include "sensor.h"
#include "shape.h"
#include "solver_set.h"
#include "box2d/b... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/body.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.248991 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "container.h"
#include "box2d/math_functions.h"
#include "box2d/types.h"
// Length of body debug name
#define B2_NAME_LENGTH 32
typedef struct b2World b2World;
enum b2BodyFlags
{
// This body has fixed translation al... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/constraint_graph.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.656771 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "bitset.h"
#include "contact.h"
#include "joint.h"
#include "box2d/constants.h"
#include "box2d/types.h"
typedef struct b2Body b2Body;
typedef struct b2Contact b2Contact;
typedef struct b2StepContext b2StepContext;
type... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/constraint_graph.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.685226 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "constraint_graph.h"
#include "bitset.h"
#include "body.h"
#include "contact.h"
#include "joint.h"
#include "physics_world.h"
#include "solver_set.h"
#include <string.h>
// Solver using graph coloring. Islands are only used for slee... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/contact.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.685949 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "contact.h"
#include "body.h"
#include "core.h"
#include "island.h"
#include "physics_world.h"
#include "shape.h"
#include "solver_set.h"
#include "table.h"
// needed for dll export
#include "box2d/box2d.h"
#include <stddef.h>
// C... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/contact_solver.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.719101 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "solver.h"
typedef struct b2ContactSim b2ContactSim;
typedef struct b2ContactConstraintPoint
{
b2Vec2 anchorA, anchorB;
float baseSeparation;
float relativeVelocity;
float normalImpulse;
float tangentImpulse;
floa... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/contact.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.719663 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "container.h"
#include "core.h"
#include "box2d/collision.h"
#include "box2d/types.h"
typedef struct b2Shape b2Shape;
typedef struct b2World b2World;
enum b2ContactFlags
{
// Set when the solid shapes are touching.
b... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/contact_solver.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.744124 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "contact_solver.h"
#include "body.h"
#include "constraint_graph.h"
#include "contact.h"
#include "core.h"
#include "physics_world.h"
#include "solver_set.h"
#include <stddef.h>
// contact separation for sub-stepping
// s = s0 + dot(... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/container.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.820057 | // SPDX-FileCopyrightText: 2026 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "core.h"
#include <stddef.h>
#include <string.h>
#define b2DeclareArray( T ) \
typedef struct b2DynamicArray_##T ... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/core.c | null | null | null | null | null | null | C | 2026-05-04T18:39:39.826723 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#include "core.h"
#include "box2d/math_functions.h"
#if defined( B2_COMPILER_MSVC )
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#include <stdlib.h>
#else
#include <stdlib.h>
#endif
#include <stdarg.h>
#include <stdio.h>
#include <string.h>... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/ctz.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.832120 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include <stdbool.h>
#include <stdint.h>
#if defined( _MSC_VER ) && !defined( __clang__ )
#include <intrin.h>
// https://en.wikipedia.org/wiki/Find_first_set
static inline uint32_t b2CTZ32( uint32_t block )
{
unsigned long in... |
erincatto/box2d | https://github.com/erincatto/box2d | null | null | null | null | 9,644 | null | null | mit | null | null | null | null | null | null | null | src/core.h | null | null | null | null | null | null | C | 2026-05-04T18:39:39.856734 | // SPDX-FileCopyrightText: 2023 Erin Catto
// SPDX-License-Identifier: MIT
#pragma once
#include "box2d/base.h"
// clang-format off
#define B2_NULL_INDEX ( -1 )
// for performance comparisons
#define B2_RESTRICT restrict
#ifdef NDEBUG
#define B2_DEBUG 0
#else
#define B2_DEBUG 1
#endif
// Define platform
#if de... |
mattn/go-sqlite3 | https://github.com/mattn/go-sqlite3 | null | null | null | null | 9,081 | null | null | mit | null | null | null | null | null | null | null | _example/mod_regexp/sqlite3_mod_regexp.c | null | null | null | null | null | null | C | 2026-05-04T18:39:42.357850 | #include <pcre.h>
#include <string.h>
#include <stdio.h>
#include <sqlite3ext.h>
SQLITE_EXTENSION_INIT1
static void regexp_func(sqlite3_context *context, int argc, sqlite3_value **argv) {
if (argc >= 2) {
const char *target = (const char *)sqlite3_value_text(argv[1]);
const char *pattern = (const char *)sql... |
mattn/go-sqlite3 | https://github.com/mattn/go-sqlite3 | null | null | null | null | 9,081 | null | null | mit | null | null | null | null | null | null | null | sqlite3_opt_unlock_notify.c | null | null | null | null | null | null | C | 2026-05-04T18:39:42.361891 | // Copyright (C) 2018 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
#ifdef SQLITE_ENABLE_UNLOCK_NOTIFY
#include <stdio.h>
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif
extern ... |
mattn/go-sqlite3 | https://github.com/mattn/go-sqlite3 | null | null | null | null | 9,081 | null | null | mit | null | null | null | null | null | null | null | sqlite3ext.h | null | null | null | null | null | null | C | 2026-05-04T18:39:42.398745 | #ifndef USE_LIBSQLITE3
/*
** 2006 June 7
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
**... |
mattn/go-sqlite3 | https://github.com/mattn/go-sqlite3 | null | null | null | null | 9,081 | null | null | mit | null | null | null | null | null | null | null | _example/mod_vtable/picojson.h | null | null | null | null | null | null | C | 2026-05-04T18:39:42.439703 | /*
* Copyright 2009-2010 Cybozu Labs, Inc.
* Copyright 2011 Kazuho Oku
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this li... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/payload.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.078820 | #ifndef _PAYLOAD_
#define _PAYLOAD_
#include "smbrelay.h"
#include "smb.h"
#include "ntlm.h"
void CleanLine(int verbose);
smheader *BuildSmbPacket1(void);
smheader *GetSmbPacket2(RELAY *relay,smheader* Packet1);
smheader *GetSmbPacket3(smheader* SmbPacket2,char *lpUserName, char *lpPassword, char *domainname, char *h... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/pop3relay.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.080236 | #ifndef _POP3_RELAY_
#define _POP3_RELAY_
#include "smbrelay.h"
int HandleIncommingPOP3Request(RELAY *relay, char *destinationhostname,int destinationport);
#endif
|
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/misc.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.084598 | /*
Misc data manipulation functions for Smbrelay
Andres Tarasco
*/
#ifndef _MISC_FUNCTIONS_H_
#define _MISC_FUNCTIONS_H_
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#pragma pack(1)
#ifdef WIN32
#include <io.h>
#include <windows.h>
#else
#pragma align 1
#include <unistd.h>
#include <fcntl.h>
#include <s... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS03-026/ms03-026.c | null | null | null | null | null | null | C | 2026-05-04T18:39:45.086648 | #include <stdio.h>
#include <winsock2.h>
#include <windows.h>
#include <process.h>
#include <string.h>
#include <winbase.h>
#pragma comment(lib,"ws2_32")
unsigned char bindstr[]={
0x05,0x00,0x0B,0x03,0x10,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
0xD0,0x16,0xD0,0x16,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/imaprelay.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.103446 | #ifndef _IMAP_RELAY_
#define _IMAP_RELAY_
#include "smbrelay.h"
int HandleIncommingIMAPRequest(RELAY *relay, char *destinationhostname,int destinationport);
#endif
|
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS03-026/66.c | null | null | null | null | null | null | C | 2026-05-04T18:39:45.107233 | /*
DCOM RPC Overflow Discovered by LSD - Exploit Based on Xfocus's Code
Written by H D Moore <hdm [at] metasploit.com>
- Usage: ./dcom <Target ID> <Target IP>
- Targets:
- 0 Windows 2000 SP0 (english)
- 1 Windows 2000 SP1 (english)
- 2 Windows 2000 SP2 (english)... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS05-039/PnP_Service.c | null | null | null | null | null | null | C | 2026-05-04T18:39:45.108449 | /* HOD-ms05039-pnp-expl.c: 2005-08-10: PUBLIC v.0.2
*
* Copyright (c) 2005 houseofdabus.
*
* (MS05-039) Microsoft Windows Plug-and-Play Service Remote Overflow
* Universal Exploit + no crash shellcode
*
*
*
*
* .::[ houseofdabus ]::.
*
*
*
* ------------------------------------------------... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/smb.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.164114 |
/* $Id$
SMBRELAY - Small SMB Library packet generation.
Author: Andres Tarasco - (atarasco at gmail.com )
URL: http://www.tarasco.org
This is not a complete library, but its functional for sending special crafted messages needed to perform attacks with smbrelay3
Lots of improvements need to be done ... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/ntlm.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.186567 | #ifndef _NTLMER_H_
#define _NTLMER_H_
/* $Id$
Single file NTLM system to create and parse authentication messages.
http://www.reversing.org
ilo-- ilo@reversing.org
I did copy&paste&modify several files to leave independent NTLM code
that compile in cygwin/linux environment. Most of the code was ripp... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/httprelay.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.191186 | #ifndef _HTTPRELAY_H_
#define _HTTPRELAY_H_
#include "smbrelay.h"
//HTTP Functions
int HandleIncommingHTTPRequest(RELAY *relay, char *destinationhostname, int destinationport);
int ReadRequest(RELAY *relay, char *request, int requestsize);
char **ParseHeaders(char *lpBuffer, unsigned int *nheaders);
char *GetHeaderVa... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS09-012/Chimichurri/stdafx.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.698869 | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include <winsock2.h>
#include <iostream>
#include <tchar.h>
// TODO: reference additional headers your program requires here
|
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/smbrelay.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.700407 | #ifndef _SBMRELAY_H_
#define _SMBRELAY_H_
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#ifdef WIN32
#include <windows.h>
#define socklen_t int
#endif
#include "misc.h"
#include "smb.h"
#include "ntlm.h"
#define GetNTLMPacketFromSmbPacket(a) ((char*)a+0x2b+4)
#define GetNTLMPacket3FromSmbPacket(a) ((char*)a+... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS08-068/src/smtprelay.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.732827 | #ifndef _SMTP_RELAY_
#define _SMTP_RELAY_
#include "smbrelay.h"
int HandleIncommingSMTPRequest(RELAY *relay, char *destinationhostname,int destinationport);
#endif
|
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/MinHook/MinHook.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.766932 | /*
* MinHook - Minimalistic API Hook Library
* Copyright (C) 2009 Tsuda Kageyu. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code mu... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS11-062/CVE-2011-1974.c | null | null | null | null | null | null | C | 2026-05-04T18:39:45.788814 | /*
################################################################
# Exploit Title: Windows x86 (all versions) NDISTAPI privilege escalation (MS11-062)
# Date: 2016-10-24
# Exploit Author: Tomislav Paskalev
# Vulnerable Software:
# Windows XP SP3 x86
# Windows XP Pro SP2 x64
# Windows Server 2003 SP2 x86... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/BeaEngine.c | null | null | null | null | null | null | C | 2026-05-04T18:39:45.842877 | /*
* BeaEngine 4 - x86 & x86-64 disassembler library
*
* Copyright 2006-2010, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/log.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.844696 | #include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#define __DEBUG__
#pragma once
typedef enum { L_DEBUG, L_INFO, L_WARN, L_ERROR } LEVEL, *PLEVEL;
typedef struct _ERRORINFO {
DWORD dwErrorNum;
CHAR ErrorMsg[256];
CHAR *CompletErrorMsg;
} ERRORINFO, *PERRORINFO;
VOID
DEBUG_PRINTF(
IN L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS11-011/16262.c | null | null | null | null | null | null | C | 2026-05-04T18:39:45.845887 | /*
# Exploit Title: MS11-011(CVE-2011-0045): MS Windows XP WmiTraceMessageVa Integer Truncation Vulnerability PoC
# Date: 2011-03-01
# Author: Nikita Tarakanov (CISS Research Team)
# Software Link:
# Version: prior to MS11-011
# Tested on: Win XP SP3
# CVE : CVE-2011-0045
# Status : Patched
# Binary Analysis: http://c... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS11-046/CVE-2011-1249.c | null | null | null | null | null | null | C | 2026-05-04T18:39:45.902399 | /*
################################################################
# Exploit Title: Windows x86 (all versions) AFD privilege escalation (MS11-046)
# Date: 2016-10-16
# Exploit Author: Tomislav Paskalev
# Vulnerable Software:
# Windows XP SP3 x86
# Windows XP Pro SP2 x64
# Windows Server 2003 SP2 x86
# ... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/peutil.h | null | null | null | null | null | null | C | 2026-05-04T18:39:45.976284 | #include <Windows.h>
#include <stdio.h>
#pragma once
#define SIZE_OF_NT_SIGNATURE sizeof(IMAGE_NT_SIGNATURE)
#define NTSIGNATURE(a) ((LPVOID)((BYTE *)a + ((PIMAGE_DOS_HEADER)a)->e_lfanew))
#define OPTHDROFFSET(a) ((LPVOID)((BYTE *)a + ((PIMAGE_DOS_HEADER)a)->e_lfanew + SIZE_OF_NT_SIGNATURE + sizeof (IMAGE_FILE_... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/BeaEngineVersion.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.264463 | /* Copyright 2006-2010, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/Data_opcode.h | null | null | null | null | null | null | C | 2026-05-04T18:39:46.415920 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_AES.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.423043 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_CLMUL.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.457785 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/Routines_Disasm.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.459022 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp12.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.465746 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_FPU.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.495358 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp1.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.571844 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp14.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.626754 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp13.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.670315 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp15.c | null | null | null | null | null | null | C | 2026-05-04T18:39:46.844531 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp16.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.019273 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp2.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.050085 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp3.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.074071 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp4.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.075941 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp6.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.132027 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp5.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.163717 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp7.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.182480 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp8.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.229431 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_Grp9.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.342845 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_MMX.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.619043 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/instr_set/opcodes_prefixes.c | null | null | null | null | null | null | C | 2026-05-04T18:39:47.645048 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/internal_datas.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.688204 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/beaengineSources/Includes/protos.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.695808 | /* Copyright 2006-2009, BeatriX
* File coded by BeatriX
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License,... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/include/beaengine/BeaEngine.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.713731 | #ifndef _BEA_ENGINE_
#define _BEA_ENGINE_
#if defined(__cplusplus) && defined(__BORLANDC__)
namespace BeaEngine {
#endif
#include "macros.h"
#include "export.h"
#include "basic_types.h"
#if !defined(BEA_ENGINE_STATIC)
#if defined(BUILD_BEA_ENGINE_DLL)
#define BEA_API bea__api_export__
#else
#defi... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/include/beaengine/basic_types.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.772562 | /**
* @file basic_types.h
* @author <igor.gutnik@gmail.com>
* @date Thu Dec 24 19:31:22 2009
*
* @brief Definitions of fixed-size integer types for various platforms
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or modify
* it under the t... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/include/beaengine/macros.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.801451 | #ifndef __BEAENGINE_MACROS_H__
#define __BEAENGINE_MACROS_H__
/*
============================================================================
Compiler Silencing macros
Some compilers complain about parameters that are not used. This macro
should keep them quiet.
==========================================... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/stdafx.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.858538 | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
|
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sysret.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.965834 | #include <Windows.h>
#include <stdio.h>
#include <Psapi.h>
#pragma comment(lib,"psapi.lib")
#pragma once
#define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L)
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
typedef enum _SYSTEM_INFOR... |
SecWiki/windows-kernel-exploits | https://github.com/SecWiki/windows-kernel-exploits | null | null | null | null | 8,652 | null | null | mit | null | null | null | null | null | null | null | MS12-042/sysret-source/junk/sources/include/beaengine/export.h | null | null | null | null | null | null | C | 2026-05-04T18:39:47.966503 | /**
* @file export.h
* @author igor.gutnik@gmail.com
* @date Mon Sep 22 09:28:54 2008
*
* @brief This file sets things up for C dynamic library function definitions and
* static inlined functions
*
* This file is part of BeaEngine.
*
* BeaEngine is free software: you can redistribute it and/or... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/fastbin_dup_into_stack.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.507045 | #include <stdio.h>
#include <stdlib.h>
int main()
{
fprintf(stderr, "This file extends on fastbin_dup.c by tricking malloc into\n"
"returning a pointer to a controlled location (in this case, the stack).\n");
unsigned long long stack_var;
fprintf(stderr, "The address we want malloc() to return is %p.\n", ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | first_fit.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.507585 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
fprintf(stderr, "This file doesn't demonstrate an attack, but shows the nature of glibc's allocator.\n");
fprintf(stderr, "glibc uses a first-fit algorithm to select a free chunk.\n");
fprintf(stderr, "If a chunk is free and large enough, mallo... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_lore.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.513935 | /*
Advanced exploitation of the House of Lore - Malloc Maleficarum.
This PoC take care also of the glibc hardening of smallbin corruption.
[ ... ]
else
{
bck = victim->bk;
if (__glibc_unlikely (bck->fd != victim)){
errstr = "malloc(): smallbin double linked list corrupted";
... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_einherjar.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.524909 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <malloc.h>
/*
Credit to st4g3r for publishing this technique
The House of Einherjar uses an off-by-one overflow with a null byte to control the pointers returned by malloc()
This technique may result in a more powerful pri... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | calc_tcache_idx.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.526112 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
struct malloc_chunk {
size_t mchunk_prev_size; /* Size of previous chunk (if free). */
size_t mchunk_size; /* Size in bytes, including overhead. */
struct malloc_chunk* fd; /* double links -- used only if ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/fastbin_dup_consolidate.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.528988 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
/*
Original reference: https://valsamaras.medium.com/the-toddlers-introduction-to-heap-exploitation-fastbin-dup-consolidate-part-4-2-ce6d68136aa8
This document is mostly used to demonstrate malloc_consolidate and how it can be leveraged with a
double free to ... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/fastbin_dup.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.530280 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
int main()
{
fprintf(stderr, "This file demonstrates a simple double-free attack with fastbins.\n");
fprintf(stderr, "Allocating 3 buffers.\n");
int *a = malloc(8);
int *b = malloc(8);
int *c = malloc(8);
fprintf(stderr, "1st malloc(8): %p\n", a);
fpr... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_gods.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.539467 | /* House of Gods PoC */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <inttypes.h>
/*
* Welcome to the House of Gods...
*
* House of Gods is an arena hijacking technique for glibc < 2.27. It supplies
* the attacker with an arbitrary write against the thread_arena symbol o... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_mind_fastbin.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.554321 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <assert.h>
/*
House of Mind - Fastbin Variant
==========================
This attack is similar to the original 'House of Mind' in that it uses
a fake non-main arena in order to write to a new location. This
u... |
shellphish/how2heap | https://github.com/shellphish/how2heap | null | null | null | null | 8,625 | null | null | mit | null | null | null | null | null | null | null | glibc_2.23/house_of_force.c | null | null | null | null | null | null | C | 2026-05-04T18:39:50.583615 | /*
This PoC works also with ASLR enabled.
It will overwrite a GOT entry so in order to apply exactly this technique RELRO must be disabled.
If RELRO is enabled you can always try to return a chunk on the stack as proposed in Malloc Des Maleficarum
( http://phrack.org/issues/66/10.html )
Tested in Ubun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.