• Post Reply Bookmark Topic Watch Topic
  • New Topic

how OS detect

 
Abdul Basit
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Can any one help me how i can find out which OS running on specific IP .
some one told me i have to do some thing with TCP packet .
So any idea how programes find out which OS is running and Is it posible in JAVA . I have to write a code for it .
Thanks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main way that this is done is by sending IP packets that represent "edge cases" -- strange combinations of flags and header contents that are either illegal or barely legal according to the specifications -- and observing the response. You can also look at packet sequence numbers and how they change, and finally, look at the various headers that SMTP, HTTP and other servers return. Only the third of these -- the least reliable, I might add -- is available to you from Java. This is really a low-level programming exercise which is best done in C.
 
Abdul Basit
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so what do u think if i take native method help . i write the code in c and activate it by java . so is it a good why ?
because java help me alot in doing other networking task .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!