Skip to content

Instantly share code, notes, and snippets.

@justinforbes
Forked from dmchell/getnamedpipes.cs
Created February 7, 2022 14:58
Show Gist options
  • Select an option

  • Save justinforbes/9beb64251b2e94442ff3f9a9689fcff5 to your computer and use it in GitHub Desktop.

Select an option

Save justinforbes/9beb64251b2e94442ff3f9a9689fcff5 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