Skip to content

Instantly share code, notes, and snippets.

@0x4243
Forked from malcomvetter/Program.cs
Created September 28, 2018 07:39
Show Gist options
  • Save 0x4243/0f3c5c49947acb2565f5ac5da86e7f21 to your computer and use it in GitHub Desktop.
Save 0x4243/0f3c5c49947acb2565f5ac5da86e7f21 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