Skip to content

Instantly share code, notes, and snippets.

View beans42's full-sized avatar

Ebrahim Haghshenas beans42

View GitHub Profile
@beans42
beans42 / next.config.js
Last active January 9, 2022 16:02
Minimal working example
const withPreact = require('next-plugin-preact');
module.exports = withPreact({});
//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;
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)
#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) {
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
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]
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))