telnet使用技巧

大家所熟悉的telnet功能是远程管理系统,但我今天要分享的是telnet的一些使用技巧(对于经常使用的人来说已经不算是什么技巧了,就当我手瞎写的让你看见了,不喜勿喷)

1、探测远程系统是否开启了某个端口

telnet 192.168.1.1 8080     #探测192.168.1.1机器是否开启了8080端口

2、telnet 192.168.1.1 139进入之后怎么退出(任意端口)

ctrl+]
telnet > q      #或quit或close

3、测试http

localhost:Downloads frankslg$ telnet 10.70.12.189 80
Trying 10.70.12.189...
Connected to bogon.
Escape character is '^]'.
GET / HTTP/1.1          #
Host: 10.70.12.189      #此两条都是你手动填写的
#以下是服务器返回的结果
HTTP/1.1 200 OK
Server: nginx/1.8.0
Date: Wed, 28 Dec 2016 07:06:01 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Frame-Options: SAMEORIGIN


6e7


<html lang="en"><head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="robots" content="NONE,NOARCHIVE"><title>Welcome to Djangotitle>
  .
  .
  .
  .

4、帮助信息

telnet> ?
Commands may be abbreviated.  Commands are:

close       close current connection
logout      forcibly logout remote user and close the connection
display     display operating parameters
mode        try to enter line or character mode ('mode ?' for more)
telnet      connect to a site
open        connect to a site
quit        exit telnet
send        transmit special characters ('send ?' for more)
set         set operating parameters ('set ?' for more)
unset       unset operating parameters ('unset ?' for more)
status      print status information
toggle      toggle operating parameters ('toggle ?' for more)
slc         change state of special charaters ('slc ?' for more)
auth        turn on (off) authentication ('auth ?' for more)
z           suspend telnet
!           invoke a subshell
environ     change environment variables ('environ ?' for more)
?           print help information

你可能感兴趣的:(computer)