Skip to content

Instantly share code, notes, and snippets.

View kkent030315's full-sized avatar

Kento Oki kkent030315

  • @xryus-technologies
  • Minato-ku, Tokyo & New York, USA
  • 01:42 (UTC +09:00)
View GitHub Profile
ed nt!Kd_SXS_Mask 0
ed nt!Kd_FUSION_Mask 0
@kkent030315
kkent030315 / race_condition.py
Created July 4, 2021 20:36
race_condition.py
#
# MIT copyright 2021 Kento Oki <hrn832@protonmail.com>
#
import threading
import time
from collections import Counter
import sqlite3
import uuid
import random
@kkent030315
kkent030315 / w10_w11_ntos_compare.txt
Last active June 17, 2021 18:57
windows 11 build 21996 ntoskrnl 10.0.21996.1 exports
---
Compare From: file: ntoskrnl.exe 10.0.19043.1052 (Windows 10 Pro 21H2)
SHA256: 5961B49DFBF2898F8FD1EA9B0F2CCC167A320671599809F748C6BB3FF700DD3E
Compare To: file: ntoskrnl.exe 10.0.21996.1 (Windows 11 Pro build 21996)
SHA256: 2EEBF466051C88CC18A1309AC4662E543A6BDCC995F7A3D53D5465664476F66E
---
number of exports -> 10: (3062) 11: (3161) diff: (99)
//
// Define the major function codes for IRPs.
//
#define IRP_MJ_CREATE 0x00
#define IRP_MJ_CREATE_NAMED_PIPE 0x01
#define IRP_MJ_CLOSE 0x02
#define IRP_MJ_READ 0x03
#define IRP_MJ_WRITE 0x04
@kkent030315
kkent030315 / main.cpp
Created November 16, 2020 17:00
Windows x64 MessageBox Shellcode (434 bytes)
#include <iostream>
#include <Windows.h>
int main()
{
char shellcode[] = "\x48\x83\xEC\x28\x48\x83\xE4\xF0\x48\x8D\x15\x66\x00\x00\x00"
"\x48\x8D\x0D\x52\x00\x00\x00\xE8\x9E\x00\x00\x00\x4C\x8B\xF8"
"\x48\x8D\x0D\x5D\x00\x00\x00\xFF\xD0\x48\x8D\x15\x5F\x00\x00"
"\x00\x48\x8D\x0D\x4D\x00\x00\x00\xE8\x7F\x00\x00\x00\x4D\x33"
"\xC9\x4C\x8D\x05\x61\x00\x00\x00\x48\x8D\x15\x4E\x00\x00\x00"
@kkent030315
kkent030315 / main.py
Created January 24, 2020 10:12
PyPixelBox Project Sample03
#モジュールのインポート
from pyglet.gl import *
#キーインプット
from pyglet.window import key
#プレイヤーの視野計算に使う
import math
#imgui
@kkent030315
kkent030315 / main.py
Created January 24, 2020 10:01
PyPixelBox Project Sample02 Player
#モジュールのインポート
from pyglet.gl import *
#キーインプット
from pyglet.window import key
#プレイヤーの視野計算に使う
import math
#imgui
@kkent030315
kkent030315 / main.py
Created January 24, 2020 07:02
PyPixelBox Project Sample01
#モジュールのインポート
from pyglet.gl import *
#ワールドクラス
class World:
def __init__(self):
#Vertexを保管する場所
self.batch = pyglet.graphics.Batch()