I looking for way to find free ports on a remote machine without logging into remote server. How to do that?
|
feedback
|
|
I use: sudo nmap -p1-65535 -sV -O hostname This will also enumerate the versions of the services running on the remote system (if it can). As far as the administrator caring about you port scanning the box, that used to be the case back in the day when a portscan was typically done by humans. Nowadays portscans are so often and mostly from bots that it isn't worth the admins time to follow up on them. if you don't want to deal with root the following will scan every possible port: nmap -p1-65535 hostname | |||
|
feedback
|
|
There are so many ways to do that, you need to find a tool and scan the remote machine.However, for the consideration of security, more and more machine will drop those packets or alert the network administrator, because port scan is the preparation of intrusion. | |||
|
feedback
|
|
There is no absolute way to do this. Tools such as nmap will find ports open to the network but won't reveal which ports are actually free, as it has no way to determine which ports are in use locally but not exposed to the network. | |||||
feedback
|