Skip to content

Instantly share code, notes, and snippets.

@cm20121009
cm20121009 / dllinjection.cs
Created January 29, 2022 09:04 — forked from dave5623/dllinjection.cs
Attempt at DLL injection with C#
using System;
using System.Diagnostics;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
namespace ch1_hello_world
{
public class BasicInject
@cm20121009
cm20121009 / LSARecovery
Created August 23, 2018 14:33 — forked from rufflabs/LSARecovery
Retrieve saved passwords from local service accounts
function Enable-TSDuplicateToken {
<#
.SYNOPSIS
Duplicates the Access token of lsass and sets it in the current process thread.
.DESCRIPTION
The Enable-TSDuplicateToken CmdLet duplicates the Access token of lsass and sets it in the current process thread.
The CmdLet must be run with elevated permissions.
.EXAMPLE