Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have access to the command line on a Windows host. I want to trigger a download to this host purely from the command line. The catch is that I am not able to copy anything to this host prior to my use of the command line.

Using an installed instance of Internet Explorer is OK, as is using a Windows Scripting Host script or anything else that comes preinstalled on your average Windows host (let's say Windows 2003).

Thanks for any suggestions!

share|improve this question
up vote 4 down vote accepted

I have posted a vbscript doing a file download in this thread. Hope this fits your needs.

share|improve this answer

If your host allows FTP, all versions of windows come with a command line ftp clients, just run 'ftp' from a command line.

share|improve this answer

the TFTP client is installed by default on windows server 2003. Great for getting trojans onto compromised windows servers in one command! Which is why it's been removed in newer OSes.

tftp server1 get file.txt

The FTP client can achieve the same purpose with a little more work using a script file.

share|improve this answer
Including a TFTP client is a security risk, huh? I'd say the same would apply to all other TCP/IP clients included with any OS... – grawity Aug 10 '09 at 18:32
used to be the way to deliver a payload via IIS exploits. One of the security hardening strategies was to remove it – Nick Kavadias Aug 11 '09 at 11:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.