Skip to content

Instantly share code, notes, and snippets.

View wsummerhill's full-sized avatar

Will Summerhill wsummerhill

View GitHub Profile
@wsummerhill
wsummerhill / Get-Exports.ps1
Last active October 12, 2022 21:10 — forked from thesubtlety/Get-Exports.ps1
DLL Hijack with exports
# All credit goes to @thesubtlety - https://gist.github.com/thesubtlety/a79fb95bd65e9ca8e029058ffc887eff
# Below is a slightly modified version of their original script
function Get-DLL-Exports {
<#
.SYNOPSIS
Get-Exports, fetches DLL exports and optionally provides
C++ wrapper output (idential to ExportsToC++ but without
needing VS and a compiled binary). To do this it reads DLL
bytes into memory and then parses them (no LoadLibraryEx).