1. telnet用法: telnet ip port(1)连接不存在的端口telnet 1.1.1.1 8Trying 1.1.1.1…telnet: connect to address 1.1.1.1: Connection timed out(2)连接存在的端口telnet 1.1.1.1 8000Trying 1.1.1.1…Connected to 1.1.1.1.Escape character is ‘^]’.Connection closed by foreign host.2. wget用法: wget ip:port(1)连接不存在的端口wget 1.1.1.1:8–2017-01-24 11:38:34– http://1.1.1.1:8/ Connecting to 1.1.1.1:8…failed: Connection timed out. Retrying.(2)连接存在的端口wget 1.1.1.1:8000–2017-01-24 11:39:03– http://1.1.1.1:8000/Connecting to 1.1.1.1:8000… connected.HTTP request sent, awaiting response… 200 OK3. ssh用法: ssh -v -p port username@ip-v 调试模式(会打印日志)-p 指定端口这里没有给出测试,留给读者自己测试。
4. curl用法: curl ip:port(1)连接不存在的端口没有结果。
(2)连接存在的端口curl 1.1.1.1:8000<!DOCTYPE html><html><head>xxx</head><body>……</body></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)