|
-
May 2nd, 2009, 10:08 AM
#1
Blocking application port
Hello,
can somebody tell me please how to close an existing application port? I wolud like to write a program that blocks the packets of an application, if the application is not digitaly signed.
I used EnumProcess and now I have a list with the .exe paths and PIDs (process id-s) too.
Thank you in anticipation for any help.
-
May 3rd, 2009, 11:09 AM
#2
Re: Blocking application port
 Originally Posted by csienke
Hello,
can somebody tell me please how to close an existing application port? I wolud like to write a program that blocks the packets of an application, if the application is not digitaly signed.
I used EnumProcess and now I have a list with the .exe paths and PIDs (process id-s) too.
Thank you in anticipation for any help.
Hi there, what you want to do is actually making a "firewall-like" application. I read this article in codeproject (sometimes ago) that you might be interested: http://www.codeproject.com/KB/IP/FwHookDrv.aspx
Xander Tan
-
May 3rd, 2009, 02:05 PM
#3
Re: Blocking application port
Hi, thank you for the link. I tried out the source code, but unfortunately it doesn't work with Vista 
I tried it out on one pc with two applications that communicate on a specified port.
Is there any solution to block packet sending in C++ under Vista?
-
May 3rd, 2009, 07:13 PM
#4
Re: Blocking application port
 Originally Posted by csienke
Hi, thank you for the link. I tried out the source code, but unfortunately it doesn't work with Vista 
I tried it out on one pc with two applications that communicate on a specified port.
Is there any solution to block packet sending in C++ under Vista?
Maybe you could try to use Windows Filtering Platform (WFP), this is the link: http://www.microsoft.com/whdc/device/network/wfp.mspx
I never tried this before though.
Xander Tan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|