Skip to content

Instantly share code, notes, and snippets.

@reubensammut
reubensammut / remove_exitthread_msf.py
Created March 27, 2023 01:01
Code to remove `ExitThread(0)` from a DLL generated by `msfvenom`
import mmap
import sys
import re
import struct
FAIL = 0
X64 = 1
X86 = 2
def replace_bytes_x64(filename):
@reubensammut
reubensammut / krb5asrep_pw_check.py
Created March 31, 2020 16:13
krb5asrep password checker
#!/usr/bin/env python3
from Crypto.Hash import MD4, HMAC
from Crypto.Cipher import ARC4
import codecs
def b2i(s):
return int.from_bytes(s, 'big')
def unicode(s):