Netexpert FAQ 网络分析专家学习建议入口 @netexpert成员申请指南
netexpert积分规则的说明 Netis招贤纳士(2008年11月22日更新)
发新话题
打印

[协议分析] 关于登陆FTP服务器返回的数据包

关于登陆FTP服务器返回的数据包

今天在登陆某个linux网站的FTP的时候,发现访问的数据包是“220-”开头的。这个FTP服务器是勇serv-U搭建的。如下:
但是我访问其他Serv-U搭建的FTP服务器,返回的数据包都是220 开始的,非常奇怪,这个FTP服务器却返回220-,这个是不是跟服务器的设置有关?请大家指点一下。


WinSock 2.0 -- OpenSSL 0.9.7d 17 Mar 2004
[右] 正在连接到 Linux -> IP=211.95.73.26 端口=21
[右] 已连接到 Linux
[右] 220-Serv-U FTP Server v6.4 for WinSock ready...
[右] 220-欢迎您使用本虚拟主机.
[右] 220-请使用CUTEFTP或者LEAFTP等软件上传您的网页.
[右] 220-注意,如果上传不了,请把FTP软件的PASV模式关掉再试.
[右] 220-
[右] 220-您登陆进去的根目录为FTP根目录  
[右] 220-\--wwwroot        网站根目录,网页请上传到这个目录  
[右] 220-\--logfiles       网站访问日志文件,本目录不占用您的空间.  
[右] 220-\--database       数据库目录,用来存放ACCESS数据库   
[右] 220-\--others         用于存放您的其它文件,该类文件不会出现在网站上
[右] 220-为了保证服务器高速稳定运行,请勿上传江湖游戏,广告交换,
[右] 220 博彩类网站,大型论坛,软件下载等耗费系统资源的程序。
[右] USER FTP_hllinux
[右] 331 User name okay, need password.
[右] PASS (hidden)
[右] 230 User logged in, proceed.
[右] SYST
[右] 215 UNIX Type: L8
[右] FEAT
[右] 211-Extension supported
[右]  CLNT
[右]  MDTM
[右]  MDTM YYYYMMDDHHMMSS[+-TZ];filename
[右]  SIZE
[右]  SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
[右]  REST STREAM
[右]  XCRC filename;start;end
[右]  MODE Z
[右]  MLST Type*;Size*;Create;Modify*;Win32.ea*;
[右] 211 End
[右] CLNT FlashFXP 3.0.1015
[右] 200 Noted.
[右] CWD /hl/
本帖最近评分记录
  • Vader 威望 +5 2008-7-18 19:48

TOP

-表示单行显示不完,后面还有内容。这是RFC里的。
说了世上一无牵挂为何有悲喜
说了朋友相交如水为何重别离
说了少年笑看将来为何常回忆
说了青春一去无悔为何还哭泣

TOP

多谢scz

TOP

啊,学习了。。

TOP

猛,四哥把RFC都看了

http://www.faqs.org/rfcs/rfc640.html   FTP Reply Codes
引用:
Formally, a reply is defined to contain the 3-digit code,followed by Space <SP>, followed by one line of text (where some maximum line length has been specified), and terminated by the
TELNET end-of-line code.  There will be cases, however, where the text is longer than a single line.  In these cases the complete text must be bracketed so the User-process knows when it may stop reading the reply (i.e. stop processing input on the TELNET connection) and go do other things.  This requires a special format on the first line to indicate that more than one line is coming, and another on the last line to designate it as the last.
    At least one of these must contain the appropriate reply code to indicate the state of the transaction.  
To satisfy all factions it was decided that both the first and last line codes should be the same.                                                                 
Thus the format for multi-line replies is that the first line will begin with the exact required reply code, followed immediately by a Hyphen, "-" (also known as Minus), followed by text.  The last line will begin with the same code, followed immediately by Space <SP>, optionally some text, and TELNET <eol>.

TOP

那抓到的包是一个 还是多个?

TOP

透过现象发现本质,其实在感谢SCZ版主回答问题的同时,我们也要反思自己。遇到问题是否自己认真思考过了,去查资料了,去分析问题了。如果以上都无法解决问题再去请教别人,可能这样才能真正地提高自己的水平,增强对网络的理解。其实自己以前也有这样的毛病,昨天看了文章谈到这个问题,感触颇深。的确这方面的能力和态度决定了一般人和高手的区别,所以我们学会更独立分析、解决问题吧!我们也能成为高手!
本帖最近评分记录
  • Vader 威望 +10 2008-7-18 19:49

TOP

发新话题
版块跳转