What exe in c:\windows\ is connected to wan? [Resolved]
Hi all:)
Is there any way that i could find out what are the .exe files,inside windows dir, that are connected to the wan?
If was possible i would like to check were was the exe connected to, but that's not the most important.
:afrog: :wave: :afrog: :wave:
Re: What exe in c:\windows\ is connected to wan?
You question sounds a bit strange to me: you may check if computer is connected but files ???
VB Code:
Option Explicit
Private Const NETWORK_ALIVE_LAN = &H1
Private Const NETWORK_ALIVE_WAN = &H2
Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long
Private Sub Command1_Click()
Dim Ret As Long
If IsNetworkAlive(Ret) = 0 Then
MsgBox "The local system is not connected to a network!"
Else
MsgBox "The local system is connected to a " & _
IIf(Ret = NETWORK_ALIVE_WAN, "WAN", "LAN") & " network!"
End If
End Sub
Re: What exe in c:\windows\ is connected to wan?
yes, it's that what i wanted, what files are connected to inet...
i'm trying to make some kind of watcher for me to keep me informed on what files are trying to connect to external addresses. I really need this...and if possible to get the information on were is the file trying to connect to.
Re: What exe in c:\windows\ is connected to wan?
that's what the Windows Firewall does, isn't it? You have to allow access to individual programs so that they can access the internet.
Re: What exe in c:\windows\ is connected to wan?
How about what netstat gives you? You can use the -ano switch under
XP and -an for the rest. This will give you IP addresses local and remote for
your ports showing open connections.
Re: What exe in c:\windows\ is connected to wan?
That's almost what Windows Firewall from sp2 does dglienna, but i would like to make that in a program, not use what M$ already did, that way i wouldn't learn nothing right? :)
I know that some sniffers can do that, but i dunno how to do it, that's why i asked some help to make that :afrog:
Anyone more?
Re: What exe in c:\windows\ is connected to wan?
just pointing out that it is a very difficult project to undertake, and there are already programs out there that do it for you. good luck in your attempt.
did you take a look at RobDog's post?
Re: What exe in c:\windows\ is connected to wan?
What post? I'v been looking on psc and i'v found something that may help me a bit: http://www.planet-source-code.com/vb...2F%5F576027112
I just need a bit of code from it and to check were the file is/were connected to, the file patch will be easy to find out.
Thanks for the help all :)