Skip to content

Instantly share code, notes, and snippets.

@gavz
Forked from dmchell/getnamedpipes.cs
Created February 1, 2021 14:58
Show Gist options
  • Select an option

  • Save gavz/847955fa73821ed7be00725f495cc099 to your computer and use it in GitHub Desktop.

Select an option

Save gavz/847955fa73821ed7be00725f495cc099 to your computer and use it in GitHub Desktop.
using System.IO;
using System;
namespace GetNamedPipes
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("[*] Found the following pipes:");
foreach(var pipe in Directory.GetFiles("\\\\.\\\\pipe"))
{
Console.WriteLine("- {0}", pipe);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment