You are on page 1of 31

Measurements - Dr. Wael S.

El-Kilani 4th year Control & Computer Engineering - El-Shorouk Academy

Capturing FTP Traffic


Complete Software Installation & Configuration Walkthrough

Software used in this walkthrough: VMware Workstation 7.0.0-203739 Windows Server 2003 Installation CD or Image Windows XP Professional Installation CD or Image Wireshark 1.2.5

Contents

A : Working with VMware : . . . . . . . . . . . . . . . . . . . . . 1


0. : Preparing Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

1. : Creating Two Virtual Machines . . . . . . . . . . . . . . . . . . . . 2


2. : Connecting Two Virtual Machines on the Same LAN . . 8 3. : Configuring an IP Address for each Virtual Machine . . . 16 4. : Enabling FTP Services on a Server . . . . . . . . . . . . . . . . 18 5. : Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

B : Working with Wireshark : . . . . . . . . . . . . . . . . . . . . . 24

-i-

A: Working with VMware :

0. : Preparing Folders : Go to any place on your Hard Disk then create a Folder named VMware . Inside VMware Create 2 Folders, one named Nodes , the other named Teams .

Inside Nodes create 2 Folders, one named WinServ2003 , the other named WinXP .
Inside Teams create a Folder named Team1 .

Inside Team1 create 2 Folders, one named WinServ2003 Clone , the other named WinXP Clone .
The total is 8 Folders, their Folder Tree should look like this :

Next : 1. : Creating Two Virtual Machines


-1-

1.1. : Install VMware on your PC with default settings. Open VMware, it should look like this figure, click on New virtual Machine.

1.2. : Choose Typical then click Next.

-2-

1.3. : - We need to install an operating system for this machine, you can either install from a DVD or CD, or from an image. Here we will use a disk image. Choose Installer Disk File (ISO) then click Browse. Go to the directory where you have the ISO file, choose the desired image, then click Next.

1 2

1.4. : Choose Microsoft Windows. Choose Windows Server 2003 Enterprise Edition, then click Next.

-3-

1.5. : Enter the Serial Number for the Windows Server Installation, then Click Next.

1.6. : Choose a name for this Windows Installation. Click Browse, then go to \VMware\Nodes\WinServ2003 which was created earlier. Click Next.

1 2 3

-4-

1.7. : Choose the Disk Size that will be used by this machine. Here we chose 10 GB. Select Store Virtual Disk as a single file, then Click Next.

1 2

1.8. : - This screen allows you to customize the hardware of your Virtual Machine

Click Finish.

-5-

1.9. : - This screen will appear indicating that your machine has turned on and will begin installing Windows Server 2003. If this screen doesnt appear and your machine is off : - Select the Windows Server 2003 machine, then click on the play button.
2 1

1.10. : - This screen Indicates that the Windows Server Installation has begun.
Click inside the black screen to activate it, then type a.

-6-

1.11. : - Setup will begin installing Windows Server 2003 on your virtual machine now. Repeat step 1.1 ~ 1.8 to make another Virtual Machine Working with Windows XP, but note that :

- In Step 1.3, choose the Windows XP image file. - In step 1.4, choose Windows XP Professional. - In step 1.6, save the machine in \VMware\Nodes\WinXP
After creating the two virtual machines, you should have this view :

Next : 2. : Connecting the two Virtual Machines on the same LAN.

-7-

2.1. : Click Home, then Click New Team.

2.2. : Click Next.

-8-

2.3. : Choose a name for this Team. Here we chose FTP. Click Browse, then go to \VMware\Teams\Team1 which was created earlier. Click Next.

1
2 3

2.4. : Select New Clone of Virtual Machine.

-9-

2.5. : Go to \VMware\Nodes\WinServ2003 . Select the file Windows Server 2003 Enterprise Edition.vmx, then Click Open.

1 3

2.6. : Click Next.

- 10 -

2.7. : Select Clone from The current state in the Virtual Machine. Click Next.

2.8. : Select Create a linked clone, then Click Next.

- 11 -

2.9. : Choose a name for this Clone. Here we left the Default Name. Click Browse, then go to \VMware\Teams\Team1\WinServ2003 clone which was created earlier. Click Finish.

1 2

2.10. : Click Close.

- 12 -

2.11. : Repeat step 2.4 ~ 2.10 to make another Virtual Machine Clone Working with Windows XP, but note that : - In Step 2.5, Go to \VMware\Nodes\WinXP and Select the file Windows XP Professional.vmx - In step 2.9, save the machine clone in \VMware\Teams\Team1\WinXP clone After creating the two virtual machines clones, you should have this view : - Click Next.

- 13 -

2.12. : Click Add, then click Next.

1 2

2.13. : Check the LAN1 box for each Clone. Click Finish.

- 14 -

2.14. : You should have this view :

Click Power on this team. 2.15. : You should view this screen.

Next : 3. : Configuring an IP address for each machine.


- 15 -

3.1. : Login to Windows. Go to Control Panel > Network Connections > Local Area Connection You should view the screen below, Click Properties.

3.2. : Select Internet Protocol (TCP/IP) Click Properties.

1 2

- 16 -

3.3. : Select Use the following IP address Click on the IP Address field and Enter the IP Address for this machine : Example : - For Windows Server 2003 : 113.0.0.14 - For Windows XP Professional : 113.0.0.13 Click on the Subnet mask field, the subnet mask will be entered automatically. Press OK

1 2 3

Next : 4. : Enabling FTP Services on your Server.

- 17 -

4.1. : Login to Windows Server. Open the Start Menu > Control Panel > Add or Remove Programs
3 2

4.2. : Select Add/Remove Windows Components.

- 18 -

4.3. : Double click on Application Server.

4.4. : Double Click on Internet Information Services (IIS).

- 19 -

4.5. : Check the boxes of Common Files, File Transfer protocol (FTP) Service, Internet Information Services Manager. Click OK.

4.6. : Click OK.

- 20 -

4.7. : Click Next.

4.8. : Click Finish.

- 21 -

4.9. : Close the Add or remove Programs window. Open Start > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager.

4.10. : Click on your server. Click FTP Sites. Right click on Default FTP Site, and choose Properties.

- 22 -

4.11. : Click on Security Accounts tab. Make sure that Allow anonymous connections is checked.

4.12. : Click on Home Directory tab. Make sure that Read and Log visits are checked. Click OK, and close the IIS Manager window.

You have successfully enabled FTP service on your Server.

Next : 5. : Troubleshooting.

- 23 -

5.1. : Open the Start Menu > Run Type cmd , then press Ok

2 1 4

5.2. : Type ping 113.0.0.14 if you are using the machine with Windows XP, or type ping 13.0.0.13 if you are using the machine with Windows Server 2003. If you get a Reply, then the connection is up. If you get a Request timed out, then there may be a problem with connection.

- 24 -

5.3. : Open My Computer. In the address bar, type ftp://113.0.0.14 , press Enter. If you see an Empty Folder, then the FTP Server is up and running with no problems. If you cant see this logo, there is a problem with your server configuration or with your connection.

Next : B. : Working with Wireshark.

- 25 -

B: Working with Wireshark :


0. : Preparation 0.1 : Select the Windows Server 2003 virtual machine. Go to C:\Inetpub\ftproot.

1 2 3 4

0.2 : Create a text file, name it ftp.txt Open the file, and type This is the FTP Project, and then save the file.

- 26 -

1. : Setup Wireshark with default settings on any Virtual Machine. Click Capture, then click Interfaces.

1 2

2. : Note the Interface with the IP address corresponding to your machine. Click Start.

- 27 -

3. : Open My Computer on Windows XP Machine. In the address bar, type ftp://113.0.0.14, press Enter. Copy the file to your machine.

4. : Wireshark will capture all the traffic between the client and the server.

- 28 -

5. : To view FTP traffic only, type FTP in the Filter Bar.

6. : Double click any Message to view its headers.

For more info, ask Google. End


- 29 -

You might also like