#32627 - 2002-11-15 10:27 PM
Determine OS via IP-address over a VPN WAN link
|
Anonymous
Anonymous
Unregistered
|
Hi,
I've searched the boards on info about determining the OS of a remote client using only the IP-address. My thought was querying the registry as many of the post do.
What I need to find out is actually only if the OS is a NT OS like NT/2000/XP or another OS like Win95/98 etc. (I don't need to know the name of the OS if it isn't a NT OS).
One of the post I found was this: http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=1;t=005783
The problem as I see it is that the only thing I know about the client is his IP-address. They all log on through a VPN tunnel over a WAN link, so there might only be open for certain ports through the VPN tunnel. The clients aren't member of a central domain (they run a Terminal Server client through the VPN tunnel) so I don't have administrative privs on the machine (is it then at all possible to retrive the info from the registry?) - and does anyone know what ports is used when querying the remote registry? I guess the port should be open in the VPN router - and at this moment I don't know excactly how much is allowed through the VPN tunnel.
To summerize: User connect via a VPN tunnel with port restrictions. When connected he starts a Terminal Server client and logs on to the internal network. The logon script contains a script that retrieves the client IP through some TS DLL calls. What I need is using the retrieved IP-address to find out if the client on the other end of the VPN tunnel runs NT/2000/XP or another OS.
Can it be done?
Any help is highly appreciated!
Thanks ya all!!!!!!!
/Nicolaj
|
|
Top
|
|
|
|
#32629 - 2002-11-15 10:52 PM
Re: Determine OS via IP-address over a VPN WAN link
|
Anonymous
Anonymous
Unregistered
|
Thanks for the reply. But do you know what port is used when querying the remote registry? If the communication uses the same port every time I could probably open for this particular port through the VPN tunnel...
Thanks, Nicolaj
|
|
Top
|
|
|
|
#32633 - 2002-11-15 10:57 PM
Re: Determine OS via IP-address over a VPN WAN link
|
Anonymous
Anonymous
Unregistered
|
Ok, thanks for your help, I will try to test it on monday at work.
Take care, Nicolaj
|
|
Top
|
|
|
|
#32638 - 2002-11-18 09:20 AM
Re: Determine OS via IP-address over a VPN WAN link
|
Anonymous
Anonymous
Unregistered
|
Thanks both of you for your replies.
The problem is that the client connects to a central server through the VPN tunnel using a Termibal Server client, therefore the logonscript is executed on the server - and I can't query the OS directly. Les sent me the WTSManager.dll but I haven't had time to test it yet, though I've testet a commandline utility TSQuery from Clusteresis.com that I think used the same procedure calls - and it can't return the OS of the client
I guess the only way is port-probing like you suggest. Can KiXtart be used to check for existance of a port?
Thanks!
/Nicolaj
|
|
Top
|
|
|
|
#32641 - 2002-11-19 09:43 AM
Re: Determine OS via IP-address over a VPN WAN link
|
Anonymous
Anonymous
Unregistered
|
I haven't tried reading from the registry yet because I kinda dismissed the idea as we don't have administrative priviledges on the remote machines (they are clients running in their own network, but connecting to our network via VPN to run applications on a Terminal Server).
About RPC using dynamic ports (like MAPI and Oracle Net communication) I did think if it was the case, but kinda hoped it would be possible anyway.
On another note, I know that a network scanner like NSS from GFI (www.gfi.com) detects the OS even when scanning a host you havenm't admin privs on - I don't know how they do it (I wrote their tech support yesterday in hope that they could help) - maybe they use different ways to check for the name of the OS (SNMP, banner from the FTP service, reads the registry, RPC calls etc.), whatever is possible on the system in question...
Anyway, it seems to be a very cumbersome task to retrieve the info, but I'll keep looking and trying and post whatever I discover. Thanks for you help so far - and if you think of anything more, please don't hesitate to write
Thanks!
/Nicolaj
|
|
Top
|
|
|
|
#32642 - 2002-11-19 09:47 AM
Re: Determine OS via IP-address over a VPN WAN link
|
Anonymous
Anonymous
Unregistered
|
|
|
Top
|
|
|
|
#32644 - 2002-11-19 01:14 PM
Re: Determine OS via IP-address over a VPN WAN link
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Lonkero, From nra's first post: quote: The clients aren't member of a central domain (they run a Terminal Server client through the VPN tunnel) so I don't have administrative privs on the machine (is it then at all possible to retrive the info from the registry?)
So the script is not running on the client, it is running on the terminal server. There is no local context to run the script in.
nra, is there nothing else useful in the TS DLL which might provide the information?
Do you map client drives in the same way as you do with Citrix? If so you may be able to check for file versions on the client to determine it's type.
|
|
Top
|
|
|
|
#32645 - 2002-11-19 01:31 PM
Re: Determine OS via IP-address over a VPN WAN link
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
nra: We receive numerous requests to obtain client info from a Terminal server session. Could you share your code that uses the TS DLL so that others can also benefit from your experience? [ 19. November 2002, 13:32: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|