测试网络上的端口是否开放?

测试网络上的端口是否开放?

我计划很快坐飞机,我想看看飞机上是否可以免费使用 wifi。我想扫描网络以查找任何开放端口,看看是否可以连接到我的 VPS 并为我的浏览器设置 SOCKS5 代理。有没有办法扫描我连接的网络以查看哪些端口是开放的?一旦我这样做了,我如何通过该端口上的 SSH 连接到我的服务器?

答案1

我正在寻找的是nmap。它让我只需运行一下就可以扫描网络nmap -A <IP of router or website>,然后等待大约 30 秒,然后你会得到如下输出

$ nmap -A askubuntu.com

Starting Nmap 7.01 ( https://nmap.org ) at 2017-12-27 21:22 EST
Nmap scan report for askubuntu.com (151.101.1.69)
Host is up (0.017s latency).
Other addresses for askubuntu.com (not scanned): 151.101.65.69 
151.101.129.69 151.101.193.69
Not shown: 998 filtered ports
PORT    STATE SERVICE        VERSION
80/tcp  open  http-proxy     Varnish
|_http-server-header: Varnish
|_http-title: Did not follow redirect to https://askubuntu.com/
443/tcp open  ssl/http-proxy Varnish
| http-robots.txt: 77 disallowed entries (15 shown)
| /posts/ /posts? /amzn/click/ /questions/ask/ 
| /questions/ask? /search/ /search? /feeds/ /feeds? /users/login/ 
| /users/login? /users/logout/ /users/logout? /users/filter/ 
|_/users/filter?
|_http-server-header: Varnish
|_http-title: Ask Ubuntu
| ssl-cert: Subject: 
commonName=*.stackexchange.com/organizationName=Stack Exchange, 
Inc./stateOrProvinceName=NY/countryName=US
| Not valid before: 2016-05-21T00:00:00
|_Not valid after:  2019-08-14T12:00:00
|_ssl-date: TLS randomness does not represent time

Service detection performed. Please report any incorrect results at 
https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 20.62 seconds

这正是我需要的,所以谢谢我!

相关内容