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
import pymem | |
import re | |
pm = pymem.Pymem('RainbowSix.exe') | |
start = pm.process_base.lpBaseOfDll | |
size = pm.process_base.SizeOfImage | |
print("Base: 0x{:X}".format(start)) | |
print("End: 0x{:X}".format(start + size)) | |
print("Size: 0x{:X}\n".format(size)) |
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
from PIL import Image | |
def greyscale(img: Image) -> Image: | |
img_width, img_height = img.size | |
pixels = img.load() | |
#for every pixel | |
for i in range(img_width): | |
for j in range(img_height): | |
rgb = pixels[i, j] |
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
import pymem | |
import re | |
pm = pymem.Pymem('csgo.exe') | |
def get_sig(modname, pattern, extra = 0, offset = 0, relative = True): | |
module = pymem.process.module_from_name(pm.process_handle, modname) | |
bytes = pm.read_bytes(module.lpBaseOfDll, module.SizeOfImage) | |
match = re.search(pattern, bytes).start() | |
out = pm.read_int(module.lpBaseOfDll + match + offset) + extra |
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
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <TlHelp32.h> | |
#include <iostream> | |
#include <regex> | |
HANDLE g_process_handle; | |
auto get_module(const char* modName, DWORD proc_id) { |
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
from PIL import Image, ImageOps | |
width, height = 3840, 2160 #can be any res | |
image = Image.new('RGB', (width, height), color = 'white') | |
pixels = image.load() | |
for y in range(height): | |
for x in range(width): | |
r = int(x / width * 255) | |
g = int(y / height * 255) |
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
//beans42 / SexOffenderSally#0660 | |
//COMPILE IN x64!! | |
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <iostream> | |
template<typename func_prototype, size_t shellcode_length> | |
func_prototype* make_func(const char(&shellcode)[shellcode_length]) { | |
const auto func_ptr = (func_prototype*)&shellcode; |
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
const withPreact = require('next-plugin-preact'); | |
module.exports = withPreact({}); |