Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1045
  • Last Modified:

how to determine OS of computers on network remotely?

I was thinking of using the system OID, but I would just be guessing at the public community string. another idea i had was to use the telnet into the daytime port and if i got a return i would assume its linux/unix.

just any thoughts on how to determine OS of a machine. i can not install any SW onto the clients. and i dont know have admin access to the machines on the network.
0
jaxkewl
Asked:
jaxkewl
1 Solution
 
allahabadCommented:
String osName = System.getProperties("os.name");
String osVersion= System.getProperties("os.version");
0
 
TimYatesCommented:
I think all you can do is try seeing what buffer you get back from the ports for Telnet, UDP, etc

Without installing anything, that's all you can do :-/
0
 
jcaldwelCommented:
Parsing Service Banners (TimYates suggestion) is probably the most dependable, but there are other ways of remote OS detection even if there are no services running.

Java will not deal in sockets in a low-enough level to do this, but if you are not against JNI, or rewriting this in C, you might want to look into something called "TCP/IP Stack Fingerprinting" this takes advantage of little quirks in TCP/IP Stack implementations of each OS.

Here is a pretty good article on it:
http://www.phrack.com/show.php?p=54&a=9
0
 
jaxkewlAuthor Commented:
<quote>Java will not deal in sockets in a low-enough level to do this, but if you are not against JNI, or rewriting this in C, you might want to look into something called "TCP/IP Stack Fingerprinting" this takes advantage of little quirks in TCP/IP Stack implementations of each OS.</quote>

thanks for the suggestion, its gotta be OO though. i will look at the site.
0
 
jcaldwelCommented:
I don't blame you. I refuse to use JNI where I can help it.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now