Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Port Scan  RSS feed

 
G AMAR
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to achive port scan using java sockets ?
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of port scan? With normal Java sockets you can do a full TCP connect scan which is a noisey scan (the scanned system will know your IP address). Here's a quick and dirty example:

You can do something similar with a UDP scan, but the results are much less reliable, since there is no guarantee that a Port Unreachable ICMP packet will be returned.
Michael Morris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!