file download and execute

Posts 1–10 of 10 · Page 1 of 1
file download and execute
is it possible for someone to make a small 0>5kb program that downloads and executes a bigger file. (must all be .exe)
maybe make a program that makes the program (inputs). if you don't get me, pm me.
sounds malicious. (or any generic 'installer') -- you're not allowed to do such here at mpgh. And any conscious user won't appreciate it when you download executable automatically w/o letting them approve first.

Yes it's possible, but I doubt anyone will help you.
it's more in the idea of an auto update feature. Also allows for a faster transfer of certain files. (over skype)
Quote Originally Posted by IWillNeverUnderstand View Post
it's more in the idea of an auto update feature. Also allows for a faster transfer of certain files. (over skype)
How does it allow for faster transfer of files? Now not only do you need to download the original file, you need to download the installer first as well.

Given the specifications you've stated, this sounds malicious to me. It's very easily done, though. Just google something like "Download file VB.NET" and "Start process VB.NET" then string the two together; not hard.
5kb applications in .net framework? nope
Quote Originally Posted by Biesi View Post
5kb applications in .net framework? nope
what language would you suggest then? C++? VBS? Python?

Batch and web-based languages are impossible as far as I know.
Quote Originally Posted by IWillNeverUnderstand View Post
what language would you suggest then? C++? VBS? Python?

Batch and web-based languages are impossible as far as I know.
Just use vb.net, download the file, save it somewhere and execute it
I agree with the others above, however, I know how it is when you want to make an updater and no-one will help..

NOTE: I AM NOT RESPONSABLE FOR WHAT YOU DO WITH THE CODE! REMEMBER MPGH DOES NOT ALLOW PROGRAMS TO ACCESS THE INTERWEBS WITHOUT SPECIAL REASONING WHICH GOES THROUGH A MINION FIRST!


either way here is an example download script, I am not sure how to check if the file is downloaded though...
You must import the following:
Code:
Imports System,IO (replace coma with period.)
Here is the download code:
Code:
My.Computer.Network.DownloadFile("http://yourwebsite.com/file.txt", "C:\FILE.txt", False, 60000)

Here is what each thing means, just ignore false it has to do with a login:
My.Computer.Network.DownloadFile("FILE LOCATION", "FILE DESTINATION", False, TIMEOUT)
Here is the execute code:
Code:
Process.Start("C:\file.txt")
#ateveroneelse
No offence to poster...
Do you really think someone who does not know how to do this can code something malicious???


EDIT: Here is a way to ask the user if they want to download the file:
Code:
Dim close As String
        close = MsgBox("Do you want to download this file?", MsgBoxStyle.YesNo + MsgBoxStyle.Exclamation, "Downloader")
        If close = vbYes Then
           'CODE HERE 
        End If
@IWillNeverUnderstand
Quote Originally Posted by mastalol View Post
I agree with the others above, however, I know how it is when you want to make an updater and no-one will help..

NOTE: I AM NOT RESPONSABLE FOR WHAT YOU DO WITH THE CODE! REMEMBER MPGH DOES NOT ALLOW PROGRAMS TO ACCESS THE INTERWEBS WITHOUT SPECIAL REASONING WHICH GOES THROUGH A MINION FIRST!


either way here is an example download script, I am not sure how to check if the file is downloaded though...
You must import the following:
Code:
Imports System,IO (replace coma with period.)
Here is the download code:
Code:
My.Computer.Network.DownloadFile("http://yourwebsite.com/file.txt", "C:\FILE.txt", False, 60000)

Here is what each thing means, just ignore false it has to do with a login:
My.Computer.Network.DownloadFile("FILE LOCATION", "FILE DESTINATION", False, TIMEOUT)
Here is the execute code:
Code:
Process.Start("C:\file.txt")
#ateveroneelse
No offence to poster...
Do you really think someone who does not know how to do this can code something malicious???


EDIT: Here is a way to ask the user if they want to download the file:
Code:
Dim close As String
        close = MsgBox("Do you want to download this file?", MsgBoxStyle.YesNo + MsgBoxStyle.Exclamation, "Downloader")
        If close = vbYes Then
           'CODE HERE 
        End If
@IWillNeverUnderstand
Thx, I'll see if it works out. Btw, is it possible to get this type of code but then for c#?
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us