1,安裝 filezilla server 建立一個共享
2,開始通路并抓包
tcpdump -nn ! port 22 -xx >ftp.txt
[root@node5 /]# ftp 192.168.100.100
connected to 192.168.100.100 (192.168.100.100).
220-filezilla server version 0.9.45 beta
220-written by tim kosse ([email protected])
220 please visit http://sourceforge.net/projects/filezilla/
name (192.168.100.100:root): caiwu
331 password required for caiwu
password:
230 logged on
remote system type is unix.
ftp>
3,分析資料包
root@node5 ~]# cat ftp.txt |grep -i xiaoyu
0x0040: 58ec 5041 5353 2078 6961 6f79 750d 0a x.pass.xiaoyu..
可以看到密碼是明文的
二,當我們使用smb共享時
伺服器:192.168.100.100
共享名:share
使用者名:caiwu
密 碼:xiaoyu
指令如下:
mount //192.168.100.100/share /mnt/ -o iocharset=utf8,username=caiwu,password=xiaoyu,dir_mode=0777,file_mode=0777,codepage=cp936,uid=0
加上iocharset=uf8與codepage=cp936。這樣挂載好了後,就可以使用了,可以解決中文檔案名的亂碼問題
2,抓包
tcpdump -nn ! port 22 -xx >smb.txt
# cat smb.txt |grep -i xiaoyu
什麼也沒有,是以smb應該是加密的