Skip to content

Instantly share code, notes, and snippets.

@johnjohnsp1
Forked from dtmsecurity/ISeeSharpProcess.cs
Created December 1, 2020 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnjohnsp1/4887b39bc285588f51906e4dbca850ec to your computer and use it in GitHub Desktop.
Save johnjohnsp1/4887b39bc285588f51906e4dbca850ec to your computer and use it in GitHub Desktop.
ISeeSharpProcess
using System;
using System.Diagnostics;
namespace ISeeSharpProcess
{
class Program
{
// Port of https://gist.github.com/mubix/1536156f06633a54e7f1f819d7fa740a
static void GetCSharpProcess()
{
foreach(Process proc in Process.GetProcesses())
{
try
{
foreach (ProcessModule mod in proc.Modules)
{
if (mod.ModuleName.Contains("mscoree"))
{
Console.WriteLine("[*] .NET found in {0} at {1}", proc.ProcessName, proc.MainModule.FileName);
}
}
}
catch
{
}
}
}
static void Main(string[] args)
{
GetCSharpProcess();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment