Skip to content

Instantly share code, notes, and snippets.

@malcomvetter
malcomvetter / Program.cs
Created July 20, 2018 03:44
Programmatically call UAC elevation prompt
using System;
using System.Diagnostics;
using System.Security.Principal;
namespace RunAs
{
class Program
{
static void Main(string[] args)
{
@malcomvetter
malcomvetter / Program.cs
Created July 20, 2018 02:42
View all DLLs loaded into a process
using System;
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
var proc = Process.GetCurrentProcess();
foreach (ProcessModule module in proc.Modules)
{