Skip to content

Instantly share code, notes, and snippets.

@malcomvetter
Created July 20, 2018 02:42
Show Gist options
  • Save malcomvetter/ad522aa5d0e60379c5eb41c8e8cb3862 to your computer and use it in GitHub Desktop.
Save malcomvetter/ad522aa5d0e60379c5eb41c8e8cb3862 to your computer and use it in GitHub Desktop.
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)
{
Console.WriteLine("Loaded Module: {0} {1}", module.ModuleName, module.FileName);
}
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment