使用了 wireshark 来进行抓取数据包
由于 对于网络提供的很多大学的FTP 测试都未通过,(需要内网或者匿名登录屏蔽,所给的账户登录未能成功)
所以,使用来Centos的镜像地址 作为FTP 登录过程的测试。
本文采用了 : ftp://ftp.telus.net来进行测试。
打开 wireshark 选择 eth0 作为 抓取的端口。 文本行下 开启ftp
(出现的问题记录: 第一次输入ftp后 出现了 command not found 错误,经由网络查询得知解决方法,在Centos6 ftp作来改变,在Centos的镜像地址中 找到ftp的地址
并将本地的ftp进行更新
http://mirror.centos.org/
依照目录 找到你系统 版本的 ftp 地址 如http://mirror.centos.org/centos-6/6.3/os/i386/Packages/ftp-0.17-51.1.el6.i686.rpm
运行 rpm -Uvh http://mirror.centos.org/centos-6/6.3/os/i386/Packages/ftp-0.17-51.1.el6.i686.rpm
再次运行 ftp 就不会再出错)
运行 ftp ftp.telus.net 出现:
Connected to ftp.telus.net (161.184.245.70).
220-
220-Welcome to ftp.telus.net
220-
220
Name (ftp.telus.net:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
这里使用 anonymous 作为默认的匿名用户名 密码任意 来登录
并登录成功
ftp 命令 可使用 help 来 查看
本文介绍使用Wireshark抓取FTP登录过程的数据包,并解决了在CentOS上遇到的ftp命令不可用的问题。
1万+

被折叠的 条评论
为什么被折叠?



