Skip to content

Instantly share code, notes, and snippets.

View m10x's full-sized avatar
💻

Maximilian Hildebrand m10x

💻
View GitHub Profile
@m10x
m10x / a.ps1
Last active November 20, 2024 09:44
AMSi bypass
$GOS = @"
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Net;
using System.Reflection;
using System.Runtime.InteropServices;
@m10x
m10x / globalhotkeys.py
Last active January 31, 2025 19:39 — forked from mdavey/globalhotkeys.py
Global hot keys in Python for Win32, fixed range and missing brackets, implemented that you can now reassign a key without error, works now perfectly with Python 3.X. Added method to unregister. Accomplished PEP 8 compliance.
from ctypes import windll
from ctypes import byref as ctypes_byref
from ctypes.wintypes import MSG as wintypes_MSG
import win32con
class GlobalHotKeys(object):
key_mapping = []
user32 = windll.user32