[C#]Get the process a packet was sent by

Home Forums Discussions Support Portal [C#]Get the process a packet was sent by

Tagged: , , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Vadim Smirnov 2 weeks, 1 day ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9643

    ZiJer
    Participant

    Is there a way to get the process that sent the intercepted packet?
    (I use some code from C# PassThru example)

    #9644

    Vadim Smirnov
    Moderator

    You can use IP Helper API for this purpose. Just use IP and port information extracted from the packet in combination with GetExtendedTcpTable/GetOwnerModuleFromTcpEntry to obtain executable which packet belongs to.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.