posted 21 years ago
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
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher