A user logs onto this IBM server with Windows 2000 through Windows
Remote Desktop Connection and accidentally downloads a Trojan that is
meant to get access to and FTP server. However, if port 21 is blocked
through the Firewall, how could the attacker connect to the FTP server?
There is a very simple technique known as port redirection. Port
redirection is a sophisticated way of bypassing port filtering,
firewalls, and IPSEC.
1. Login to a Windows machine in the lab.
a. Username: Administrator
b. Password: (no password)
2. Get the FTP server running
a. Double Click the link “Start FTP Server” to open the FTP
Server configuration tool.
b. Click the START button on the top left of the FTP Server
configuration panel.
3. Confirm that the FTP server is running on port 21.
a. Double Click the link “View Ports” to run a windows terminal
showing the various ports being used.
b. Which port is the FTP Server running on?
c. Do not close the terminal. This terminal will be referred to
later as “FPORT terminal.”
4. Redirect the network traffic on port 21 to port 30 (or any
arbitrary port number).
a. Double Click on the link “Redirect FTP port to 30” to open a
windows terminal.
b. Enter command: ipconfig
c. What is the IP address of the computer?
d. Enter command: fpipe –l 30 –s 30 –r 21 –v <ip-address>
e. Do not close the terminal. This terminal will be referred to
later as “FPIPE terminal.” f.
f. Check the FPORT terminal by entering command: fport
g. What port is the executable “fpipe” running on?
5. Start a ftp-client session and connect to the server
(Assume that port 21 is blocked)
a. Click on Start in the Windows machine and then Run. Type cmd
and Enter key. Now you have a new Windows terminal.
b. At the prompt enter command: ftp
c. If you are connected, check the FPIPE terminal. What is the
response.
d. Enter command: open
e. At the “to” prompt, type: <ip-address>30
f. At the “username” prompt, enter: anonymous
g. At the “password” prompt, enter: (no password, just press
Enter)
h. Type command: dir
i. Check the FPIPE terminal. What is the response?
6. What sort of security problems can occur due to port
redirection?
7. Can port redirection be used for any useful purpose?
8. Close all open windows.