Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to discover named pipes in Windows?

Is there any method or tool that list existing named pipes in a Windows box?

like image 479
Jader Dias Avatar asked Sep 24 '10 17:09

Jader Dias


People also ask

Where are named pipes stored Windows?

Every pipe is placed in the root directory of the named pipe filesystem (NPFS), mounted under the special path \. \pipe\ (that is, a pipe named "foo" would have a full path name of \. \pipe\foo).

Are Windows named pipes?

Microsoft Windows Pipes utilizes a client-server implementation whereby the process that creates a named pipe is known as the server and the process that communicates with the named pipe is known as the client. By utilizing a client-server relationship, named pipe servers can support two methods of communication.

How do I find SQL Server named pipes?

Open the SQL Server Configuration Manager >> SQL Server NetworkConfiguration >> Protocols for MSSQLSERVER >> Check the status afterNamed Pipes & TCP/IP protocol.

What Sysinternals tool will allow you to see all of the named pipes on the system?

The Sysinternals suite has a tool called Pipelist and it works exactly as advertised. Pipelist can enumerate open pipes at runtime but can leave you in the dark about pipe connections that are opening and closing frequently.


2 Answers

The sysinternals tool, pipelist, is designed to list the existing named pipes.

like image 64
Brian Avatar answered Sep 30 '22 20:09

Brian


C#:

String[] listOfPipes = System.IO.Directory.GetFiles(@"\\.\pipe\");

edit: Warning!

This approach may fail and throw an exception if any existing pipe name contains characters that are illegal for use in file names. Pipe names are less restrictive than file names, so it is possible that some pipe may have a strange name and cause this exception.

like image 34
Omar Elsherif Avatar answered Sep 30 '22 20:09

Omar Elsherif