This file contains 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
[Unit] | |
Description=Disable GPE6F interrupts | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c "echo disable > /sys/firmware/acpi/interrupts/gpe6F" | |
[Install] | |
WantedBy=multi-user.target |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <setjmp.h> | |
typedef unsigned long long __u64; | |
#define get_rsp(into) \ | |
__asm__ __volatile__("movq %%rsp, %0;" : "=m"(into) :: "memory") | |
#ifndef PUSH_RET_ADDR |
This file contains 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
#!/usr/bin/python | |
# Stefano Belli | |
# Digital Green Certificate decoder and validator 4fun | |
# Changelog | |
# * -- First change since publishing -- | |
# - fix datetime.now offset-awareness | |
# - fix incorrect vaccine data retrieved from DGC led to wrong test results | |
# - fix incorrect comparison between dose number and scheduled total doses to check vaccination completeness |
This file contains 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
//gcc -m32 mmap_shellcode.c | |
//spawn a /bin/sh shell | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
unsigned char bytes[] = \ | |
"\x31\xc0\x50\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x89\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80"; | |
int main() { |
This file contains 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
#include <cstring> | |
#include <Windows.h> | |
#include <string> | |
#include <iostream> | |
#include <memory> | |
#include <vector> | |
#define MAKE_VERSION(stype, ver) static_cast<std::uint32_t>( sizeof(stype) | ((ver) << 16) ) |
This file contains 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
#include <Windows.h> | |
void ClearConsole(HANDLE console) { | |
const COORD origin = { 0,0 }; | |
DWORD writtenBytes; | |
DWORD consoleSize; | |
CONSOLE_SCREEN_BUFFER_INFO info; | |
GetConsoleScreenBufferInfo(console, &info); |
This file contains 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
#ifndef DEBUG_FACILITY_H | |
#define DEBUG_FACILITY_H | |
#define __VALUE_HELPER(xval) #xval | |
#define any_to_string(orig) __VALUE_HELPER(orig) | |
#if defined(__GNUC_MINOR__) || defined(__clang__) | |
#define __PREFIX_FMT__ "[DEBUG][" __FILE__ ":" any_to_string(__LINE__) "][%s] " | |
#endif |
This file contains 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
SHELL=/bin/sh | |
AS=as | |
LD=ld | |
OBJS=obj.o obj1.o | |
OUT=executable | |
all:$(OBJS) | |
@for OBJ in $(OBJS); do echo -e "\tLD $$OBJ"; done | |
@$(LD) $(OBJS) -o $(OUT) && echo -e '\tOUT $(OUT)' |
This file contains 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
#ifndef NUMERIC_H | |
#define NUMERIC_H | |
#include <initializer_list> | |
#include <type_traits> | |
#include <sstream> | |
#include <string> | |
#include <exception> | |
#include <vector> | |
#include <array> |
This file contains 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
#!/bin/sh | |
# qemu-img create -f qcow2 mac_hdd.img 64G | |
# echo 1 > /sys/module/kvm/parameters/ignore_msrs | |
# | |
# Type the following after boot, | |
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103" | |
# | |
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) | |
# |
NewerOlder