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

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

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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值