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
#include <cstdio> | |
#include <Veil.h> | |
NTSTATUS NTAPI print(PVOID arg); | |
#define NTHREAD 8 | |
struct _THREAD_ARG { | |
LONG volatile g_Counter; | |
HANDLE ThreadId; |
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
#include <cstdio> | |
#include <Veil.h> | |
NTSTATUS NTAPI print(PVOID arg); | |
#define NTHREAD 8 | |
struct _THREAD_ARG { | |
LONG volatile g_Counter; | |
HANDLE KeyedEvent; |
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
#include <stdint.h> | |
#include <threads.h> | |
#include <stdatomics.h> | |
#include <linux/futex.h> /* Definition of FUTEX_* constants */ | |
#include <sys/syscall.h> /* Definition of SYS_* constants */ | |
#include <unistd.h> | |
#include <errno.h> | |
static int futex(uint32_t *uaddr, int futex_op, uint32_t val, const struct timespec *timeout, uint32_t *uaddr2, uint32_t val3) | |
{ |
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
#include <stdint.h> | |
#include <linux/futex.h> | |
#include <sys/syscall.h> | |
#include <stdio.h> | |
#include <threads.h> | |
#include <unistd.h> | |
#include <stdbool.h> | |
#include <time.h> | |
#include <stdatomic.h> | |
#include <stdbool.h> |
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
static bool WaitOnAddress(volatile void *Address, void *CompareAddress, size_t AddressSize, uint32_t Milliseconds) { | |
struct timespec ts; | |
struct timespec *timeout = NULL; | |
if (Milliseconds != UINT_MAX) { | |
ts.tv_sec = Milliseconds / 1000; | |
ts.tv_nsec = (Milliseconds % 1000) * 1000000; | |
timeout = &ts; | |
} |
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
#include <liburing.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <wchar.h> | |
int main(void) | |
{ | |
struct io_uring ring; | |
io_uring_queue_init(1, &ring, 0); |
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
pylint: | |
disable: | |
- line-too-long | |
- multiple-imports | |
- pointless-string-statement | |
- too-many-nested-blocks |
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
extern WriteFile | |
extern ExitProcess | |
section .rdata | |
szText db `Hello, world!\n\0` | |
cbLength equ $szText-1 | |
section .text | |
global start | |
start: | |
sub rsp, 40 ; |
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
#include <windows.h> | |
int main(void) | |
{ | |
// I don't realize this lmao until i see KernelBase.dll | |
WriteFile(UlongToHandle(STD_OUTPUT_HANDLE), "Hello, world!\n", 14, NULL, NULL); | |
/* | |
* NtWriteFile(NtCurrentPeb()->ProcessParameter->StandardOutput, | |
* NULL, | |
* NULL, |
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
#include <iostream> | |
#include <algorithm> | |
#include <cmath> | |
#include <cstdlib> | |
#include <format> | |
int main() { | |
std::ios_base::sync_with_stdio(false); | |
std::cout << "Irrashai, inputnya dipisah spasi ya ~ " << std::endl; | |
std::cout << "Maksimum 255 bilangan bulat positif rentang 1 <= 255" << std::endl; |
NewerOlder